]>
Commit | Line | Data |
---|---|---|
487cf647 | 1 | error: creating a `Box` from a void raw pointer |
fe692bf9 | 2 | --> $DIR/from_raw_with_void_ptr.rs:11:22 |
487cf647 FG |
3 | | |
4 | LL | let _ = unsafe { Box::from_raw(ptr) }; | |
5 | | ^^^^^^^^^^^^^^^^^^ | |
6 | | | |
7 | help: cast this to a pointer of the appropriate type | |
fe692bf9 | 8 | --> $DIR/from_raw_with_void_ptr.rs:11:36 |
487cf647 FG |
9 | | |
10 | LL | let _ = unsafe { Box::from_raw(ptr) }; | |
11 | | ^^^ | |
12 | = note: `-D clippy::from-raw-with-void-ptr` implied by `-D warnings` | |
13 | ||
14 | error: creating a `Rc` from a void raw pointer | |
fe692bf9 | 15 | --> $DIR/from_raw_with_void_ptr.rs:22:22 |
487cf647 FG |
16 | | |
17 | LL | let _ = unsafe { Rc::from_raw(ptr) }; | |
18 | | ^^^^^^^^^^^^^^^^^ | |
19 | | | |
20 | help: cast this to a pointer of the appropriate type | |
fe692bf9 | 21 | --> $DIR/from_raw_with_void_ptr.rs:22:35 |
487cf647 FG |
22 | | |
23 | LL | let _ = unsafe { Rc::from_raw(ptr) }; | |
24 | | ^^^ | |
25 | ||
26 | error: creating a `Arc` from a void raw pointer | |
fe692bf9 | 27 | --> $DIR/from_raw_with_void_ptr.rs:26:22 |
487cf647 FG |
28 | | |
29 | LL | let _ = unsafe { Arc::from_raw(ptr) }; | |
30 | | ^^^^^^^^^^^^^^^^^^ | |
31 | | | |
32 | help: cast this to a pointer of the appropriate type | |
fe692bf9 | 33 | --> $DIR/from_raw_with_void_ptr.rs:26:36 |
487cf647 FG |
34 | | |
35 | LL | let _ = unsafe { Arc::from_raw(ptr) }; | |
36 | | ^^^ | |
37 | ||
38 | error: creating a `Weak` from a void raw pointer | |
fe692bf9 | 39 | --> $DIR/from_raw_with_void_ptr.rs:30:22 |
487cf647 FG |
40 | | |
41 | LL | let _ = unsafe { std::rc::Weak::from_raw(ptr) }; | |
42 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
43 | | | |
44 | help: cast this to a pointer of the appropriate type | |
fe692bf9 | 45 | --> $DIR/from_raw_with_void_ptr.rs:30:46 |
487cf647 FG |
46 | | |
47 | LL | let _ = unsafe { std::rc::Weak::from_raw(ptr) }; | |
48 | | ^^^ | |
49 | ||
50 | error: creating a `Weak` from a void raw pointer | |
fe692bf9 | 51 | --> $DIR/from_raw_with_void_ptr.rs:34:22 |
487cf647 FG |
52 | | |
53 | LL | let _ = unsafe { std::sync::Weak::from_raw(ptr) }; | |
54 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
55 | | | |
56 | help: cast this to a pointer of the appropriate type | |
fe692bf9 | 57 | --> $DIR/from_raw_with_void_ptr.rs:34:48 |
487cf647 FG |
58 | | |
59 | LL | let _ = unsafe { std::sync::Weak::from_raw(ptr) }; | |
60 | | ^^^ | |
61 | ||
62 | error: aborting due to 5 previous errors | |
63 |