|
1 | 1 | error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing.
|
2 |
| - --> $DIR/drop_ref.rs:9:5 |
| 2 | + --> $DIR/drop_ref.rs:10:5 |
3 | 3 | |
|
4 | 4 | LL | drop(&SomeStruct);
|
5 | 5 | | ^^^^^^^^^^^^^^^^^
|
6 | 6 | |
|
7 | 7 | = note: `-D clippy::drop-ref` implied by `-D warnings`
|
8 | 8 | note: argument has type `&SomeStruct`
|
9 |
| - --> $DIR/drop_ref.rs:9:10 |
| 9 | + --> $DIR/drop_ref.rs:10:10 |
10 | 10 | |
|
11 | 11 | LL | drop(&SomeStruct);
|
12 | 12 | | ^^^^^^^^^^^
|
13 | 13 |
|
14 | 14 | error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing.
|
15 |
| - --> $DIR/drop_ref.rs:12:5 |
| 15 | + --> $DIR/drop_ref.rs:13:5 |
16 | 16 | |
|
17 | 17 | LL | drop(&owned1);
|
18 | 18 | | ^^^^^^^^^^^^^
|
19 | 19 | |
|
20 | 20 | note: argument has type `&SomeStruct`
|
21 |
| - --> $DIR/drop_ref.rs:12:10 |
| 21 | + --> $DIR/drop_ref.rs:13:10 |
22 | 22 | |
|
23 | 23 | LL | drop(&owned1);
|
24 | 24 | | ^^^^^^^
|
25 | 25 |
|
26 | 26 | error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing.
|
27 |
| - --> $DIR/drop_ref.rs:13:5 |
| 27 | + --> $DIR/drop_ref.rs:14:5 |
28 | 28 | |
|
29 | 29 | LL | drop(&&owned1);
|
30 | 30 | | ^^^^^^^^^^^^^^
|
31 | 31 | |
|
32 | 32 | note: argument has type `&&SomeStruct`
|
33 |
| - --> $DIR/drop_ref.rs:13:10 |
| 33 | + --> $DIR/drop_ref.rs:14:10 |
34 | 34 | |
|
35 | 35 | LL | drop(&&owned1);
|
36 | 36 | | ^^^^^^^^
|
37 | 37 |
|
38 | 38 | error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing.
|
39 |
| - --> $DIR/drop_ref.rs:14:5 |
| 39 | + --> $DIR/drop_ref.rs:15:5 |
40 | 40 | |
|
41 | 41 | LL | drop(&mut owned1);
|
42 | 42 | | ^^^^^^^^^^^^^^^^^
|
43 | 43 | |
|
44 | 44 | note: argument has type `&mut SomeStruct`
|
45 |
| - --> $DIR/drop_ref.rs:14:10 |
| 45 | + --> $DIR/drop_ref.rs:15:10 |
46 | 46 | |
|
47 | 47 | LL | drop(&mut owned1);
|
48 | 48 | | ^^^^^^^^^^^
|
49 | 49 |
|
50 | 50 | error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing.
|
51 |
| - --> $DIR/drop_ref.rs:18:5 |
| 51 | + --> $DIR/drop_ref.rs:19:5 |
52 | 52 | |
|
53 | 53 | LL | drop(reference1);
|
54 | 54 | | ^^^^^^^^^^^^^^^^
|
55 | 55 | |
|
56 | 56 | note: argument has type `&SomeStruct`
|
57 |
| - --> $DIR/drop_ref.rs:18:10 |
| 57 | + --> $DIR/drop_ref.rs:19:10 |
58 | 58 | |
|
59 | 59 | LL | drop(reference1);
|
60 | 60 | | ^^^^^^^^^^
|
61 | 61 |
|
62 | 62 | error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing.
|
63 |
| - --> $DIR/drop_ref.rs:21:5 |
| 63 | + --> $DIR/drop_ref.rs:22:5 |
64 | 64 | |
|
65 | 65 | LL | drop(reference2);
|
66 | 66 | | ^^^^^^^^^^^^^^^^
|
67 | 67 | |
|
68 | 68 | note: argument has type `&mut SomeStruct`
|
69 |
| - --> $DIR/drop_ref.rs:21:10 |
| 69 | + --> $DIR/drop_ref.rs:22:10 |
70 | 70 | |
|
71 | 71 | LL | drop(reference2);
|
72 | 72 | | ^^^^^^^^^^
|
73 | 73 |
|
74 | 74 | error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing.
|
75 |
| - --> $DIR/drop_ref.rs:24:5 |
| 75 | + --> $DIR/drop_ref.rs:25:5 |
76 | 76 | |
|
77 | 77 | LL | drop(reference3);
|
78 | 78 | | ^^^^^^^^^^^^^^^^
|
79 | 79 | |
|
80 | 80 | note: argument has type `&SomeStruct`
|
81 |
| - --> $DIR/drop_ref.rs:24:10 |
| 81 | + --> $DIR/drop_ref.rs:25:10 |
82 | 82 | |
|
83 | 83 | LL | drop(reference3);
|
84 | 84 | | ^^^^^^^^^^
|
85 | 85 |
|
86 | 86 | error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing.
|
87 |
| - --> $DIR/drop_ref.rs:29:5 |
| 87 | + --> $DIR/drop_ref.rs:30:5 |
88 | 88 | |
|
89 | 89 | LL | drop(&val);
|
90 | 90 | | ^^^^^^^^^^
|
91 | 91 | |
|
92 | 92 | note: argument has type `&T`
|
93 |
| - --> $DIR/drop_ref.rs:29:10 |
| 93 | + --> $DIR/drop_ref.rs:30:10 |
94 | 94 | |
|
95 | 95 | LL | drop(&val);
|
96 | 96 | | ^^^^
|
97 | 97 |
|
98 | 98 | error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing.
|
99 |
| - --> $DIR/drop_ref.rs:37:5 |
| 99 | + --> $DIR/drop_ref.rs:38:5 |
100 | 100 | |
|
101 | 101 | LL | std::mem::drop(&SomeStruct);
|
102 | 102 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
103 | 103 | |
|
104 | 104 | note: argument has type `&SomeStruct`
|
105 |
| - --> $DIR/drop_ref.rs:37:20 |
| 105 | + --> $DIR/drop_ref.rs:38:20 |
106 | 106 | |
|
107 | 107 | LL | std::mem::drop(&SomeStruct);
|
108 | 108 | | ^^^^^^^^^^^
|
|
0 commit comments