-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Move process_configure_mod to rustc_parse #66565
Conversation
This comment has been minimized.
This comment has been minimized.
So this is basically undoing the point of 5011ec7.
Can you elaborate on why |
80ef75f
to
e0fb903
Compare
Generally speaking I think 5011ec7 is unrelated? Maybe you pointed at the wrong commit and meant be023eb? But regardless, I acknowledge that, but it seems like the placement into syntax_expand is just a matter of 'cfg should in theory be implemented via expansion, not tied into the parser.' I don't disagree with that goal, but I don't think we should pay the price in complexity -- threading through an fn-ptr/trait through multiple modules. AFAICT, that price would go away with the more correct design (i.e., resolving #64197), so it's not really preparing us for anything. I guess it pretty loudly shouts "oh no here's something that should be fixed" -- but I don't think we should try to actively make our lives harder just because there's not great splitting of responsibilities in the current design if it can be avoided. |
I see. I can understand this PR better in light of making
Yeah that's right.
That's a fair enough point; some of the benefits from be023eb are still there this seems like a substantially smaller revert. r=me once CI agrees, unless @petrochenkov has other thoughts. |
master...Mark-Simulacrum:sess-decouple is the other branch (but we should not derail discussion here based on it); I think that if this PR doesn't stand alone successfully then I can include the commits onto that branch and we can see if the whole stands alone :) |
This comment has been minimized.
This comment has been minimized.
e0fb903
to
6d06e15
Compare
This comment has been minimized.
This comment has been minimized.
6d06e15
to
6f466ad
Compare
This comment has been minimized.
This comment has been minimized.
The previous commit removes the use of this, and now we cleanup.
6f466ad
to
70805e6
Compare
I'm going to leave this to @petrochenkov's approval. |
Well, at least it isn't moved back to |
📌 Commit 70805e6 has been approved by |
Move process_configure_mod to rustc_parse This removes the hack in favor of perhaps a less principled, but less painful, approach. This also supports my work to decouple `Session` from librustc, as `ParseSess` currently has `Attribute` as "part" of it but after this PR will no longer do so.
☀️ Test successful - checks-azure |
This removes the hack in favor of perhaps a less principled, but less painful, approach.
This also supports my work to decouple
Session
from librustc, asParseSess
currently hasAttribute
as "part" of it but after this PR will no longer do so.