-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #11624 - GuillaumeGomez:needless_pass_by_ref_mut-unsafe…
…-fn-block, r=blyxyas Don't emit `needless_pass_by_ref_mut` if the variable is used in an unsafe block or function Fixes #11586. Fixes #11180. As suggested in the two issues above, this lint should not be emitted if this an unsafe function or if the argument is used in an unsafe block. changelog: [`needless_pass_by_ref_mut`]: Don't emit if the variable is used in an unsafe block or function
Showing
2 changed files
with
83 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters