3

`trivially_copy_pass_by_ref` fixes by Jarcho · Pull Request #8639 · rust-lang/ru...

 2 years ago
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.
neoserver,ios ssh client

Contributor

@Jarcho Jarcho commented on Apr 6

fixes #5953
fixes #2961

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

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK