diff options
| author | Oli Scherer <github333195615777966@oli-obk.de> | 2025-06-18 12:51:47 +0000 |
|---|---|---|
| committer | Oli Scherer <github333195615777966@oli-obk.de> | 2025-07-17 20:00:51 +0000 |
| commit | 12eedafc38b1d3af02c9c15333d0ba2f1aee1253 (patch) | |
| tree | f16970bc13d91d0ac72e1c42665af69051cd1422 /compiler/rustc_const_eval | |
| parent | 9cd918bcbbc26deb005eb4e1bd9a445380195e56 (diff) | |
| download | rust-12eedafc38b1d3af02c9c15333d0ba2f1aee1253.tar.gz rust-12eedafc38b1d3af02c9c15333d0ba2f1aee1253.zip | |
Report the range of uninit bytes in CTFE errors
Diffstat (limited to 'compiler/rustc_const_eval')
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/validity.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/validity.rs b/compiler/rustc_const_eval/src/interpret/validity.rs index 62f591ceaa9..693b3782960 100644 --- a/compiler/rustc_const_eval/src/interpret/validity.rs +++ b/compiler/rustc_const_eval/src/interpret/validity.rs @@ -394,7 +394,7 @@ impl<'rt, 'tcx, M: Machine<'tcx>> ValidityVisitor<'rt, 'tcx, M> { interp_ok(try_validation!( self.ecx.read_immediate(val), self.path, - Ub(InvalidUninitBytes(None)) => + Ub(InvalidUninitBytes(_)) => Uninit { expected }, // The `Unsup` cases can only occur during CTFE Unsup(ReadPointerAsInt(_)) => |
