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