diff options
| author | Scott Schafer <schaferjscott@gmail.com> | 2025-09-04 16:21:44 -0600 |
|---|---|---|
| committer | Scott Schafer <schaferjscott@gmail.com> | 2025-09-04 17:42:13 -0600 |
| commit | f196f50d6609eecfe94989a317a8779637288d94 (patch) | |
| tree | a858c06f6f722053d78619bf69dd431713f82713 /compiler/rustc_errors/src | |
| parent | 81557349be64db933c5060a6e1d7398bef32e0d7 (diff) | |
| download | rust-f196f50d6609eecfe94989a317a8779637288d94.tar.gz rust-f196f50d6609eecfe94989a317a8779637288d94.zip | |
chore: Remove redundant disjoint spans assert
Diffstat (limited to 'compiler/rustc_errors/src')
| -rw-r--r-- | compiler/rustc_errors/src/diagnostic.rs | 5 |
1 files changed, 0 insertions, 5 deletions
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 }], |
