diff options
| author | bors <bors@rust-lang.org> | 2025-07-26 07:10:59 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-07-26 07:10:59 +0000 |
| commit | 051d0e8a957c98f87ddaf6295c3a3ecd88742ff9 (patch) | |
| tree | df0329c90cb372b179457aef69da6956a4511316 /compiler/rustc_pattern_analysis/tests/complexity.rs | |
| parent | f32b23204a0efe2fe8383ed4be1a30b56c1bbf94 (diff) | |
| parent | a230b4ff02b4216bc21e4d3106d87b654041814f (diff) | |
| download | rust-051d0e8a957c98f87ddaf6295c3a3ecd88742ff9.tar.gz rust-051d0e8a957c98f87ddaf6295c3a3ecd88742ff9.zip | |
Auto merge of #144488 - tgross35:rollup-vn0fpot, r=tgross35
Rollup of 9 pull requests Successful merges: - rust-lang/rust#144089 (Rehome 35 `tests/ui/issues/` tests to other subdirectories under `tests/ui/`) - rust-lang/rust#144171 (pattern_analysis: add option to get a full set of witnesses) - rust-lang/rust#144201 (Mention type that could be `Clone` but isn't in more cases) - rust-lang/rust#144316 (bootstrap: Move musl-root fallback out of sanity check) - rust-lang/rust#144339 (Enable dwarf-mixed-versions-lto.rs test on RISC-V (riscv64)) - rust-lang/rust#144341 (Enable const-vector.rs test on RISC-V (riscv64)) - rust-lang/rust#144352 (RustWrapper: Suppress getNextNonDebugInfoInstruction) - rust-lang/rust#144356 (Add `ignore-backends` annotations in failing GCC backend ui tests) - rust-lang/rust#144364 (Update `dlmalloc` dependency of libstd) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_pattern_analysis/tests/complexity.rs')
| -rw-r--r-- | compiler/rustc_pattern_analysis/tests/complexity.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_pattern_analysis/tests/complexity.rs b/compiler/rustc_pattern_analysis/tests/complexity.rs index 93aecafe48d..4754476f383 100644 --- a/compiler/rustc_pattern_analysis/tests/complexity.rs +++ b/compiler/rustc_pattern_analysis/tests/complexity.rs @@ -16,7 +16,7 @@ fn check(patterns: &[DeconstructedPat<Cx>], complexity_limit: usize) -> Result<( let ty = *patterns[0].ty(); let arms: Vec<_> = patterns.iter().map(|pat| MatchArm { pat, has_guard: false, arm_data: () }).collect(); - compute_match_usefulness(arms.as_slice(), ty, PlaceValidity::ValidOnly, complexity_limit) + compute_match_usefulness(arms.as_slice(), ty, PlaceValidity::ValidOnly, complexity_limit, false) .map(|_report| ()) } |
