-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Remove unused #[must_use]
#145274
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
base: master
Are you sure you want to change the base?
Remove unused #[must_use]
#145274
Conversation
r? @wesleywiser rustbot has assigned @wesleywiser. Use |
Some changes occurred in compiler/rustc_passes/src/check_attr.rs |
@@ -133,4 +135,5 @@ fn main() { | |||
} | |||
let s = PatternField { #[must_use] foo: 123 }; //~ ERROR `#[must_use]` has no effect | |||
let PatternField { #[must_use] foo } = s; //~ ERROR `#[must_use]` has no effect | |||
let _ = foo; |
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.
@run-rustfix
requires that all warnings are gone, and foo
is unused, so I'm suppressing it here.
Thenks!~ r? fmease @bors r+ rollup |
The job Click to see the possible cause of the failure (guessed by this bot)
|
@bors r- |
Will bless when I am back at my computer |
Self-explanatory
Fixes #145257