-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Also emit suggestions for usages in the non_upper_case_globals
lint
#142645
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
Conversation
r? @fee1-dead rustbot has assigned @fee1-dead. Use |
2589fe0
to
17f95ca
Compare
17f95ca
to
4df9f2f
Compare
This PR currently collects use sites eagerly, i.e., before the indirect call to If this ends up perf heavy, it should be possible to turn this into a @bors2 try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
Also emit suggestions for usages in the `non_upper_case_globals` lint This PR adds suggestions for all the usages of the renamed item in the warning of the `non_upper_case_globals` lint. Fixes #124061
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (4bb20cc): 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)Results (primary 1.2%, secondary -4.2%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary 30.3%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 692.606s -> 715.256s (3.27%) |
@bors2 try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
r? fmease |
Requested reviewer is already assigned to this pull request. Please choose another assignee. |
r=me with or without final comment addressed @bors rollup |
5a670b6
to
6ffd0e6
Compare
@bors2 try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
Also emit suggestions for usages in the `non_upper_case_globals` lint This PR adds suggestions for all the usages of the renamed item in the warning of the `non_upper_case_globals` lint. Fixes #124061
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (63dd59d): 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)Results (secondary -5.9%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary 2.8%, secondary 6.9%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeResults (primary 1.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 689.082s -> 689.565s (0.07%) |
let can_change_usages = if let Some(did) = did { | ||
!cx.tcx.effective_visibilities(()).is_exported(did) | ||
} else { | ||
false | ||
}; | ||
|
||
// We cannot provide meaningful suggestions | ||
// if the characters are in the category of "Lowercase Letter". | ||
let sub = if *name != uc { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you move let can_change_usages
and let sub
into the callback of emit_span_lint_lazy
? Should fix perf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I could but I don't actually think there is any regression here, the only regressed crate is clap_derive-4.5.3/opt/full, no other benchmark, including any of the others clap_derive, or the previously regressed libc crate seems to affected and looking at the details the regression is in the backend, not the frontend. I think it's a spurious regression. What do you think?
Looks spurious indeed. @bors rollup- r+ |
…, r=fmease Also emit suggestions for usages in the `non_upper_case_globals` lint This PR adds suggestions for all the usages of the renamed item in the warning of the `non_upper_case_globals` lint. Fixes rust-lang#124061
Rollup of 9 pull requests Successful merges: - #142645 (Also emit suggestions for usages in the `non_upper_case_globals` lint) - #142657 (mbe: Clean up code with non-optional `NonterminalKind`) - #142799 (rustc_session: Add a structure for keeping both explicit and default sysroots) - #142805 (Emit a single error when importing a path with `_`) - #142882 (Lazy init diagnostics-only local_names in borrowck) - #142883 (Add impl_trait_in_bindings tests from #61773) - #142943 (Don't include current rustc version string in feature removed help) - #142965 ([RTE-497] Ignore `c-link-to-rust-va-list-fn` test on SGX platform) - #142972 (Add a missing mailmap entry) r? `@ghost` `@rustbot` modify labels: rollup
This PR adds suggestions for all the usages of the renamed item in the warning of the
non_upper_case_globals
lint.Fixes #124061