about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/unnecessary_cast_unfixable.stderr
blob: 6b26bea9de2a72740d8bbe7fb1c5b61b1b012457 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error: casting raw pointers to the same type and constness is unnecessary (`*const u8` -> `*const u8`)
  --> tests/ui/unnecessary_cast_unfixable.rs:4:13
   |
LL |     let _ = std::ptr::null() as *const u8;
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::ptr::null()`
   |
   = note: `-D clippy::unnecessary-cast` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::unnecessary_cast)]`

error: casting raw pointers to the same type and constness is unnecessary (`*mut issue11113::Vtbl` -> `*mut issue11113::Vtbl`)
  --> tests/ui/unnecessary_cast_unfixable.rs:21:20
   |
LL |                 ((*(*(self.object as *mut *mut _) as *mut Vtbl)).query)()
   |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `*(self.object as *mut *mut _)`

error: aborting due to 2 previous errors