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