-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Rework non_local_definitions
lint to only use a syntactic heuristic
#127117
Conversation
r? @WaffleLapkin since you reviewed the original PR |
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 looked over the tests; looks right to me.
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.
just typo nits
8dec09e
to
92ba962
Compare
☔ The latest upstream changes (presumably #127493) made this pull request unmergeable. Please resolve the merge conflicts. |
92ba962
to
3100dfa
Compare
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 don't know how to review this. T-lang's proposal looks to me like "let's make the lint incorrect". And I don't see why the lint is useful, if it's incorrect...
r? lang |
cc @rust-lang/lang also posted a followup comment in #126768 (comment) |
Replied with further context and background over in #126768 (comment). |
💭 ...if I asked for lang to review this, and then TC nominated me, does that mean I'm on lang? Is this my punishment for ribbing T-lang one too many times? Am I now the target of my own japes? ...oh no, I'm barely even awake at 9, how am I going to make a meeting at 8? |
Maybe all of that? /s.... but no, seriously that was me just handing back off after answering the lang questions. Looking again, though, I mean to hand it back to compiler, so... r? compiler |
r? diagnostics |
This comment was marked as outdated.
This comment was marked as outdated.
3100dfa
to
8d1d9fb
Compare
Sorry for taking so long to get to this, I've been looking over this the past few days and will hopefully be done soon |
☔ The latest upstream changes (presumably #130724) made this pull request unmergeable. Please resolve the merge conflicts. |
This reverts commit 0c0dfb8.
8d1d9fb
to
2423e9e
Compare
I think the @bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (f5cd2c5): comparison URL. Overall result: ❌✅ regressions and improvements - ACTION NEEDEDNext Steps: If you can justify the regressions found in this perf run, please indicate this with @rustbot label: +perf-regression 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 0.4%, secondary -3.3%)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 1.8%, secondary 1.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 sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 768.261s -> 767.582s (-0.09%) |
Same as last times (#120393 (comment), #125722 (comment)), the version of diesel used by @rustbot label: +perf-regression-triaged |
This PR reworks the
non_local_definitions
lint to only use a syntactic heuristic, i.e. not use a type-system logic for whenever animpl
is local or not.Instead the new logic wanted by T-lang in #126768 (comment), which is to consider every paths in
Self
andTrait
and to no longer use the type-system inference trick.@rustbot labels +L-non_local_definitions
Fixes #126768