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