fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
834 B17 linesraw
1error: casting raw pointers to the same type and constness is unnecessary (`*const u8` -> `*const u8`)
2  --> $DIR/unnecessary_cast_unfixable.rs:4:13
3   |
4LL |     let _ = std::ptr::null() as *const u8;
5   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::ptr::null()`
6   |
7   = note: `-D clippy::unnecessary-cast` implied by `-D warnings`
8   = help: to override `-D warnings` add `#[allow(clippy::unnecessary_cast)]`
9
10error: casting raw pointers to the same type and constness is unnecessary (`*mut issue11113::Vtbl` -> `*mut issue11113::Vtbl`)
11  --> $DIR/unnecessary_cast_unfixable.rs:21:16
12   |
13LL |             ((*(*(self.object as *mut *mut _) as *mut Vtbl)).query)()
14   |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `*(self.object as *mut *mut _)`
15
16error: aborting due to 2 previous errors
17