about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2025-01-29 04:08:54 +0000
committerGitHub <noreply@github.com>2025-01-29 04:08:54 +0000
commitd8cca31abf4db2c0c370adad096f4befe95efb56 (patch)
treeed5cc49b3a3b1fd6259dd4e3fefa6b946859a9a0 /src
parent852003184239453391dca44378281eaeb43a9276 (diff)
parent0127e6479fa86a371e53412c4c46237877c81682 (diff)
downloadrust-d8cca31abf4db2c0c370adad096f4befe95efb56.tar.gz
rust-d8cca31abf4db2c0c370adad096f4befe95efb56.zip
Merge pull request #2232 from yegeunyang/#2114
Add a link to declare_lint! macro doc in diagnostics.md
Diffstat (limited to 'src')
-rw-r--r--src/doc/rustc-dev-guide/src/diagnostics.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/rustc-dev-guide/src/diagnostics.md b/src/doc/rustc-dev-guide/src/diagnostics.md
index 709e9d4f889..8f389640d27 100644
--- a/src/doc/rustc-dev-guide/src/diagnostics.md
+++ b/src/doc/rustc-dev-guide/src/diagnostics.md
@@ -602,7 +602,7 @@ as the linter walks the AST. You can then choose to emit lints in a
 very similar way to compile errors.
 
 You also declare the metadata of a particular lint via the `declare_lint!`
-macro. This includes the name, the default level, a short description, and some
+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
 more details.
 
 Note that the lint and the lint pass must be registered with the compiler.