1
1
warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing
2
- --> $DIR/drop_copy .rs:34:5
2
+ --> $DIR/dropping_copy_types .rs:34:5
3
3
|
4
4
LL | drop(s1);
5
5
| ^^^^^--^
@@ -8,13 +8,13 @@ LL | drop(s1);
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_copy .rs:3:9
11
+ --> $DIR/dropping_copy_types .rs:3:9
12
12
|
13
- LL | #![warn(drop_copy )]
14
- | ^^^^^^^^^
13
+ LL | #![warn(dropping_copy_types )]
14
+ | ^^^^^^^^^^^^^^^^^^^
15
15
16
16
warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing
17
- --> $DIR/drop_copy .rs:35:5
17
+ --> $DIR/dropping_copy_types .rs:35:5
18
18
|
19
19
LL | drop(s2);
20
20
| ^^^^^--^
@@ -24,7 +24,7 @@ LL | drop(s2);
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_copy .rs:36:5
27
+ --> $DIR/dropping_copy_types .rs:36:5
28
28
|
29
29
LL | drop(s3);
30
30
| ^^^^^--^
@@ -35,7 +35,7 @@ LL | drop(s3);
35
35
= note: `#[warn(drop_ref)]` on by default
36
36
37
37
warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing
38
- --> $DIR/drop_copy .rs:37:5
38
+ --> $DIR/dropping_copy_types .rs:37:5
39
39
|
40
40
LL | drop(s4);
41
41
| ^^^^^--^
@@ -45,7 +45,7 @@ LL | drop(s4);
45
45
= note: use `let _ = ...` to ignore the expression or result
46
46
47
47
warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing
48
- --> $DIR/drop_copy .rs:38:5
48
+ --> $DIR/dropping_copy_types .rs:38:5
49
49
|
50
50
LL | drop(s5);
51
51
| ^^^^^--^
@@ -55,7 +55,7 @@ LL | drop(s5);
55
55
= note: use `let _ = ...` to ignore the expression or result
56
56
57
57
warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing
58
- --> $DIR/drop_copy .rs:50:5
58
+ --> $DIR/dropping_copy_types .rs:50:5
59
59
|
60
60
LL | drop(a2);
61
61
| ^^^^^--^
@@ -65,7 +65,7 @@ LL | drop(a2);
65
65
= note: use `let _ = ...` to ignore the expression or result
66
66
67
67
warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing
68
- --> $DIR/drop_copy .rs:52:5
68
+ --> $DIR/dropping_copy_types .rs:52:5
69
69
|
70
70
LL | drop(a4);
71
71
| ^^^^^--^
@@ -75,7 +75,7 @@ LL | drop(a4);
75
75
= note: use `let _ = ...` to ignore the expression or result
76
76
77
77
warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing
78
- --> $DIR/drop_copy .rs:71:13
78
+ --> $DIR/dropping_copy_types .rs:71:13
79
79
|
80
80
LL | drop(println_and(13));
81
81
| ^^^^^---------------^
@@ -85,7 +85,7 @@ LL | drop(println_and(13));
85
85
= note: use `let _ = ...` to ignore the expression or result
86
86
87
87
warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing
88
- --> $DIR/drop_copy .rs:74:14
88
+ --> $DIR/dropping_copy_types .rs:74:14
89
89
|
90
90
LL | 3 if drop(println_and(14)) == () => (),
91
91
| ^^^^^---------------^
@@ -95,7 +95,7 @@ LL | 3 if drop(println_and(14)) == () => (),
95
95
= note: use `let _ = ...` to ignore the expression or result
96
96
97
97
warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing
98
- --> $DIR/drop_copy .rs:76:14
98
+ --> $DIR/dropping_copy_types .rs:76:14
99
99
|
100
100
LL | 4 => drop(2),
101
101
| ^^^^^-^
0 commit comments