From 6e22edf3d7ba89e02e4fd4e8faf9d13441354f11 Mon Sep 17 00:00:00 2001 From: xFrednet Date: Tue, 15 Mar 2022 19:50:50 +0100 Subject: [PATCH] Remove `assert` for unstable expectation IDs The assert requires that the `check_crate` query was executed before the `HandlerInner` is dropped. This will not always be the case and can cause ICEs. --- compiler/rustc_errors/src/lib.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs index 345247b07001b..3042467ded7f8 100644 --- a/compiler/rustc_errors/src/lib.rs +++ b/compiler/rustc_errors/src/lib.rs @@ -522,11 +522,6 @@ impl Drop for HandlerInner { "no warnings or errors encountered even though `delayed_good_path_bugs` issued", ); } - - assert!( - self.unstable_expect_diagnostics.is_empty(), - "all diagnostics with unstable expectations should have been converted", - ); } }