chore(unnecessary_mut_passed): show the intention not to lint &raw references (#16049)

Supersedes https://github.com/rust-lang/rust-clippy/pull/15962

changelog: none

r? @Jarcho
This commit is contained in:
Jason Newcomb 2025-11-08 14:24:20 +00:00 committed by GitHub
commit d154da9773
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -146,7 +146,7 @@ fn main() {
my_struct.takes_raw_mut(a);
}
// not supported currently
// These shouldn't be linted, see https://github.com/rust-lang/rust-clippy/pull/15962#issuecomment-3503704832
fn raw_ptrs(my_struct: MyStruct) {
let mut n = 42;

View file

@ -146,7 +146,7 @@ fn main() {
my_struct.takes_raw_mut(a);
}
// not supported currently
// These shouldn't be linted, see https://github.com/rust-lang/rust-clippy/pull/15962#issuecomment-3503704832
fn raw_ptrs(my_struct: MyStruct) {
let mut n = 42;