Skip to content

Commit ed1fc5d

Browse files
authored
Merge pull request #2232 from yegeunyang/#2114
Add a link to declare_lint! macro doc in diagnostics.md
2 parents b221a6b + 7e74e43 commit ed1fc5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diagnostics.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ as the linter walks the AST. You can then choose to emit lints in a
602602
very similar way to compile errors.
603603

604604
You also declare the metadata of a particular lint via the `declare_lint!`
605-
macro. This includes the name, the default level, a short description, and some
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
606606
more details.
607607

608608
Note that the lint and the lint pass must be registered with the compiler.

0 commit comments

Comments
 (0)