Skip to content

Add desugaring to fixed point #4080

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

CohenArthur
Copy link
Member

Marking this as a draft since it might not be what we actually want, but we do get a lot further when expanding macros in core. For example, things like write!(fmt, ...)?; now work properly. Note that this may also be because the ExpandVisitor is lacking in many places... so just looking for comments on this for now

gcc/rust/ChangeLog:

	* ast/rust-desugar-apit.cc: Mark as clean when starting a desugar,
	and as dirty when actually doing a desugar.
	* ast/rust-expression-yeast.cc (ExpressionYeast::go): Likewise.
	* ast/rust-desugar-apit.h: Add dirty flag.
	* ast/rust-expression-yeast.h: Likewise.
	* rust-session-manager.cc (Session::expansion): Move desugars to fixed point.
@powerboat9
Copy link
Collaborator

I don't think desugaring needs to be fixed point -- unless the resolver is supposed to rely on things being desugared to complete resolution? It seems like the macro issues are all problems local to ExpandVisitor.

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