1- warning: calls to `std::mem::drop` with a reference instead of an owned value
1+ warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing
22 --> $DIR/drop_ref.rs:8:5
33 |
44LL | drop(&SomeStruct);
@@ -12,87 +12,87 @@ note: the lint level is defined here
1212LL | #![warn(drop_ref)]
1313 | ^^^^^^^^
1414
15- warning: calls to `std::mem::drop` with a reference instead of an owned value
15+ warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing
1616 --> $DIR/drop_ref.rs:11:5
1717 |
1818LL | drop(&owned1);
1919 | ^^^^^-------^
2020 | |
2121 | argument has type `&SomeStruct`
2222
23- warning: calls to `std::mem::drop` with a reference instead of an owned value
23+ warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing
2424 --> $DIR/drop_ref.rs:12:5
2525 |
2626LL | drop(&&owned1);
2727 | ^^^^^--------^
2828 | |
2929 | argument has type `&&SomeStruct`
3030
31- warning: calls to `std::mem::drop` with a reference instead of an owned value
31+ warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing
3232 --> $DIR/drop_ref.rs:13:5
3333 |
3434LL | drop(&mut owned1);
3535 | ^^^^^-----------^
3636 | |
3737 | argument has type `&mut SomeStruct`
3838
39- warning: calls to `std::mem::drop` with a reference instead of an owned value
39+ warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing
4040 --> $DIR/drop_ref.rs:17:5
4141 |
4242LL | drop(reference1);
4343 | ^^^^^----------^
4444 | |
4545 | argument has type `&SomeStruct`
4646
47- warning: calls to `std::mem::drop` with a reference instead of an owned value
47+ warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing
4848 --> $DIR/drop_ref.rs:20:5
4949 |
5050LL | drop(reference2);
5151 | ^^^^^----------^
5252 | |
5353 | argument has type `&mut SomeStruct`
5454
55- warning: calls to `std::mem::drop` with a reference instead of an owned value
55+ warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing
5656 --> $DIR/drop_ref.rs:23:5
5757 |
5858LL | drop(reference3);
5959 | ^^^^^----------^
6060 | |
6161 | argument has type `&SomeStruct`
6262
63- warning: calls to `std::mem::drop` with a reference instead of an owned value
63+ warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing
6464 --> $DIR/drop_ref.rs:28:5
6565 |
6666LL | drop(&val);
6767 | ^^^^^----^
6868 | |
6969 | argument has type `&T`
7070
71- warning: calls to `std::mem::drop` with a reference instead of an owned value
71+ warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing
7272 --> $DIR/drop_ref.rs:36:5
7373 |
7474LL | std::mem::drop(&SomeStruct);
7575 | ^^^^^^^^^^^^^^^-----------^
7676 | |
7777 | argument has type `&SomeStruct`
7878
79- warning: calls to `std::mem::drop` with a reference instead of an owned value
79+ warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing
8080 --> $DIR/drop_ref.rs:91:13
8181 |
8282LL | drop(println_and(&13));
8383 | ^^^^^----------------^
8484 | |
8585 | argument has type `&i32`
8686
87- warning: calls to `std::mem::drop` with a reference instead of an owned value
87+ warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing
8888 --> $DIR/drop_ref.rs:94:14
8989 |
9090LL | 3 if drop(println_and(&14)) == () => (),
9191 | ^^^^^----------------^
9292 | |
9393 | argument has type `&i32`
9494
95- warning: calls to `std::mem::drop` with a reference instead of an owned value
95+ warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing
9696 --> $DIR/drop_ref.rs:96:14
9797 |
9898LL | 4 => drop(&2),
0 commit comments