@@ -292,7 +292,7 @@ the next section. Let's worry about the details later and emit our lint for
292
292
293
293
Depending on how complex we want our lint message to be, we can choose from a
294
294
variety of lint emission functions. They can all be found in
295
- [ ` clippy_lints /src/utils /diagnostics.rs` ] [ diagnostics ] .
295
+ [ ` clippy_utils /src/diagnostics.rs` ] [ diagnostics ] .
296
296
297
297
` span_lint_and_help ` seems most appropriate in this case. It allows us to
298
298
provide an extra help message and we can't really suggest a better name
@@ -321,7 +321,7 @@ When code or an identifier must appear in a message or label, it should be
321
321
surrounded with single grave accents \` .
322
322
323
323
[ check_fn ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_lint/trait.EarlyLintPass.html#method.check_fn
324
- [ diagnostics ] : https://github.com/rust-lang/rust-clippy/blob/master/clippy_lints /src/utils /diagnostics.rs
324
+ [ diagnostics ] : https://github.com/rust-lang/rust-clippy/blob/master/clippy_utils /src/diagnostics.rs
325
325
[ the rustc-dev-guide ] : https://rustc-dev-guide.rust-lang.org/diagnostics.html
326
326
327
327
## Adding the lint logic
@@ -537,7 +537,7 @@ directory. Adding a configuration to a lint can be useful for thresholds or to c
537
537
behavior that can be seen as a false positive for some users. Adding a configuration is done
538
538
in the following steps:
539
539
540
- 1 . Adding a new configuration entry to [ clippy_lints::utils:: conf] ( /clippy_lints /src/utils /conf.rs )
540
+ 1 . Adding a new configuration entry to [ clippy_utils:: conf] ( /clippy_utils /src/conf.rs )
541
541
like this:
542
542
``` rust
543
543
/// Lint: LINT_NAME. <The configuration field doc comment>
@@ -636,7 +636,7 @@ documentation currently. This is unfortunate, but in most cases you can probably
636
636
get away with copying things from existing similar lints . If you are stuck ,
637
637
don 't hesitate to ask on [Zulip ] or in the issue / PR .
638
638
639
- [utils ]: https : // github.com/rust-lang/rust-clippy/blob/master/clippy_lints /src/utils/mod .rs
639
+ [utils ]: https : // github.com/rust-lang/rust-clippy/blob/master/clippy_utils /src/lib .rs
640
640
[if_chain ]: https : // docs.rs/if_chain/*/if_chain/
641
641
[from_expansion ]: https : // doc.rust-lang.org/nightly/nightly-rustc/rustc_span/struct.Span.html#method.from_expansion
642
642
[in_external_macro ]: https : // doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/lint/fn.in_external_macro.html
0 commit comments