resolve: Use IdentKey in resolve_ident_in_scope_set#151820
resolve: Use IdentKey in resolve_ident_in_scope_set#151820rust-bors[bot] merged 3 commits intorust-lang:mainfrom
IdentKey in resolve_ident_in_scope_set#151820Conversation
|
@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.
resolve: Use `IdentKey` in `resolve_ident_in_scope_set`
| let scope_set = ScopeSet::All(TypeNS); | ||
| self.cm().visit_scopes(scope_set, parent_scope, ctxt, None, |mut this, scope, _, _| { | ||
| let ctxt = Macros20NormalizedSyntaxContext::new(sp.ctxt()); | ||
| self.cm().visit_scopes(scope_set, parent_scope, ctxt, sp, None, |mut this, scope, _, _| { |
There was a problem hiding this comment.
| self.cm().visit_scopes(scope_set, parent_scope, ctxt, sp, None, |mut this, scope, _, _| { | |
| self.cm().visit_scopes(scope_set, parent_scope, ctxt, orig_ident_span, None, |mut this, scope, _, _| { |
Using something longer here messes up the closure's formatting.
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (d11b46d): comparison URL. Overall result: ✅ improvements - no action neededBenchmarking 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. @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)Results (secondary -1.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary -2.7%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeResults (primary -0.0%, secondary -0.0%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 475.963s -> 473.7s (-0.48%) |
|
Oh, nice. |
| ident.orig(orig_ident_span.with_ctxt(*ident.ctxt)), | ||
| && let Ok(decl) = self.reborrow().resolve_ident_in_scope_set_inner( | ||
| ident, | ||
| orig_ident_span, |
There was a problem hiding this comment.
This and the other call to resolve_ident_in_scope_set_inner are the point of the PR.
First, here we avoid a span packing/unpacking on a good path, and second we pass a span that is actually original, rather than "slightly less massaged".
af71179 to
1c6af14
Compare
This comment has been minimized.
This comment has been minimized.
|
Added one more similar change on top. |
This comment has been minimized.
This comment has been minimized.
1c6af14 to
161fcde
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
@bors r+ |
This comment has been minimized.
This comment has been minimized.
What is this?This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.Comparing a60d12c (parent) -> f60a0f1 (this PR) Test differencesShow 28 test diffs28 doctest diffs were found. These are ignored, as they are noisy. Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
test-dashboard f60a0f1bcc5a2a6dd8eb2d2021da79b40f5fbae9 --output-dir test-dashboardAnd then open Job duration changes
How to interpret the job duration changes?Job durations can vary a lot, based on the actual runner instance |
|
Finished benchmarking commit (f60a0f1): comparison URL. Overall result: ✅ improvements - no action needed@rustbot label: -perf-regression 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 (primary -2.6%, secondary -3.5%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeResults (primary -0.0%, secondary -0.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 473.737s -> 470.454s (-0.69%) |
Follow up to #151550, implements #151550 (comment).
r? @nnethercote