diff options
| author | Michael Goulet <michael@errs.io> | 2023-12-15 03:34:37 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-12-15 14:45:06 +0000 |
| commit | 1cc0d7d56cbaadfdb2652c73a959edd91d7bd721 (patch) | |
| tree | 95f4e6e20394abd0c5afe6d9b1d90bb37e7bcd66 /compiler/rustc_middle/src/ty/consts | |
| parent | 70b9dad3dc3cf756bc6aeeeda75d08954487c303 (diff) | |
| download | rust-1cc0d7d56cbaadfdb2652c73a959edd91d7bd721.tar.gz rust-1cc0d7d56cbaadfdb2652c73a959edd91d7bd721.zip | |
Annotate some more bugs
Diffstat (limited to 'compiler/rustc_middle/src/ty/consts')
| -rw-r--r-- | compiler/rustc_middle/src/ty/consts/int.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_middle/src/ty/consts/int.rs b/compiler/rustc_middle/src/ty/consts/int.rs index 9d99344d5bd..310cf113b11 100644 --- a/compiler/rustc_middle/src/ty/consts/int.rs +++ b/compiler/rustc_middle/src/ty/consts/int.rs @@ -71,7 +71,7 @@ impl std::fmt::Debug for ConstInt { (4, _) => write!(fmt, "_i32")?, (8, _) => write!(fmt, "_i64")?, (16, _) => write!(fmt, "_i128")?, - _ => bug!(), + (sz, _) => bug!("unexpected int size i{sz}"), } } Ok(()) @@ -105,7 +105,7 @@ impl std::fmt::Debug for ConstInt { (4, _) => write!(fmt, "_u32")?, (8, _) => write!(fmt, "_u64")?, (16, _) => write!(fmt, "_u128")?, - _ => bug!(), + (sz, _) => bug!("unexpected unsigned int size u{sz}"), } } Ok(()) |
