Skip to content

Conversation

CohenArthur
Copy link
Member

  • ast: Add PointerVisitor
  • desugar: Use PointerVisitor for ExpressionYeast
  • expand: Inherit from PointerVisitor

This makes ExpandVisitor a lot more complete by making it inherit from PointerVisitor. This solves all of the unexpected macro ID errors we get when compiling core.

@CohenArthur CohenArthur force-pushed the pointer-visitor-expand-visitor branch 2 times, most recently from 8783ed2 to 5f85445 Compare August 26, 2025 13:55
gcc/rust/ChangeLog:

	* expand/rust-expand-visitor.cc: Remove old visitors.
	* expand/rust-expand-visitor.h: Likewise, plus inherit from PointerVisitor.
@powerboat9
Copy link
Collaborator

You should also make sure to remove ExpandVisitor::visit (BorrowExpr &)

@powerboat9
Copy link
Collaborator

It looks like this should actually get us past the expansion phase for libcore

@CohenArthur
Copy link
Member Author

Yeah I think it does 😄 I'm quite excited

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants