Skip to content

Commit 0d01ce6

Browse files
committed
switch back to 'bytes'
1 parent 9ee4d1a commit 0d01ce6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustc_mir/interpret/validity.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ impl<'rt, 'mir, 'tcx, M: Machine<'mir, 'tcx>> ValueVisitor<'mir, 'tcx, M>
788788
.unwrap();
789789
self.path.push(PathElem::ArrayElem(i));
790790

791-
throw_validation_failure!("uninitialized value", self.path)
791+
throw_validation_failure!("uninitialized bytes", self.path)
792792
}
793793
// Other errors shouldn't be possible
794794
_ => return Err(err),

src/test/ui/consts/const-eval/union-ice.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ LL | | unsafe { UNION.field3 },
2727
... |
2828
LL | | a: 42,
2929
LL | | };
30-
| |__^ type validation failed: encountered uninitialized value at .b[1]
30+
| |__^ type validation failed: encountered uninitialized bytes at .b[1]
3131
|
3232
= 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.
3333

0 commit comments

Comments
 (0)