2022-11-21 13:34:47 -06:00
|
|
|
error: creating a `Box` from a void raw pointer
|
2023-07-02 07:35:19 -05:00
|
|
|
--> $DIR/from_raw_with_void_ptr.rs:11:22
|
2022-11-21 13:34:47 -06:00
|
|
|
|
|
|
|
|
LL | let _ = unsafe { Box::from_raw(ptr) };
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: cast this to a pointer of the appropriate type
|
2023-07-02 07:35:19 -05:00
|
|
|
--> $DIR/from_raw_with_void_ptr.rs:11:36
|
2022-11-21 13:34:47 -06:00
|
|
|
|
|
|
|
|
LL | let _ = unsafe { Box::from_raw(ptr) };
|
|
|
|
| ^^^
|
|
|
|
= note: `-D clippy::from-raw-with-void-ptr` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::from_raw_with_void_ptr)]`
|
2022-11-21 13:34:47 -06:00
|
|
|
|
|
|
|
error: creating a `Rc` from a void raw pointer
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/from_raw_with_void_ptr.rs:23:22
|
2022-11-21 13:34:47 -06:00
|
|
|
|
|
|
|
|
LL | let _ = unsafe { Rc::from_raw(ptr) };
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: cast this to a pointer of the appropriate type
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/from_raw_with_void_ptr.rs:23:35
|
2022-11-21 13:34:47 -06:00
|
|
|
|
|
|
|
|
LL | let _ = unsafe { Rc::from_raw(ptr) };
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: creating a `Arc` from a void raw pointer
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/from_raw_with_void_ptr.rs:28:22
|
2022-11-21 13:34:47 -06:00
|
|
|
|
|
|
|
|
LL | let _ = unsafe { Arc::from_raw(ptr) };
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: cast this to a pointer of the appropriate type
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/from_raw_with_void_ptr.rs:28:36
|
2022-11-21 13:34:47 -06:00
|
|
|
|
|
|
|
|
LL | let _ = unsafe { Arc::from_raw(ptr) };
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: creating a `Weak` from a void raw pointer
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/from_raw_with_void_ptr.rs:33:22
|
2022-11-21 13:34:47 -06:00
|
|
|
|
|
|
|
|
LL | let _ = unsafe { std::rc::Weak::from_raw(ptr) };
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: cast this to a pointer of the appropriate type
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/from_raw_with_void_ptr.rs:33:46
|
2022-11-21 13:34:47 -06:00
|
|
|
|
|
|
|
|
LL | let _ = unsafe { std::rc::Weak::from_raw(ptr) };
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: creating a `Weak` from a void raw pointer
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/from_raw_with_void_ptr.rs:38:22
|
2022-11-21 13:34:47 -06:00
|
|
|
|
|
|
|
|
LL | let _ = unsafe { std::sync::Weak::from_raw(ptr) };
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: cast this to a pointer of the appropriate type
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/from_raw_with_void_ptr.rs:38:48
|
2022-11-21 13:34:47 -06:00
|
|
|
|
|
|
|
|
LL | let _ = unsafe { std::sync::Weak::from_raw(ptr) };
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
|
|
|
|