about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/tests/intersection.rs
diff options
context:
space:
mode:
authorNadrieril <nadrieril+git@gmail.com>2025-07-19 11:28:31 +0200
committerNadrieril <nadrieril+git@gmail.com>2025-07-20 18:27:30 +0200
commit2bb00741d463143a10e632bb118d4ed336dbb75f (patch)
tree333eddf6f28aa6b988ff164ed82066f636633b06 /compiler/rustc_pattern_analysis/tests/intersection.rs
parent81af9d45698a19183b8552079cbc7bf893fad1e5 (diff)
downloadrust-2bb00741d463143a10e632bb118d4ed336dbb75f.tar.gz
rust-2bb00741d463143a10e632bb118d4ed336dbb75f.zip
pattern_analysis: add option to get a full set of witnesses
Diffstat (limited to 'compiler/rustc_pattern_analysis/tests/intersection.rs')
-rw-r--r--compiler/rustc_pattern_analysis/tests/intersection.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_pattern_analysis/tests/intersection.rs b/compiler/rustc_pattern_analysis/tests/intersection.rs
index 8e6f84dcbc8..d4d390517e2 100644
--- a/compiler/rustc_pattern_analysis/tests/intersection.rs
+++ b/compiler/rustc_pattern_analysis/tests/intersection.rs
@@ -16,7 +16,7 @@ fn check(patterns: Vec<DeconstructedPat<Cx>>) -> Vec<Vec<usize>> {
     let arms: Vec<_> =
         patterns.iter().map(|pat| MatchArm { pat, has_guard: false, arm_data: () }).collect();
     let report =
-        compute_match_usefulness(arms.as_slice(), ty, PlaceValidity::ValidOnly, usize::MAX)
+        compute_match_usefulness(arms.as_slice(), ty, PlaceValidity::ValidOnly, usize::MAX, false)
             .unwrap();
     report.arm_intersections.into_iter().map(|bitset| bitset.iter().collect()).collect()
 }