about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2019-08-29 18:00:29 -0700
committerEsteban Küber <esteban@kuber.com.ar>2019-10-16 11:57:19 -0700
commit6832da85c2241c9d75d01f1779f54cd9054d7a08 (patch)
tree79e9b7de6e4a84427ca6f4ea0a3dcd1c4492ad4a
parent1ec60730fecfc72eb7454f2b8d37f7de7068cd20 (diff)
downloadrust-6832da85c2241c9d75d01f1779f54cd9054d7a08.tar.gz
rust-6832da85c2241c9d75d01f1779f54cd9054d7a08.zip
rename method
-rw-r--r--src/librustc_mir/hair/pattern/_match.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_mir/hair/pattern/_match.rs b/src/librustc_mir/hair/pattern/_match.rs
index 636bb2ed617..04a42d85aff 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<HirId>,
     ctor_range: IntRange<'tcx>,