]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/dbg_macro.rs
Rollup merge of #83092 - petrochenkov:qspan, r=estebank
[rust.git] / clippy_lints / src / dbg_macro.rs
index 67f86f50ef61da739a49e5cdbdb5d240baa86e25..e513dcce64e5349fb6668ceb1bf3fc864d577809 100644 (file)
@@ -30,7 +30,7 @@
 declare_lint_pass!(DbgMacro => [DBG_MACRO]);
 
 impl EarlyLintPass for DbgMacro {
-    fn check_mac(&mut self, cx: &EarlyContext<'_>, mac: &ast::Mac) {
+    fn check_mac(&mut self, cx: &EarlyContext<'_>, mac: &ast::MacCall) {
         if mac.path == sym!(dbg) {
             if let Some(sugg) = tts_span(mac.args.inner_tokens()).and_then(|span| snippet_opt(cx, span)) {
                 span_lint_and_sugg(
@@ -48,6 +48,7 @@ fn check_mac(&mut self, cx: &EarlyContext<'_>, mac: &ast::Mac) {
                     DBG_MACRO,
                     mac.span(),
                     "`dbg!` macro is intended as a debugging tool",
+                    None,
                     "ensure to avoid having uses of it in version control",
                 );
             }