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-12-10 06:27:19 +01:00
|
|
|
--> $DIR/drop_forget_ref.rs:18:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | 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-12-10 06:27:19 +01:00
|
|
|
--> $DIR/drop_forget_ref.rs:18:10
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | 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-12-10 06:27:19 +01:00
|
|
|
--> $DIR/drop_forget_ref.rs:19:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | 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-12-10 06:27:19 +01:00
|
|
|
--> $DIR/drop_forget_ref.rs:19:12
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | 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-12-10 06:27:19 +01:00
|
|
|
--> $DIR/drop_forget_ref.rs:22:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | drop(&owned1);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &SomeStruct
|
2018-12-10 06:27:19 +01:00
|
|
|
--> $DIR/drop_forget_ref.rs:22:10
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | 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-12-10 06:27:19 +01:00
|
|
|
--> $DIR/drop_forget_ref.rs:23:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | drop(&&owned1);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &&SomeStruct
|
2018-12-10 06:27:19 +01:00
|
|
|
--> $DIR/drop_forget_ref.rs:23:10
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | 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-12-10 06:27:19 +01:00
|
|
|
--> $DIR/drop_forget_ref.rs:24:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | drop(&mut owned1);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &mut SomeStruct
|
2018-12-10 06:27:19 +01:00
|
|
|
--> $DIR/drop_forget_ref.rs:24:10
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | 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-12-10 06:27:19 +01:00
|
|
|
--> $DIR/drop_forget_ref.rs:27:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | forget(&owned2);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &SomeStruct
|
2018-12-10 06:27:19 +01:00
|
|
|
--> $DIR/drop_forget_ref.rs:27:12
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | 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-12-10 06:27:19 +01:00
|
|
|
--> $DIR/drop_forget_ref.rs:28:5
|
2017-02-26 04:55:43 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | forget(&&owned2);
|
2017-02-26 04:55:43 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &&SomeStruct
|
2018-12-10 06:27:19 +01:00
|
|
|
--> $DIR/drop_forget_ref.rs:28:12
|
2017-02-26 04:55:43 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | 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-12-10 06:27:19 +01:00
|
|
|
--> $DIR/drop_forget_ref.rs:29:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | forget(&mut owned2);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &mut SomeStruct
|
2018-12-10 06:27:19 +01:00
|
|
|
--> $DIR/drop_forget_ref.rs:29:12
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | 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-12-10 06:27:19 +01:00
|
|
|
--> $DIR/drop_forget_ref.rs:33:5
|
2017-02-26 04:55:43 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | drop(reference1);
|
2017-02-26 04:55:43 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &SomeStruct
|
2018-12-10 06:27:19 +01:00
|
|
|
--> $DIR/drop_forget_ref.rs:33:10
|
2017-02-26 04:55:43 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | 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-12-10 06:27:19 +01:00
|
|
|
--> $DIR/drop_forget_ref.rs:34:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | forget(&*reference1);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &SomeStruct
|
2018-12-10 06:27:19 +01:00
|
|
|
--> $DIR/drop_forget_ref.rs:34:12
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | 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-12-10 06:27:19 +01:00
|
|
|
--> $DIR/drop_forget_ref.rs:37:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | drop(reference2);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &mut SomeStruct
|
2018-12-10 06:27:19 +01:00
|
|
|
--> $DIR/drop_forget_ref.rs:37:10
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | 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-12-10 06:27:19 +01:00
|
|
|
--> $DIR/drop_forget_ref.rs:39:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | forget(reference3);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &mut SomeStruct
|
2018-12-10 06:27:19 +01:00
|
|
|
--> $DIR/drop_forget_ref.rs:39:12
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | 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-12-10 06:27:19 +01:00
|
|
|
--> $DIR/drop_forget_ref.rs:42:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | drop(reference4);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &SomeStruct
|
2018-12-10 06:27:19 +01:00
|
|
|
--> $DIR/drop_forget_ref.rs:42:10
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | 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-12-10 06:27:19 +01:00
|
|
|
--> $DIR/drop_forget_ref.rs:43:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | forget(reference4);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &SomeStruct
|
2018-12-10 06:27:19 +01:00
|
|
|
--> $DIR/drop_forget_ref.rs:43:12
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | 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-12-10 06:27:19 +01:00
|
|
|
--> $DIR/drop_forget_ref.rs:48:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | drop(&val);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &T
|
2018-12-10 06:27:19 +01:00
|
|
|
--> $DIR/drop_forget_ref.rs:48:10
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | 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-12-10 06:27:19 +01:00
|
|
|
--> $DIR/drop_forget_ref.rs:54:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | forget(&val);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &T
|
2018-12-10 06:27:19 +01:00
|
|
|
--> $DIR/drop_forget_ref.rs:54:12
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | 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-12-10 06:27:19 +01:00
|
|
|
--> $DIR/drop_forget_ref.rs:62:5
|
2017-02-26 04:55:43 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | std::mem::drop(&SomeStruct);
|
2017-02-26 04:55:43 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &SomeStruct
|
2018-12-10 06:27:19 +01:00
|
|
|
--> $DIR/drop_forget_ref.rs:62:20
|
2017-02-26 04:55:43 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | 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-12-10 06:27:19 +01:00
|
|
|
--> $DIR/drop_forget_ref.rs:65:5
|
2017-02-26 04:55:43 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | std::mem::forget(&SomeStruct);
|
2017-02-26 04:55:43 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &SomeStruct
|
2018-12-10 06:27:19 +01:00
|
|
|
--> $DIR/drop_forget_ref.rs:65:22
|
2017-02-26 04:55:43 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | 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
|
|
|
|
|