Skip to content

Commit f196f50

Browse files
committed
chore: Remove redundant disjoint spans assert
1 parent 8155734 commit f196f50

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

compiler/rustc_errors/src/diagnostic.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -945,11 +945,6 @@ impl<'a, G: EmissionGuarantee> Diag<'a, G> {
945945
None,
946946
"Span must not be empty and have no suggestion",
947947
);
948-
debug_assert_eq!(
949-
parts.array_windows().find(|[a, b]| a.span.overlaps(b.span)),
950-
None,
951-
"suggestion must not have overlapping parts",
952-
);
953948

954949
self.push_suggestion(CodeSuggestion {
955950
substitutions: vec![Substitution { parts }],

0 commit comments

Comments
 (0)