Skip to content

Commit 268ff85

Browse files
committed
use span_help_and_lint() instead of span_lint_and_sugg()
1 parent b52a9bd commit 268ff85

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

clippy_lints/src/dbg_macro.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::utils::span_lint_and_sugg;
1+
use crate::utils::span_help_and_lint;
22
use rustc::lint::{EarlyContext, EarlyLintPass, LintArray, LintPass};
33
use rustc::{declare_tool_lint, lint_array};
44
use rustc_errors::Applicability;
@@ -41,14 +41,12 @@ impl LintPass for Pass {
4141
impl EarlyLintPass for Pass {
4242
fn check_mac(&mut self, cx: &EarlyContext<'_>, mac: &ast::Mac) {
4343
if mac.node.path == "dbg" {
44-
span_lint_and_sugg(
44+
span_help_and_lint(
4545
cx,
4646
DBG_MACRO,
4747
mac.span,
4848
"`dbg!` macro is intended as a debugging tool",
4949
"ensure to avoid having uses of it in version control",
50-
mac.node.tts.to_string(),
51-
Applicability::MaybeIncorrect,
5250
);
5351
}
5452
}

0 commit comments

Comments
 (0)