-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Mark some macros with must_use hint #127509
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @joboet (or someone else) some time within the next two weeks. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
This comment has been minimized.
This comment has been minimized.
Some changes occurred in src/tools/clippy cc @rust-lang/clippy |
I am not sure if all those changes are anticipated 🤔 |
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 seems to have regressed a lot of clippy lints/tests (for example the useless_vec
lint emits no warnings at all anymore).
I'm guessing that our clippy_utils::higher::VecArgs
util no longer recognizes the vec!
expansion and needs to be updated
This comment has been minimized.
This comment has been minimized.
($fmt:expr) => {{ /* compiler built-in */ }}; | ||
($fmt:expr, $($args:tt)*) => {{ /* compiler built-in */ }}; | ||
($fmt:expr) => { | ||
$crate::hint::must_use({ /* compiler built-in */ }) |
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 doesn't do anything, same for all other builtin macros. you'd need to modify the compiler
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 am afraid this undergoing is way above my capabilities
The job Click to see the possible cause of the failure (guessed by this bot)
|
Note that there are some cases where we need to be careful with edit: wow I should really read the top post before commenting, ignore me -___- |
@rustbot author |
Uses unstable feature #94745
Part of #126475
Marking
pin::pin!()
currently results in errors likeI think this is #124493?
r? @oli-obk