about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src/lints.rs
diff options
context:
space:
mode:
authorNadrieril <nadrieril+git@gmail.com>2024-01-10 22:23:21 +0100
committerNadrieril <nadrieril+git@gmail.com>2024-01-15 16:56:18 +0100
commitedb27a306a29b5b3e9f63da3e74e985736905bc2 (patch)
treeaa0d835055df0a986f2d76a4f5b39412353c62f2 /compiler/rustc_pattern_analysis/src/lints.rs
parentbf913ad0aee7e97b93f50824e9b2292414670954 (diff)
downloadrust-edb27a306a29b5b3e9f63da3e74e985736905bc2.tar.gz
rust-edb27a306a29b5b3e9f63da3e74e985736905bc2.zip
Make all the empty pattern decisions in `usefulness`
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/lints.rs')
-rw-r--r--compiler/rustc_pattern_analysis/src/lints.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_pattern_analysis/src/lints.rs b/compiler/rustc_pattern_analysis/src/lints.rs
index cfe4ca3ce93..cf3dddfafeb 100644
--- a/compiler/rustc_pattern_analysis/src/lints.rs
+++ b/compiler/rustc_pattern_analysis/src/lints.rs
@@ -59,7 +59,7 @@ impl<'p, 'tcx> PatternColumn<'p, 'tcx> {
     ) -> Result<SplitConstructorSet<'p, 'tcx>, ErrorGuaranteed> {
         let column_ctors = self.patterns.iter().map(|p| p.ctor());
         let ctors_for_ty = &pcx.ctors_for_ty()?;
-        Ok(ctors_for_ty.split(pcx, column_ctors))
+        Ok(ctors_for_ty.split(column_ctors))
     }
 
     /// Does specialization: given a constructor, this takes the patterns from the column that match