From f196f50d6609eecfe94989a317a8779637288d94 Mon Sep 17 00:00:00 2001 From: Scott Schafer Date: Thu, 4 Sep 2025 16:21:44 -0600 Subject: chore: Remove redundant disjoint spans assert --- compiler/rustc_errors/src/diagnostic.rs | 5 ----- 1 file changed, 5 deletions(-) (limited to 'compiler/rustc_errors/src') diff --git a/compiler/rustc_errors/src/diagnostic.rs b/compiler/rustc_errors/src/diagnostic.rs index 96a4ed3218f..ae23ef1e255 100644 --- a/compiler/rustc_errors/src/diagnostic.rs +++ b/compiler/rustc_errors/src/diagnostic.rs @@ -945,11 +945,6 @@ impl<'a, G: EmissionGuarantee> Diag<'a, G> { None, "Span must not be empty and have no suggestion", ); - debug_assert_eq!( - parts.array_windows().find(|[a, b]| a.span.overlaps(b.span)), - None, - "suggestion must not have overlapping parts", - ); self.push_suggestion(CodeSuggestion { substitutions: vec![Substitution { parts }], -- cgit 1.4.1-3-g733a5