1 error: casting the result of `from_raw_parts` to *const [u8]
2 --> $DIR/cast_raw_slice_pointer_cast.rs:9:35
4 LL | let _: *const [u8] = unsafe { std::slice::from_raw_parts(ptr, 1) as *const [u8] };
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `core::ptr::slice_from_raw_parts(ptr, 1)`
7 = note: `-D clippy::cast-slice-from-raw-parts` implied by `-D warnings`
9 error: casting the result of `from_raw_parts_mut` to *mut [u8]
10 --> $DIR/cast_raw_slice_pointer_cast.rs:10:35
12 LL | let _: *const [u8] = unsafe { std::slice::from_raw_parts_mut(mptr, 1) as *mut [u8] };
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `core::ptr::slice_from_raw_parts_mut(mptr, 1)`
15 error: casting the result of `from_raw_parts` to *const [u8]
16 --> $DIR/cast_raw_slice_pointer_cast.rs:11:26
18 LL | let _: *const [u8] = unsafe { std::slice::from_raw_parts(ptr, 1) } as *const [u8];
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `core::ptr::slice_from_raw_parts(ptr, 1)`
21 error: casting the result of `from_raw_parts` to *const [u8]
22 --> $DIR/cast_raw_slice_pointer_cast.rs:14:30
24 LL | let _: *const [u8] = unsafe { slice::from_raw_parts(ptr, 1) } as *const [u8];
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `core::ptr::slice_from_raw_parts(ptr, 1)`
27 error: casting the result of `from_raw_parts` to *const [u8]
28 --> $DIR/cast_raw_slice_pointer_cast.rs:16:30
30 LL | let _: *const [u8] = unsafe { one::from_raw_parts(ptr, 1) } as *const [u8];
31 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `core::ptr::slice_from_raw_parts(ptr, 1)`
33 error: casting the result of `from_raw_parts` to *const [u8]
34 --> $DIR/cast_raw_slice_pointer_cast.rs:20:30
36 LL | let _: *const [u8] = unsafe { slice::from_raw_parts(ptr, 1) } as *const [u8];
37 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `core::ptr::slice_from_raw_parts(ptr, 1)`
39 error: casting the result of `from_raw_parts` to *const [u8]
40 --> $DIR/cast_raw_slice_pointer_cast.rs:22:30
42 LL | let _: *const [u8] = unsafe { one::from_raw_parts(ptr, 1) } as *const [u8];
43 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `core::ptr::slice_from_raw_parts(ptr, 1)`
45 error: aborting due to 7 previous errors