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

@CohenArthur
Copy link
Member Author

I'll spend a little more time on it to clean up functions which are functionally the same as their version in PointerVisitor, to reduce the visitor's size even more

@powerboat9 powerboat9 mentioned this pull request Sep 17, 2025
@CohenArthur CohenArthur added this pull request to the merge queue Sep 22, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 22, 2025
@powerboat9
Copy link
Collaborator

@CohenArthur

@P-E-P P-E-P added this pull request to the merge queue Sep 27, 2025
Merged via the queue into Rust-GCC:master with commit ef5dd50 Sep 27, 2025
13 checks passed
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.

3 participants