generalize InvalidNullPointerUsage to InvalidIntPointerUsage

This commit is contained in:
Ralf Jung 2020-03-08 23:28:00 +01:00
parent d02543a453
commit 9a95b010e6
8 changed files with 32 additions and 26 deletions

View file

@ -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