We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 040f37a commit 08a5f1eCopy full SHA for 08a5f1e
crates/ide-diagnostics/src/handlers/missing_match_arms.rs
@@ -23,6 +23,7 @@ mod tests {
23
},
24
DiagnosticsConfig,
25
};
26
+ use test_utils::skip_slow_tests;
27
28
#[track_caller]
29
fn check_diagnostics_no_bails(ra_fixture: &str) {
@@ -1006,9 +1007,12 @@ fn f() {
1006
1007
1008
#[test]
1009
fn exponential_match() {
1010
+ if skip_slow_tests() {
1011
+ return;
1012
+ }
1013
// Constructs a match where match checking takes exponential time. Ensures we bail early.
1014
use std::fmt::Write;
- let struct_arity = 30;
1015
+ let struct_arity = 50;
1016
let mut code = String::new();
1017
write!(code, "struct BigStruct {{").unwrap();
1018
for i in 0..struct_arity {
0 commit comments