Skip to content

Commit 33b3b6d

Browse files
committed
refactor: disable "unused" lint using parameter name
1 parent d761d86 commit 33b3b6d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

crates/ide-diagnostics/src/handlers/mismatched_arg_count.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ fn invalid_args_range(
103103

104104
#[cfg(test)]
105105
mod tests {
106-
use crate::tests::{check_diagnostics, check_diagnostics_with_disabled};
106+
use crate::tests::check_diagnostics;
107107

108108
#[test]
109109
fn simple_free_fn_zero() {
@@ -197,16 +197,15 @@ fn f() {
197197
fn method_unknown_receiver() {
198198
// note: this is incorrect code, so there might be errors on this in the
199199
// future, but we shouldn't emit an argument count diagnostic here
200-
check_diagnostics_with_disabled(
200+
check_diagnostics(
201201
r#"
202-
trait Foo { fn method(&self, arg: usize) {} }
202+
trait Foo { fn method(&self, _arg: usize) {} }
203203
204204
fn f() {
205205
let x;
206206
x.method();
207207
}
208208
"#,
209-
std::iter::once("unused_variables".to_string()),
210209
);
211210
}
212211

0 commit comments

Comments
 (0)