mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 09:38:26 +03:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user