Skip to content

Commit d154da9

Browse files
authored
chore(unnecessary_mut_passed): show the intention not to lint &raw references (#16049)
Supersedes #15962 changelog: none r? @Jarcho
2 parents ee4390f + b59b2fd commit d154da9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/ui/unnecessary_mut_passed.fixed

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ fn main() {
146146
my_struct.takes_raw_mut(a);
147147
}
148148

149-
// not supported currently
149+
// These shouldn't be linted, see https://github.com/rust-lang/rust-clippy/pull/15962#issuecomment-3503704832
150150
fn raw_ptrs(my_struct: MyStruct) {
151151
let mut n = 42;
152152

tests/ui/unnecessary_mut_passed.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ fn main() {
146146
my_struct.takes_raw_mut(a);
147147
}
148148

149-
// not supported currently
149+
// These shouldn't be linted, see https://github.com/rust-lang/rust-clippy/pull/15962#issuecomment-3503704832
150150
fn raw_ptrs(my_struct: MyStruct) {
151151
let mut n = 42;
152152

0 commit comments

Comments
 (0)