rustc_expand: improve diagnostics for non-repeatable metavars#154014
rustc_expand: improve diagnostics for non-repeatable metavars#154014Unique-Usman wants to merge 1 commit intorust-lang:mainfrom
Conversation
|
r? @adwinwhite rustbot has assigned @adwinwhite. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
r? @estebank |
This comment has been minimized.
This comment has been minimized.
a2e1edc to
1bfa30d
Compare
This comment has been minimized.
This comment has been minimized.
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
rustc_expand: improve diagnostics for non-repeatable metavars
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (c7819c5): comparison URL. Overall result: ❌ regressions - please read the text belowBenchmarking this pull request means it may be perf-sensitive – we'll automatically label it not fit for rolling up. You can override this, but we strongly advise not to, due to possible changes in compiler perf. Next Steps: If you can justify the regressions found in this try perf run, please do so in sufficient writing along with @bors rollup=never Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)This benchmark run did not return any relevant results for this metric. CyclesResults (secondary -0.5%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeResults (primary 0.1%, secondary 0.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 482.731s -> 482.467s (-0.05%) |
|
The regressions here are all in html5ever. I think this should be fine. @Unique-Usman could you provide a description, a link to the previous PR and squash the commits? |
|
@estebank, I will do that. Thanks. |
Co-authored-by: Esteban Küber <esteban@kuber.com.ar> Signed-off-by: Usman Akinyemi <usmanakinyemi202@gmail.com>
35d11f3 to
ed4a1f8
Compare
There was an initally opened pr which solve this issue here #152679. It got merged but, there was a perf regression. And this new pr is opened to address the problem. The first did the computation of binding and matched_rule and then passed them as owned value down to
diagnostics::emit_frag_parse_err(but, now this pr address the issue by passinglhsandrulesas borrowed value to from_tts and the move the logic todiagnostics::emit_frag_parse_err(.Fix #47452.