11error: the function `takes_ref` doesn't need a mutable reference
2- --> tests/ui/mut_reference .rs:56:15
2+ --> tests/ui/unnecessary_mut_passed .rs:56:15
33 |
44LL | takes_ref(&mut 42);
55 | ^^^^^^^ help: remove this `mut`: `&42`
@@ -8,67 +8,67 @@ LL | takes_ref(&mut 42);
88 = help: to override `-D warnings` add `#[allow(clippy::unnecessary_mut_passed)]`
99
1010error: the function `takes_ref_ref` doesn't need a mutable reference
11- --> tests/ui/mut_reference .rs:58:19
11+ --> tests/ui/unnecessary_mut_passed .rs:58:19
1212 |
1313LL | takes_ref_ref(&mut &42);
1414 | ^^^^^^^^ help: remove this `mut`: `&&42`
1515
1616error: the function `takes_ref_refmut` doesn't need a mutable reference
17- --> tests/ui/mut_reference .rs:60:22
17+ --> tests/ui/unnecessary_mut_passed .rs:60:22
1818 |
1919LL | takes_ref_refmut(&mut &mut 42);
2020 | ^^^^^^^^^^^^ help: remove this `mut`: `&&mut 42`
2121
2222error: the function `takes_raw_const` doesn't need a mutable reference
23- --> tests/ui/mut_reference .rs:62:21
23+ --> tests/ui/unnecessary_mut_passed .rs:62:21
2424 |
2525LL | takes_raw_const(&mut 42);
2626 | ^^^^^^^ help: remove this `mut`: `&42`
2727
2828error: the function `as_ptr` doesn't need a mutable reference
29- --> tests/ui/mut_reference .rs:66:12
29+ --> tests/ui/unnecessary_mut_passed .rs:66:12
3030 |
3131LL | as_ptr(&mut 42);
3232 | ^^^^^^^ help: remove this `mut`: `&42`
3333
3434error: the function `as_ptr` doesn't need a mutable reference
35- --> tests/ui/mut_reference .rs:69:12
35+ --> tests/ui/unnecessary_mut_passed .rs:69:12
3636 |
3737LL | as_ptr(&mut &42);
3838 | ^^^^^^^^ help: remove this `mut`: `&&42`
3939
4040error: the function `as_ptr` doesn't need a mutable reference
41- --> tests/ui/mut_reference .rs:72:12
41+ --> tests/ui/unnecessary_mut_passed .rs:72:12
4242 |
4343LL | as_ptr(&mut &mut 42);
4444 | ^^^^^^^^^^^^ help: remove this `mut`: `&&mut 42`
4545
4646error: the function `as_ptr` doesn't need a mutable reference
47- --> tests/ui/mut_reference .rs:75:12
47+ --> tests/ui/unnecessary_mut_passed .rs:75:12
4848 |
4949LL | as_ptr(&mut 42);
5050 | ^^^^^^^ help: remove this `mut`: `&42`
5151
5252error: the method `takes_ref` doesn't need a mutable reference
53- --> tests/ui/mut_reference .rs:80:25
53+ --> tests/ui/unnecessary_mut_passed .rs:80:25
5454 |
5555LL | my_struct.takes_ref(&mut 42);
5656 | ^^^^^^^ help: remove this `mut`: `&42`
5757
5858error: the method `takes_ref_ref` doesn't need a mutable reference
59- --> tests/ui/mut_reference .rs:82:29
59+ --> tests/ui/unnecessary_mut_passed .rs:82:29
6060 |
6161LL | my_struct.takes_ref_ref(&mut &42);
6262 | ^^^^^^^^ help: remove this `mut`: `&&42`
6363
6464error: the method `takes_ref_refmut` doesn't need a mutable reference
65- --> tests/ui/mut_reference .rs:84:32
65+ --> tests/ui/unnecessary_mut_passed .rs:84:32
6666 |
6767LL | my_struct.takes_ref_refmut(&mut &mut 42);
6868 | ^^^^^^^^^^^^ help: remove this `mut`: `&&mut 42`
6969
7070error: the method `takes_raw_const` doesn't need a mutable reference
71- --> tests/ui/mut_reference .rs:86:31
71+ --> tests/ui/unnecessary_mut_passed .rs:86:31
7272 |
7373LL | my_struct.takes_raw_const(&mut 42);
7474 | ^^^^^^^ help: remove this `mut`: `&42`
0 commit comments