@@ -292,7 +292,7 @@ the next section. Let's worry about the details later and emit our lint for
292292
293293Depending on how complex we want our lint message to be, we can choose from a
294294variety 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 ] .
296296
297297` span_lint_and_help ` seems most appropriate in this case. It allows us to
298298provide 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
321321surrounded with single grave accents \` .
322322
323323[ 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
325325[ the rustc-dev-guide ] : https://rustc-dev-guide.rust-lang.org/diagnostics.html
326326
327327## Adding the lint logic
@@ -537,7 +537,7 @@ directory. Adding a configuration to a lint can be useful for thresholds or to c
537537behavior that can be seen as a false positive for some users. Adding a configuration is done
538538in the following steps:
539539
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 )
541541 like this:
542542 ``` rust
543543 /// Lint: LINT_NAME. <The configuration field doc comment>
@@ -636,7 +636,7 @@ documentation currently. This is unfortunate, but in most cases you can probably
636636get away with copying things from existing similar lints . If you are stuck ,
637637don 't hesitate to ask on [Zulip ] or in the issue / PR .
638638
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
640640[if_chain ]: https : // docs.rs/if_chain/*/if_chain/
641641[from_expansion ]: https : // doc.rust-lang.org/nightly/nightly-rustc/rustc_span/struct.Span.html#method.from_expansion
642642[in_external_macro ]: https : // doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/lint/fn.in_external_macro.html
0 commit comments