-
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
macro_rules: Remove NtIdent
nonterminal token
#119412
base: master
Are you sure you want to change the base?
Conversation
(rustbot has picked a reviewer for you, use r? to override) |
unassigning myself for now since you said it's a WIP, feel free to reassign when there's stuff to review |
This comment has been minimized.
This comment has been minimized.
2309449
to
f2a92e8
Compare
This comment has been minimized.
This comment has been minimized.
f2a92e8
to
3b0619b
Compare
This comment has been minimized.
This comment has been minimized.
3b0619b
to
d7f855c
Compare
This comment has been minimized.
This comment has been minimized.
Some changes occurred in src/tools/clippy cc @rust-lang/clippy |
This comment has been minimized.
This comment has been minimized.
The Miri subtree was changed cc @rust-lang/miri |
This comment has been minimized.
This comment has been minimized.
This comment was marked as resolved.
This comment was marked as resolved.
…rrors rustc_span: More consistent span combination operations Also add more tests for using `tt` in addition to `ident`, and some other minor tweaks, see individual commits. This is a part of rust-lang#119412 that doesn't yet add side tables for metavariable spans.
Rollup merge of rust-lang#119624 - petrochenkov:dialoc4, r=compiler-errors rustc_span: More consistent span combination operations Also add more tests for using `tt` in addition to `ident`, and some other minor tweaks, see individual commits. This is a part of rust-lang#119412 that doesn't yet add side tables for metavariable spans.
This comment was marked as resolved.
This comment was marked as resolved.
|
This comment has been minimized.
This comment has been minimized.
[WIP] Benchmark span combining changes This is the part of rust-lang#119412 that doesn't include the actual removal of `NtIdent`.
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
macro_rules: Remove `NtIdent` nonterminal token It only exists for keeping the second span (the metavariable span), but after rust-lang#119673 such spans can be kept using a more general mechanism.
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (1243fc5): comparison URL. Overall result: ❌✅ regressions and improvements - ACTION NEEDEDBenchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf. Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @bors rollup=never Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)Results (primary 10.0%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResults (primary 22.9%, secondary -2.9%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeResults (primary -0.2%, secondary -0.0%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Bootstrap: 698.422s -> 697.818s (-0.09%) |
So the |
I don't understand the The regression only reproduces in the I'm not sure what to do about this, none of the other crates invalidates this much after adding a println. @cjgillot maybe you have some idea what can cause so much recompilation (and how to determine the root cause)? |
The dependency tracking story for the metavar span table is not clear to me in general. |
Besides the issue with incremental invalidation in I migrated some of the clippy lints to the post-#119673 scheme, but not all of them, I can make an issue for that after this is merged. |
@petrochenkov I tried to look at the logs from The main thing that puzzles me is that we appear to have recompilations due to more HIR changing. I suppose that's due to some spans missing their |
@petrochenkov |
Ah -- this has been |
It's still waiting on author. |
Triage: okay this is still waiting on author. |
It only exists for keeping the second span (the metavariable span), but after #119673 such spans can be kept using a more general mechanism.
So after this PR spans from
ident
variables are treated as spans fromtt
variables.To avoid regressions, it required migrating some diagnostics in the compiler to the new scheme used to account for
tt
variables.This PR should also unblock removal of the
uninterpolate
stuff from the parser.Continuation of #119673.