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 b52a9bd commit 268ff85Copy full SHA for 268ff85
clippy_lints/src/dbg_macro.rs
@@ -1,4 +1,4 @@
1
-use crate::utils::span_lint_and_sugg;
+use crate::utils::span_help_and_lint;
2
use rustc::lint::{EarlyContext, EarlyLintPass, LintArray, LintPass};
3
use rustc::{declare_tool_lint, lint_array};
4
use rustc_errors::Applicability;
@@ -41,14 +41,12 @@ impl LintPass for Pass {
41
impl EarlyLintPass for Pass {
42
fn check_mac(&mut self, cx: &EarlyContext<'_>, mac: &ast::Mac) {
43
if mac.node.path == "dbg" {
44
- span_lint_and_sugg(
+ span_help_and_lint(
45
cx,
46
DBG_MACRO,
47
mac.span,
48
"`dbg!` macro is intended as a debugging tool",
49
"ensure to avoid having uses of it in version control",
50
- mac.node.tts.to_string(),
51
- Applicability::MaybeIncorrect,
52
);
53
}
54
0 commit comments