Skip to content

Commit b3c5e9c

Browse files
authored
overlong line
1 parent 3b8d88d commit b3c5e9c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: src/diagnostics.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -601,8 +601,8 @@ The trait implementation allows you to check certain syntactic constructs
601601
as the linter walks the AST. You can then choose to emit lints in a
602602
very similar way to compile errors.
603603

604-
You also declare the metadata of a particular lint via the `declare_lint!`
605-
macro. [This macro](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_lint_defs/macro.declare_lint.html) includes the name, the default level, a short description, and some
604+
You also declare the metadata of a particular lint via the [`declare_lint!`]
605+
macro. This macro includes the name, the default level, a short description, and some
606606
more details.
607607

608608
Note that the lint and the lint pass must be registered with the compiler.
@@ -671,6 +671,8 @@ example-use-loop = denote infinite loops with `loop {"{"} ... {"}"}`
671671
.suggestion = use `loop`
672672
```
673673

674+
[`declare_lint!`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_lint_defs/macro.declare_lint.html
675+
674676
### Edition-gated lints
675677

676678
Sometimes we want to change the behavior of a lint in a new edition. To do this,

0 commit comments

Comments
 (0)