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 cab9148 commit b46f378Copy full SHA for b46f378
crates/ide-diagnostics/src/handlers/missing_match_arms.rs
@@ -17,7 +17,10 @@ pub(crate) fn missing_match_arms(
17
18
#[cfg(test)]
19
mod tests {
20
- use crate::tests::check_diagnostics;
+ use crate::{
21
+ tests::{check_diagnostics, check_diagnostics_with_config},
22
+ DiagnosticsConfig,
23
+ };
24
25
#[track_caller]
26
fn check_diagnostics_no_bails(ra_fixture: &str) {
@@ -27,11 +30,13 @@ mod tests {
27
30
28
31
#[test]
29
32
fn empty_body() {
- check_diagnostics_no_bails(
33
+ let mut config = DiagnosticsConfig::test_sample();
34
+ config.disabled.insert("syntax-error".to_string());
35
+ check_diagnostics_with_config(
36
+ config,
37
r#"
38
fn main() {
39
match 0;
- //^ error: Syntax Error: expected `{`
40
}
41
"#,
42
);
0 commit comments