Skip to content

Commit cd0ba7c

Browse files
committed
Tweak test.
1 parent b3a82d6 commit cd0ba7c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/ui/collapsible_span_lint_calls.rs

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ use rustc_lint::{EarlyContext, EarlyLintPass, LintContext, Lint};
1414
use syntax::ast::Expr;
1515
use rustc_span::source_map::Span;
1616

17+
#[allow(unused_variables)]
1718
pub fn span_lint_and_then<'a, T: LintContext, F>(cx: &'a T, lint: &'static Lint, sp: Span, msg: &str, f: F)
1819
where
1920
F: for<'b> FnOnce(&mut DiagnosticBuilder<'b>),
@@ -35,6 +36,7 @@ impl EarlyLintPass for Pass {
3536
let help_msg = "help message";
3637
let note_msg = "note message";
3738
let sugg = "new_call()";
39+
3840
span_lint_and_then(cx, TEST_LINT, expr.span, lint_msg, |db| {
3941
db.span_suggestion(expr.span, help_msg, sugg.to_string(), Applicability::MachineApplicable);
4042
});

0 commit comments

Comments
 (0)