about summary refs log tree commit diff
path: root/compiler/rustc_errors
diff options
context:
space:
mode:
authorThe rustc-dev-guide Cronjob Bot <github-actions@github.com>2025-06-09 04:09:17 +0000
committerThe rustc-dev-guide Cronjob Bot <github-actions@github.com>2025-06-09 04:09:17 +0000
commit7565e75591c2ef184bc7a359b3a436a62d45358a (patch)
tree84784da83b710a97f9944b753c9d7717e37b631b /compiler/rustc_errors
parentf598bbd66b8e0cf5ac1adf0ff6147baa7601a731 (diff)
parentc31cccb7b5cc098b1a8c1794ed38d7fdbec0ccb0 (diff)
downloadrust-7565e75591c2ef184bc7a359b3a436a62d45358a.tar.gz
rust-7565e75591c2ef184bc7a359b3a436a62d45358a.zip
Merge from rustc
Diffstat (limited to 'compiler/rustc_errors')
-rw-r--r--compiler/rustc_errors/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs
index bd421a441f9..6f0090a0bd6 100644
--- a/compiler/rustc_errors/src/lib.rs
+++ b/compiler/rustc_errors/src/lib.rs
@@ -1529,7 +1529,7 @@ impl DiagCtxtInner {
             // Future breakages aren't emitted if they're `Level::Allow` or
             // `Level::Expect`, but they still need to be constructed and
             // stashed below, so they'll trigger the must_produce_diag check.
-            assert_matches!(diagnostic.level, Error | Warning | Allow | Expect);
+            assert_matches!(diagnostic.level, Error | ForceWarning | Warning | Allow | Expect);
             self.future_breakage_diagnostics.push(diagnostic.clone());
         }