generalize InvalidNullPointerUsage to InvalidIntPointerUsage
This commit is contained in:
parent
d02543a453
commit
9a95b010e6
8 changed files with 32 additions and 26 deletions
|
|
@ -4,7 +4,7 @@ error: any use of this value will cause an error
|
|||
LL | const VALUE: u8 = unsafe { *REG_ADDR };
|
||||
| ---------------------------^^^^^^^^^---
|
||||
| |
|
||||
| a memory access tried to interpret some bytes as a pointer
|
||||
| unable to turn these bytes into a pointer
|
||||
|
|
||||
= note: `#[deny(const_err)]` on by default
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue