1
1
warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing
2
- --> $DIR/drop_ref .rs:8:5
2
+ --> $DIR/dropping_references .rs:8:5
3
3
|
4
4
LL | drop(&SomeStruct);
5
5
| ^^^^^-----------^
@@ -8,13 +8,13 @@ LL | drop(&SomeStruct);
8
8
|
9
9
= note: use `let _ = ...` to ignore the expression or result
10
10
note: the lint level is defined here
11
- --> $DIR/drop_ref .rs:3:9
11
+ --> $DIR/dropping_references .rs:3:9
12
12
|
13
- LL | #![warn(drop_ref )]
14
- | ^^^^^^^^
13
+ LL | #![warn(dropping_references )]
14
+ | ^^^^^^^^^^^^^^^^^^^
15
15
16
16
warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing
17
- --> $DIR/drop_ref .rs:11:5
17
+ --> $DIR/dropping_references .rs:11:5
18
18
|
19
19
LL | drop(&owned1);
20
20
| ^^^^^-------^
@@ -24,7 +24,7 @@ LL | drop(&owned1);
24
24
= note: use `let _ = ...` to ignore the expression or result
25
25
26
26
warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing
27
- --> $DIR/drop_ref .rs:12:5
27
+ --> $DIR/dropping_references .rs:12:5
28
28
|
29
29
LL | drop(&&owned1);
30
30
| ^^^^^--------^
@@ -34,7 +34,7 @@ LL | drop(&&owned1);
34
34
= note: use `let _ = ...` to ignore the expression or result
35
35
36
36
warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing
37
- --> $DIR/drop_ref .rs:13:5
37
+ --> $DIR/dropping_references .rs:13:5
38
38
|
39
39
LL | drop(&mut owned1);
40
40
| ^^^^^-----------^
@@ -44,7 +44,7 @@ LL | drop(&mut owned1);
44
44
= note: use `let _ = ...` to ignore the expression or result
45
45
46
46
warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing
47
- --> $DIR/drop_ref .rs:17:5
47
+ --> $DIR/dropping_references .rs:17:5
48
48
|
49
49
LL | drop(reference1);
50
50
| ^^^^^----------^
@@ -54,7 +54,7 @@ LL | drop(reference1);
54
54
= note: use `let _ = ...` to ignore the expression or result
55
55
56
56
warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing
57
- --> $DIR/drop_ref .rs:20:5
57
+ --> $DIR/dropping_references .rs:20:5
58
58
|
59
59
LL | drop(reference2);
60
60
| ^^^^^----------^
@@ -64,7 +64,7 @@ LL | drop(reference2);
64
64
= note: use `let _ = ...` to ignore the expression or result
65
65
66
66
warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing
67
- --> $DIR/drop_ref .rs:23:5
67
+ --> $DIR/dropping_references .rs:23:5
68
68
|
69
69
LL | drop(reference3);
70
70
| ^^^^^----------^
@@ -74,7 +74,7 @@ LL | drop(reference3);
74
74
= note: use `let _ = ...` to ignore the expression or result
75
75
76
76
warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing
77
- --> $DIR/drop_ref .rs:28:5
77
+ --> $DIR/dropping_references .rs:28:5
78
78
|
79
79
LL | drop(&val);
80
80
| ^^^^^----^
@@ -84,7 +84,7 @@ LL | drop(&val);
84
84
= note: use `let _ = ...` to ignore the expression or result
85
85
86
86
warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing
87
- --> $DIR/drop_ref .rs:36:5
87
+ --> $DIR/dropping_references .rs:36:5
88
88
|
89
89
LL | std::mem::drop(&SomeStruct);
90
90
| ^^^^^^^^^^^^^^^-----------^
@@ -94,7 +94,7 @@ LL | std::mem::drop(&SomeStruct);
94
94
= note: use `let _ = ...` to ignore the expression or result
95
95
96
96
warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing
97
- --> $DIR/drop_ref .rs:91:13
97
+ --> $DIR/dropping_references .rs:91:13
98
98
|
99
99
LL | drop(println_and(&13));
100
100
| ^^^^^----------------^
@@ -104,7 +104,7 @@ LL | drop(println_and(&13));
104
104
= note: use `let _ = ...` to ignore the expression or result
105
105
106
106
warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing
107
- --> $DIR/drop_ref .rs:94:14
107
+ --> $DIR/dropping_references .rs:94:14
108
108
|
109
109
LL | 3 if drop(println_and(&14)) == () => (),
110
110
| ^^^^^----------------^
@@ -114,7 +114,7 @@ LL | 3 if drop(println_and(&14)) == () => (),
114
114
= note: use `let _ = ...` to ignore the expression or result
115
115
116
116
warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing
117
- --> $DIR/drop_ref .rs:96:14
117
+ --> $DIR/dropping_references .rs:96:14
118
118
|
119
119
LL | 4 => drop(&2),
120
120
| ^^^^^--^
0 commit comments