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