2017-03-24 10:21:12 +01:00
|
|
|
error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing.
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:22:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
22 | drop(&SomeStruct);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2018-08-01 16:30:44 +02:00
|
|
|
= note: `-D clippy::drop-ref` implied by `-D warnings`
|
2017-02-07 21:05:30 +01:00
|
|
|
note: argument has type &SomeStruct
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:22:10
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
22 | drop(&SomeStruct);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
2017-03-24 10:21:12 +01:00
|
|
|
error: calls to `std::mem::forget` with a reference instead of an owned value. Forgetting a reference does nothing.
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:23:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
23 | forget(&SomeStruct);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2018-08-01 16:30:44 +02:00
|
|
|
= note: `-D clippy::forget-ref` implied by `-D warnings`
|
2017-02-07 21:05:30 +01:00
|
|
|
note: argument has type &SomeStruct
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:23:12
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
23 | forget(&SomeStruct);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
2017-03-24 10:21:12 +01:00
|
|
|
error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing.
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:26:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
26 | drop(&owned1);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &SomeStruct
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:26:10
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
26 | drop(&owned1);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^
|
|
|
|
|
2017-03-24 10:21:12 +01:00
|
|
|
error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing.
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:27:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
27 | drop(&&owned1);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &&SomeStruct
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:27:10
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
27 | drop(&&owned1);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^
|
|
|
|
|
2017-03-24 10:21:12 +01:00
|
|
|
error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing.
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:28:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
28 | drop(&mut owned1);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &mut SomeStruct
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:28:10
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
28 | drop(&mut owned1);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
2017-03-24 10:21:12 +01:00
|
|
|
error: calls to `std::mem::forget` with a reference instead of an owned value. Forgetting a reference does nothing.
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:31:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
31 | forget(&owned2);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &SomeStruct
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:31:12
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
31 | forget(&owned2);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^
|
|
|
|
|
2017-03-24 10:21:12 +01:00
|
|
|
error: calls to `std::mem::forget` with a reference instead of an owned value. Forgetting a reference does nothing.
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:32:5
|
2017-02-26 04:55:43 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
32 | forget(&&owned2);
|
2017-02-26 04:55:43 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &&SomeStruct
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:32:12
|
2017-02-26 04:55:43 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
32 | forget(&&owned2);
|
2017-02-26 04:55:43 +01:00
|
|
|
| ^^^^^^^^
|
|
|
|
|
2017-03-24 10:21:12 +01:00
|
|
|
error: calls to `std::mem::forget` with a reference instead of an owned value. Forgetting a reference does nothing.
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:33:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
33 | forget(&mut owned2);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &mut SomeStruct
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:33:12
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
33 | forget(&mut owned2);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
2017-03-24 10:21:12 +01:00
|
|
|
error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing.
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:37:5
|
2017-02-26 04:55:43 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
37 | drop(reference1);
|
2017-02-26 04:55:43 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &SomeStruct
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:37:10
|
2017-02-26 04:55:43 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
37 | drop(reference1);
|
2017-02-26 04:55:43 +01:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
2017-03-24 10:21:12 +01:00
|
|
|
error: calls to `std::mem::forget` with a reference instead of an owned value. Forgetting a reference does nothing.
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:38:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
38 | forget(&*reference1);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &SomeStruct
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:38:12
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
38 | forget(&*reference1);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
2017-03-24 10:21:12 +01:00
|
|
|
error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing.
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:41:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
41 | drop(reference2);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &mut SomeStruct
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:41:10
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
41 | drop(reference2);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
2017-03-24 10:21:12 +01:00
|
|
|
error: calls to `std::mem::forget` with a reference instead of an owned value. Forgetting a reference does nothing.
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:43:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
43 | forget(reference3);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &mut SomeStruct
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:43:12
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
43 | forget(reference3);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
2017-03-24 10:21:12 +01:00
|
|
|
error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing.
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:46:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
46 | drop(reference4);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &SomeStruct
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:46:10
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
46 | drop(reference4);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
2017-03-24 10:21:12 +01:00
|
|
|
error: calls to `std::mem::forget` with a reference instead of an owned value. Forgetting a reference does nothing.
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:47:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
47 | forget(reference4);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &SomeStruct
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:47:12
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
47 | forget(reference4);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
2017-03-24 10:21:12 +01:00
|
|
|
error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing.
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:52:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
52 | drop(&val);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &T
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:52:10
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
52 | drop(&val);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^
|
|
|
|
|
2017-03-24 10:21:12 +01:00
|
|
|
error: calls to `std::mem::forget` with a reference instead of an owned value. Forgetting a reference does nothing.
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:58:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
58 | forget(&val);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &T
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:58:12
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
58 | forget(&val);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^
|
|
|
|
|
2017-03-24 10:21:12 +01:00
|
|
|
error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing.
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:66:5
|
2017-02-26 04:55:43 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
66 | std::mem::drop(&SomeStruct);
|
2017-02-26 04:55:43 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &SomeStruct
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:66:20
|
2017-02-26 04:55:43 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
66 | std::mem::drop(&SomeStruct);
|
2017-02-26 04:55:43 +01:00
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
2017-03-24 10:21:12 +01:00
|
|
|
error: calls to `std::mem::forget` with a reference instead of an owned value. Forgetting a reference does nothing.
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:69:5
|
2017-02-26 04:55:43 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
69 | std::mem::forget(&SomeStruct);
|
2017-02-26 04:55:43 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &SomeStruct
|
2018-10-06 18:18:06 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:69:22
|
2017-02-26 04:55:43 +01:00
|
|
|
|
|
2018-10-06 18:18:06 +02:00
|
|
|
69 | std::mem::forget(&SomeStruct);
|
2017-02-26 04:55:43 +01:00
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
2018-01-16 17:06:27 +01:00
|
|
|
error: aborting due to 18 previous errors
|
|
|
|
|