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:
commit
d154da9773
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue