2023-07-17 08:19:29 +00:00
|
|
|
error: casting raw pointers to the same type and constness is unnecessary (`*const u8` -> `*const u8`)
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/unnecessary_cast_unfixable.rs:4:13
|
2023-07-17 08:19:29 +00:00
|
|
|
|
|
|
|
|
LL | let _ = std::ptr::null() as *const u8;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::ptr::null()`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::unnecessary-cast` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::unnecessary_cast)]`
|
2023-07-17 08:19:29 +00:00
|
|
|
|
|
|
|
error: casting raw pointers to the same type and constness is unnecessary (`*mut issue11113::Vtbl` -> `*mut issue11113::Vtbl`)
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/unnecessary_cast_unfixable.rs:21:16
|
2023-07-17 08:19:29 +00:00
|
|
|
|
|
|
|
|
LL | ((*(*(self.object as *mut *mut _) as *mut Vtbl)).query)()
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `*(self.object as *mut *mut _)`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|