You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/tools/clippy/clippy_lints/src/dbg_macro.rs
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -10,11 +10,11 @@ use rustc_span::sym;
10
10
11
11
declare_clippy_lint!{
12
12
/// ### What it does
13
-
/// Checks for usage of dbg!() macro.
13
+
/// Checks for usage of the [`dbg!`](https://doc.rust-lang.org/std/macro.dbg.html) macro.
14
14
///
15
15
/// ### Why is this bad?
16
-
/// `dbg!` macro is intended as a debugging tool. It
17
-
/// should not be in version control.
16
+
/// The `dbg!` macro is intended as a debugging tool. It should not be present in released
17
+
/// software or committed to a version control system.
18
18
///
19
19
/// ### Example
20
20
/// ```rust,ignore
@@ -91,8 +91,8 @@ impl LateLintPass<'_> for DbgMacro {
91
91
cx,
92
92
DBG_MACRO,
93
93
macro_call.span,
94
-
"`dbg!` macro is intended as a debugging tool",
95
-
"ensure to avoid having uses of it in version control",
94
+
"the `dbg!` macro is intended as a debugging tool",
95
+
"remove the invocation before committing it to a version control system",
0 commit comments