reword Miri validity errors: undefined -> uninitialized
This commit is contained in:
parent
351eefe93a
commit
9ee4d1aadc
3 changed files with 14 additions and 9 deletions
|
|
@ -62,7 +62,7 @@ LL | |
|
|||
LL | | let uninit_len = MaybeUninit::<usize> { uninit: () };
|
||||
LL | | mem::transmute((42, uninit_len))
|
||||
LL | | };
|
||||
| |__^ type validation failed: encountered undefined pointer
|
||||
| |__^ type validation failed: encountered uninitialized reference
|
||||
|
|
||||
= note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
|
||||
|
||||
|
|
@ -130,7 +130,7 @@ LL | |
|
|||
LL | | let uninit_len = MaybeUninit::<usize> { uninit: () };
|
||||
LL | | mem::transmute((42, uninit_len))
|
||||
LL | | };
|
||||
| |__^ type validation failed: encountered undefined pointer
|
||||
| |__^ type validation failed: encountered uninitialized raw pointer
|
||||
|
|
||||
= note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ LL | | unsafe { UNION.field3 },
|
|||
... |
|
||||
LL | | a: 42,
|
||||
LL | | };
|
||||
| |__^ type validation failed: encountered undefined bytes at .b[1]
|
||||
| |__^ type validation failed: encountered uninitialized value at .b[1]
|
||||
|
|
||||
= note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue