-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Report all lints, even if other errors already occurred. #108813
Conversation
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit c913bdc2672f0ae9f8a8b18d71171129234b1d53 with merge d9845989f7fe27114bf2d89955cc4fa6bade7a67... |
☀️ Try build successful - checks-actions |
1 similar comment
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
c913bdc
to
d1623a3
Compare
Finished benchmarking commit (d9845989f7fe27114bf2d89955cc4fa6bade7a67): comparison URL. Overall result: no relevant changes - no 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. @bors rollup=never Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis 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.
CyclesResultsThis 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.
|
Okay... not sure why I ran perf at all 😃 it's not like perf benchmarks emit errors 🤦 |
Well it kind makes sense to have some warning/error related benchmarks (perhaps even clippy lints 📎 ? ) |
r? compiler Will bless the test later today |
how likely is it that we report lints which are invalid because of a previous error? Currently slightly overwhelmed with my other reviews, so r? compiler |
We should fix those lints by checking for error types or errored typeck in case that happens. I found no obviously wrong cases in the changed diagnostics |
Type checking errors still early-exit because of the |
This comment has been minimized.
This comment has been minimized.
d1623a3
to
c1027bd
Compare
☔ The latest upstream changes (presumably #108471) made this pull request unmergeable. Please resolve the merge conflicts. |
LL | const B: *mut i32 = &mut 4; | ||
| ^^^^^^^^^^^^^^^^^ | ||
|
||
error: untyped pointers are not allowed in constant |
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.
This lint is clearly incorrect here: needs an bail for pointer to Err?
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.
It's not incorrect, but the wording can use some improvements. Basically only raw pointers that are just integers with a raw pointer type are allowed. All other raw pointers are forbidden.
c1027bd
to
c61b050
Compare
These commits modify the If this was intentional then you can ignore this comment. |
c61b050
to
1610aa1
Compare
This comment has been minimized.
This comment has been minimized.
☔ The latest upstream changes (presumably #108504) made this pull request unmergeable. Please resolve the merge conflicts. |
@oli-obk what's the status on this? do you want me to review it, or is does it need reworking? does it need an FCP? 🤔 |
I guess I could rebase it and then compiler FCP it. Not sure it needs an FCP, i'll bring it up in the T-compiler triage |
I think either an FCP or MCP would be fine 🙂 |
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 think this is a good idea and would second an MCP.
switching review flag to note that an MCP would be fine in this case (Zulip mention) @rustbot author |
This reduces surprises of the "I fixed all the errors, now I'm getting new ones"-kind
1610aa1
to
f77c183
Compare
☔ The latest upstream changes (presumably #111639) made this pull request unmergeable. Please resolve the merge conflicts. |
@oli-obk |
@JohnCSimon Oli is currently on leave, I think they'll continue working on this once they are back in January =) |
The MCP has not been approved and has concerns that can only be resolved by a larger discussion (RFC?) about whether we want to report all lints and errors upfront, or do it in a phased system like we do now. |
This reduces surprises of the "I fixed all the errors, now I'm getting new ones"-kind
r? @ghost