-
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
Add an allow attribute suggestion along with the implied by suggestion #114089
Conversation
r? @wesleywiser (rustbot has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
0bc470c
to
9e18748
Compare
Some changes occurred in src/tools/clippy cc @rust-lang/clippy |
Do we maybe want to suggest This is just a biased suggestion since I've implemented that attribute and am currently trying to push the stabilization, so please ignore it if you don't agree. Besides that suggestion, I really like this change 👍 |
@xFrednet That sounds sensible and may be a better default than For instance, in the "temporary/development In the "committed/permanent Perhaps the best solution is to suggest both, and let users decide. By the way, it may be even better/easier to already go for |
b1af763
to
a7a6a1b
Compare
This comment was marked as resolved.
This comment was marked as resolved.
a7a6a1b
to
2c529d1
Compare
6643dfb
to
1b4e330
Compare
This comment has been minimized.
This comment has been minimized.
1b4e330
to
61be1dc
Compare
This comment was marked as resolved.
This comment was marked as resolved.
61be1dc
to
64e7544
Compare
64e7544
to
e796835
Compare
@wesleywiser still interested in reviewing this MR ? |
r? compiler |
src/tools/clippy/tests/ui-toml/absolute_paths/absolute_paths.allow_crates.stderr
Outdated
Show resolved
Hide resolved
💔 Test failed - checks-actions |
@bors retry error decoding response body: operation timed out Still investigating. |
…rochenkov Add an allow attribute suggestion along with the implied by suggestion This PR adds an `#[allow(...)]` attribute hep suggestion along with the implied by suggestion: ```diff note: `-W dead-code` implied by `-W unused` + help: to override `-W unused` add `#[allow(dead_code)]` ``` This PR also adds the `OnceHelp` lint level (similar to `OnceNote`) to only put the help message one time, like the implied note. Related to rust-lang#114030
The job Click to see the possible cause of the failure (guessed by this bot)
|
⌛ Testing commit 9190e96 with merge dbbc2d0cfbf7328b301488f385be5df4efdfcb66... |
💔 Test failed - checks-actions |
A job failed! Check out the build log: (web) (plain) Click to see the possible cause of the failure (guessed by this bot)
|
@bors retry GitHub checkout failed |
@bors p=101 |
☀️ Test successful - checks-actions |
Finished benchmarking commit (04374cd): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression 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.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 629.118s -> 629.115s (-0.00%) |
I am SO excited by this, you have no idea. Not having something to easily copy-paste, and needing to change hyphens to underscores, is one of the most annoying papercuts I hit with Clippy. @Urgau know that I will be sending thoughts of thanks your way for YEARS to come every time I can copy-paste an |
This PR adds an
#[allow(...)]
attribute hep suggestion along with the implied by suggestion:note: `-W dead-code` implied by `-W unused` + help: to override `-W unused` add `#[allow(dead_code)]`
This PR also adds the
OnceHelp
lint level (similar toOnceNote
) to only put the help message one time, like the implied note.Related to #114030