1
1
error: 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
3
3
|
4
4
LL | takes_ref(&mut 42);
5
5
| ^^^^^^^ help: remove this `mut`: `&42`
@@ -8,67 +8,67 @@ LL | takes_ref(&mut 42);
8
8
= help: to override `-D warnings` add `#[allow(clippy::unnecessary_mut_passed)]`
9
9
10
10
error: 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
12
12
|
13
13
LL | takes_ref_ref(&mut &42);
14
14
| ^^^^^^^^ help: remove this `mut`: `&&42`
15
15
16
16
error: 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
18
18
|
19
19
LL | takes_ref_refmut(&mut &mut 42);
20
20
| ^^^^^^^^^^^^ help: remove this `mut`: `&&mut 42`
21
21
22
22
error: 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
24
24
|
25
25
LL | takes_raw_const(&mut 42);
26
26
| ^^^^^^^ help: remove this `mut`: `&42`
27
27
28
28
error: 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
30
30
|
31
31
LL | as_ptr(&mut 42);
32
32
| ^^^^^^^ help: remove this `mut`: `&42`
33
33
34
34
error: 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
36
36
|
37
37
LL | as_ptr(&mut &42);
38
38
| ^^^^^^^^ help: remove this `mut`: `&&42`
39
39
40
40
error: 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
42
42
|
43
43
LL | as_ptr(&mut &mut 42);
44
44
| ^^^^^^^^^^^^ help: remove this `mut`: `&&mut 42`
45
45
46
46
error: 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
48
48
|
49
49
LL | as_ptr(&mut 42);
50
50
| ^^^^^^^ help: remove this `mut`: `&42`
51
51
52
52
error: 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
54
54
|
55
55
LL | my_struct.takes_ref(&mut 42);
56
56
| ^^^^^^^ help: remove this `mut`: `&42`
57
57
58
58
error: 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
60
60
|
61
61
LL | my_struct.takes_ref_ref(&mut &42);
62
62
| ^^^^^^^^ help: remove this `mut`: `&&42`
63
63
64
64
error: 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
66
66
|
67
67
LL | my_struct.takes_ref_refmut(&mut &mut 42);
68
68
| ^^^^^^^^^^^^ help: remove this `mut`: `&&mut 42`
69
69
70
70
error: 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
72
72
|
73
73
LL | my_struct.takes_raw_const(&mut 42);
74
74
| ^^^^^^^ help: remove this `mut`: `&42`
0 commit comments