fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.4 KiB38 linesraw
1error: types that do not implement `Drop` can still have drop glue, consider instead using `std::mem::needs_drop` to detect whether a type is trivially dropped
2  --> $DIR/dyn-drop.rs:3:19
3   |
4LL | fn foo(_: Box<dyn Drop>) {}
5   |                   ^^^^
6   |
7note: the lint level is defined here
8  --> $DIR/dyn-drop.rs:1:9
9   |
10LL | #![deny(dyn_drop)]
11   |         ^^^^^^^^
12
13error: types that do not implement `Drop` can still have drop glue, consider instead using `std::mem::needs_drop` to detect whether a type is trivially dropped
14  --> $DIR/dyn-drop.rs:4:16
15   |
16LL | fn bar(_: &dyn Drop) {}
17   |                ^^^^
18
19error: types that do not implement `Drop` can still have drop glue, consider instead using `std::mem::needs_drop` to detect whether a type is trivially dropped
20  --> $DIR/dyn-drop.rs:5:16
21   |
22LL | fn baz(_: *mut Drop) {}
23   |                ^^^^
24
25error: types that do not implement `Drop` can still have drop glue, consider instead using `std::mem::needs_drop` to detect whether a type is trivially dropped
26  --> $DIR/dyn-drop.rs:7:15
27   |
28LL |   _x: Box<dyn Drop>
29   |               ^^^^
30
31error: types that do not implement `Drop` can still have drop glue, consider instead using `std::mem::needs_drop` to detect whether a type is trivially dropped
32  --> $DIR/dyn-drop.rs:14:16
33   |
34LL |   type T = dyn Drop;
35   |                ^^^^
36
37error: aborting due to 5 previous errors
38