diff options
| author | Ralf Jung <post@ralfj.de> | 2022-11-15 12:06:20 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2022-11-16 10:13:29 +0100 |
| commit | 1115ec601a7f7dc2406e26cd5da0faf031043b81 (patch) | |
| tree | 233577aac0ef181bcc4c8f569ecb53774da9c87a /compiler/rustc_codegen_ssa | |
| parent | 3b91b1a37bbb607348b8713d2e8f1051bf414048 (diff) | |
| download | rust-1115ec601a7f7dc2406e26cd5da0faf031043b81.tar.gz rust-1115ec601a7f7dc2406e26cd5da0faf031043b81.zip | |
cleanup and dedupe CTFE and Miri error reporting
Diffstat (limited to 'compiler/rustc_codegen_ssa')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/mir/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/mir/mod.rs b/compiler/rustc_codegen_ssa/src/mir/mod.rs index da9aaf00ecf..f4a300ef2c5 100644 --- a/compiler/rustc_codegen_ssa/src/mir/mod.rs +++ b/compiler/rustc_codegen_ssa/src/mir/mod.rs @@ -189,7 +189,7 @@ pub fn codegen_mir<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>>( all_consts_ok = false; match err { // errored or at least linted - ErrorHandled::Reported(_) | ErrorHandled::Linted => {} + ErrorHandled::Reported(_) => {} ErrorHandled::TooGeneric => { span_bug!(const_.span, "codegen encountered polymorphic constant: {:?}", err) } |
