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.
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:12:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
12 | 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
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:12:10
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
12 | 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.
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:13:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
13 | 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
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:13:12
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
13 | 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.
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:16:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
16 | drop(&owned1);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &SomeStruct
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:16:10
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
16 | 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.
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:17:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
17 | drop(&&owned1);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &&SomeStruct
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:17:10
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
17 | 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.
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:18:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
18 | drop(&mut owned1);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &mut SomeStruct
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:18:10
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
18 | 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.
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:21:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
21 | forget(&owned2);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &SomeStruct
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:21:12
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
21 | 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.
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:22:5
|
2017-02-26 04:55:43 +01:00
|
|
|
|
|
|
|
|
22 | forget(&&owned2);
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &&SomeStruct
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:22:12
|
2017-02-26 04:55:43 +01:00
|
|
|
|
|
|
|
|
22 | forget(&&owned2);
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
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.
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:23:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
23 | forget(&mut owned2);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &mut SomeStruct
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:23:12
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
23 | 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.
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:27:5
|
2017-02-26 04:55:43 +01:00
|
|
|
|
|
|
|
|
27 | drop(reference1);
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &SomeStruct
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:27:10
|
2017-02-26 04:55:43 +01:00
|
|
|
|
|
|
|
|
27 | drop(reference1);
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
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.
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:28:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
28 | forget(&*reference1);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &SomeStruct
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:28:12
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
28 | 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.
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:31:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
31 | drop(reference2);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &mut SomeStruct
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:31:10
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
31 | 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.
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:33:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
33 | forget(reference3);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &mut SomeStruct
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:33:12
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
33 | 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.
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:36:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
36 | drop(reference4);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &SomeStruct
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:36:10
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
36 | 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.
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:37:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
37 | forget(reference4);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &SomeStruct
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:37:12
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
37 | 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.
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:42:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
42 | drop(&val);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &T
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:42:10
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
42 | 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.
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:48:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
48 | forget(&val);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &T
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:48:12
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
48 | 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.
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:56:5
|
2017-02-26 04:55:43 +01:00
|
|
|
|
|
|
|
|
56 | std::mem::drop(&SomeStruct);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &SomeStruct
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:56:20
|
2017-02-26 04:55:43 +01:00
|
|
|
|
|
|
|
|
56 | std::mem::drop(&SomeStruct);
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
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.
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:59:5
|
2017-02-26 04:55:43 +01:00
|
|
|
|
|
|
|
|
59 | std::mem::forget(&SomeStruct);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &SomeStruct
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/drop_forget_ref.rs:59:22
|
2017-02-26 04:55:43 +01:00
|
|
|
|
|
|
|
|
59 | std::mem::forget(&SomeStruct);
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
2018-01-16 17:06:27 +01:00
|
|
|
error: aborting due to 18 previous errors
|
|
|
|
|