Skip to content

Commit 6832da8

Browse files
committed
rename method
1 parent 1ec6073 commit 6832da8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_mir/hair/pattern/_match.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1736,7 +1736,7 @@ fn split_grouped_constructors<'p, 'tcx>(
17361736
let mut borders: Vec<_> = row_borders.chain(ctor_borders).collect();
17371737
borders.sort_unstable();
17381738

1739-
lint_unreachable_patterns(tcx, hir_id, ctor_range, ty, overlaps);
1739+
lint_overlapping_patterns(tcx, hir_id, ctor_range, ty, overlaps);
17401740

17411741
// We're going to iterate through every pair of borders, making sure that each
17421742
// represents an interval of nonnegative length, and convert each such interval
@@ -1767,7 +1767,7 @@ fn split_grouped_constructors<'p, 'tcx>(
17671767
split_ctors
17681768
}
17691769

1770-
fn lint_unreachable_patterns(
1770+
fn lint_overlapping_patterns(
17711771
tcx: TyCtxt<'tcx>,
17721772
hir_id: Option<HirId>,
17731773
ctor_range: IntRange<'tcx>,

0 commit comments

Comments
 (0)