3
`trivially_copy_pass_by_ref` fixes by Jarcho · Pull Request #8639 · rust-lang/ru...
source link: https://github.com/rust-lang/rust-clippy/pull/8639
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
The fix for #5953 is overly aggressive, but the suggestion is so bad that it's worth the false negatives. Basically three things together:
- It's not obviously wrong
- It compiles
- It may actually work when tested
changelog: Don't lint trivially_copy_pass_by_ref
when unsafe pointers are used.
changelog: Better track lifetimes when linting trivially_copy_pass_by_ref
.
All reactions
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK