-
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
Lint against more useless #[must_use]
attributes
#93926
Conversation
(rust-highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
155601f
to
06e6d37
Compare
@bors r+ |
📌 Commit 06e6d37f23f6e9934310380eee06eca977a6e770 has been approved by |
⌛ Testing commit 06e6d37f23f6e9934310380eee06eca977a6e770 with merge 054616ddf350f630418dc6221a3a0db6ff74531d... |
This comment has been minimized.
This comment has been minimized.
💔 Test failed - checks-actions |
This expands the existing `#[must_use]` check in `unused_attributes` to lint against pretty much everything `#[must_use]` doesn't support. Fixes rust-lang#93906.
06e6d37
to
6dcf5d8
Compare
I'm hoping the missing |
@bors r+ |
📌 Commit 6dcf5d8 has been approved by |
Rollup of 7 pull requests Successful merges: - rust-lang#91545 (Generalize "remove `&`" and "add `*`" suggestions to more than one deref) - rust-lang#93385 (Rustdoc ty consistency fixes) - rust-lang#93926 (Lint against more useless `#[must_use]` attributes) - rust-lang#94094 (use BOOL for TCP_NODELAY setsockopt value on Windows) - rust-lang#94384 (Add Atomic*::from_mut_slice) - rust-lang#94448 (5 - Make more use of `let_chains`) - rust-lang#94452 (Sync portable-simd for bitmasks &c.) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
This expands the existing
#[must_use]
check inunused_attributes
to lint against pretty much everything#[must_use]
doesn't support.Fixes #93906.