2017-03-24 04:21:12 -05:00
|
|
|
error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing.
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_ref.rs:9:5
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | drop(&SomeStruct);
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2018-08-01 09:30:44 -05:00
|
|
|
= note: `-D clippy::drop-ref` implied by `-D warnings`
|
2017-02-07 14:05:30 -06:00
|
|
|
note: argument has type &SomeStruct
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_ref.rs:9:10
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | drop(&SomeStruct);
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
2017-03-24 04:21:12 -05:00
|
|
|
error: calls to `std::mem::forget` with a reference instead of an owned value. Forgetting a reference does nothing.
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_ref.rs:10:5
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | forget(&SomeStruct);
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2018-08-01 09:30:44 -05:00
|
|
|
= note: `-D clippy::forget-ref` implied by `-D warnings`
|
2017-02-07 14:05:30 -06:00
|
|
|
note: argument has type &SomeStruct
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_ref.rs:10:12
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | forget(&SomeStruct);
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
2017-03-24 04:21:12 -05:00
|
|
|
error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing.
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_ref.rs:13:5
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | drop(&owned1);
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &SomeStruct
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_ref.rs:13:10
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | drop(&owned1);
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^
|
|
|
|
|
2017-03-24 04:21:12 -05:00
|
|
|
error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing.
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_ref.rs:14:5
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | drop(&&owned1);
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &&SomeStruct
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_ref.rs:14:10
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | drop(&&owned1);
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^
|
|
|
|
|
2017-03-24 04:21:12 -05:00
|
|
|
error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing.
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_ref.rs:15:5
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | drop(&mut owned1);
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &mut SomeStruct
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_ref.rs:15:10
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | drop(&mut owned1);
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
2017-03-24 04:21:12 -05:00
|
|
|
error: calls to `std::mem::forget` with a reference instead of an owned value. Forgetting a reference does nothing.
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_ref.rs:18:5
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | forget(&owned2);
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &SomeStruct
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_ref.rs:18:12
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | forget(&owned2);
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^
|
|
|
|
|
2017-03-24 04:21:12 -05:00
|
|
|
error: calls to `std::mem::forget` with a reference instead of an owned value. Forgetting a reference does nothing.
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_ref.rs:19:5
|
2017-02-25 21:55:43 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | forget(&&owned2);
|
2017-02-25 21:55:43 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &&SomeStruct
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_ref.rs:19:12
|
2017-02-25 21:55:43 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | forget(&&owned2);
|
2017-02-25 21:55:43 -06:00
|
|
|
| ^^^^^^^^
|
|
|
|
|
2017-03-24 04:21:12 -05:00
|
|
|
error: calls to `std::mem::forget` with a reference instead of an owned value. Forgetting a reference does nothing.
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_ref.rs:20:5
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | forget(&mut owned2);
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &mut SomeStruct
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_ref.rs:20:12
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | forget(&mut owned2);
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
2017-03-24 04:21:12 -05:00
|
|
|
error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing.
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_ref.rs:24:5
|
2017-02-25 21:55:43 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | drop(reference1);
|
2017-02-25 21:55:43 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &SomeStruct
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_ref.rs:24:10
|
2017-02-25 21:55:43 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | drop(reference1);
|
2017-02-25 21:55:43 -06:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
2017-03-24 04:21:12 -05:00
|
|
|
error: calls to `std::mem::forget` with a reference instead of an owned value. Forgetting a reference does nothing.
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_ref.rs:25:5
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | forget(&*reference1);
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &SomeStruct
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_ref.rs:25:12
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | forget(&*reference1);
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
2017-03-24 04:21:12 -05:00
|
|
|
error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing.
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_ref.rs:28:5
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | drop(reference2);
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &mut SomeStruct
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_ref.rs:28:10
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | drop(reference2);
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
2017-03-24 04:21:12 -05:00
|
|
|
error: calls to `std::mem::forget` with a reference instead of an owned value. Forgetting a reference does nothing.
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_ref.rs:30:5
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | forget(reference3);
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &mut SomeStruct
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_ref.rs:30:12
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | forget(reference3);
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
2017-03-24 04:21:12 -05:00
|
|
|
error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing.
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_ref.rs:33:5
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | drop(reference4);
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &SomeStruct
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_ref.rs:33:10
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | drop(reference4);
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
2017-03-24 04:21:12 -05:00
|
|
|
error: calls to `std::mem::forget` with a reference instead of an owned value. Forgetting a reference does nothing.
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_ref.rs:34:5
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | forget(reference4);
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &SomeStruct
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_ref.rs:34:12
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | forget(reference4);
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
2017-03-24 04:21:12 -05:00
|
|
|
error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing.
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_ref.rs:39:5
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | drop(&val);
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &T
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_ref.rs:39:10
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | drop(&val);
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^
|
|
|
|
|
2017-03-24 04:21:12 -05:00
|
|
|
error: calls to `std::mem::forget` with a reference instead of an owned value. Forgetting a reference does nothing.
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_ref.rs:45:5
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | forget(&val);
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &T
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_ref.rs:45:12
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | forget(&val);
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^
|
|
|
|
|
2017-03-24 04:21:12 -05:00
|
|
|
error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing.
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_ref.rs:53:5
|
2017-02-25 21:55:43 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | std::mem::drop(&SomeStruct);
|
2017-02-25 21:55:43 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &SomeStruct
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_ref.rs:53:20
|
2017-02-25 21:55:43 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | std::mem::drop(&SomeStruct);
|
2017-02-25 21:55:43 -06:00
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
2017-03-24 04:21:12 -05:00
|
|
|
error: calls to `std::mem::forget` with a reference instead of an owned value. Forgetting a reference does nothing.
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_ref.rs:56:5
|
2017-02-25 21:55:43 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | std::mem::forget(&SomeStruct);
|
2017-02-25 21:55:43 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: argument has type &SomeStruct
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/drop_forget_ref.rs:56:22
|
2017-02-25 21:55:43 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | std::mem::forget(&SomeStruct);
|
2017-02-25 21:55:43 -06:00
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
2018-01-16 10:06:27 -06:00
|
|
|
error: aborting due to 18 previous errors
|
|
|
|
|