Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-diagnostics/src/handlers/mismatched_arg_count.rs')
| -rw-r--r-- | crates/ide-diagnostics/src/handlers/mismatched_arg_count.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/ide-diagnostics/src/handlers/mismatched_arg_count.rs b/crates/ide-diagnostics/src/handlers/mismatched_arg_count.rs index 81ea442e9e..844431c1e5 100644 --- a/crates/ide-diagnostics/src/handlers/mismatched_arg_count.rs +++ b/crates/ide-diagnostics/src/handlers/mismatched_arg_count.rs @@ -399,6 +399,8 @@ fn main() { fn cfgd_out_call_arguments() { check_diagnostics( r#" +#![allow(rust_analyzer::inactive_code)] + struct C(#[cfg(FALSE)] ()); impl C { fn new() -> Self { @@ -422,6 +424,8 @@ fn main() { fn cfgd_out_fn_params() { check_diagnostics( r#" +#![allow(rust_analyzer::inactive_code)] + fn foo(#[cfg(NEVER)] x: ()) {} struct S; |