-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Post lint on the type HIR node #15709
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
Conversation
Lintcheck changes for d84505b
This comment will be updated if you push new changes |
Oh, I was trying to do basically this for #13356, which complains about the particular case of Speaking of that lint, you have a small typo in its name -- |
I fixed the typo, thanks. Yeah, it should probably be renamed, but not in this PR though. I'll note that #13356 will be closed as well. |
} | ||
|
||
fn main() {} | ||
|
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.
Same here
} | ||
|
||
fn main() {} | ||
|
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.
…and here
28740a3
to
392396f
Compare
Out of the 5 lints in the `derive` directory, only two of them (`unsafe_derive_deserialize` and `derive_partial_eq_without_eq`) posted the lint on the ADT node. This fixes the situation for the three other lints: - `derive_hash_with_manual_eq` - `derive_ord_xor_partial_ord` - `expl_impl_clone_on_copy` This allows `#[expect]` to be used on the ADT to silence the lint. Also, this makes `expl_impl_clone_on_copy` properly use an "help" message instead of a "note" one when suggesting a fix.
392396f
to
d84505b
Compare
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.
LGTM, thanks for the bugfix!
Out of the 5 lints in the
derive
directory, only two of them (unsafe_derive_deserialize
andderive_partial_eq_without_eq
) posted the lint on the ADT node. This fixes the situation for the three other lints:derived_hash_with_manual_eq
derive_ord_xor_partial_ord
expl_impl_clone_on_copy
This allows
#[expect]
to be used on the ADT to silence the lint.Also, this makes
expl_impl_clone_on_copy
properly use an "help" message instead of a "note" one when suggesting a fix.Fixes #15708
Fixes #13356
changelog: [
derived_hash_with_manual_eq
]: honor the use of#[expect]
on the type to which the lint applieschangelog: [
derive_ord_xor_partial_ord
]: honor the use of#[expect]
on the type to which the lint applieschangelog: [
expl_impl_clone_on_copy
]: honor the use of#[expect]
on the type to which the lint applies