From 6832da85c2241c9d75d01f1779f54cd9054d7a08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Esteban=20K=C3=BCber?= Date: Thu, 29 Aug 2019 18:00:29 -0700 Subject: [PATCH] rename method --- src/librustc_mir/hair/pattern/_match.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustc_mir/hair/pattern/_match.rs b/src/librustc_mir/hair/pattern/_match.rs index 636bb2ed6179..04a42d85aff6 100644 --- a/src/librustc_mir/hair/pattern/_match.rs +++ b/src/librustc_mir/hair/pattern/_match.rs @@ -1736,7 +1736,7 @@ fn split_grouped_constructors<'p, 'tcx>( let mut borders: Vec<_> = row_borders.chain(ctor_borders).collect(); borders.sort_unstable(); - lint_unreachable_patterns(tcx, hir_id, ctor_range, ty, overlaps); + lint_overlapping_patterns(tcx, hir_id, ctor_range, ty, overlaps); // We're going to iterate through every pair of borders, making sure that each // represents an interval of nonnegative length, and convert each such interval @@ -1767,7 +1767,7 @@ fn split_grouped_constructors<'p, 'tcx>( split_ctors } -fn lint_unreachable_patterns( +fn lint_overlapping_patterns( tcx: TyCtxt<'tcx>, hir_id: Option, ctor_range: IntRange<'tcx>,