overlong line

This commit is contained in:
Tshepang Mbambo 2025-02-03 22:07:10 +02:00 committed by GitHub
parent 3b8d88dcd3
commit b3c5e9c734
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions

View File

@ -601,8 +601,8 @@ The trait implementation allows you to check certain syntactic constructs
as the linter walks the AST. You can then choose to emit lints in a as the linter walks the AST. You can then choose to emit lints in a
very similar way to compile errors. very similar way to compile errors.
You also declare the metadata of a particular lint via the `declare_lint!` You also declare the metadata of a particular lint via the [`declare_lint!`]
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 macro. This macro includes the name, the default level, a short description, and some
more details. more details.
Note that the lint and the lint pass must be registered with the compiler. 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 {"{"} ... {"}"}`
.suggestion = use `loop` .suggestion = use `loop`
``` ```
[`declare_lint!`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_lint_defs/macro.declare_lint.html
### Edition-gated lints ### Edition-gated lints
Sometimes we want to change the behavior of a lint in a new edition. To do this, Sometimes we want to change the behavior of a lint in a new edition. To do this,