@@ -436,7 +436,7 @@ need to ensure that the MSRV configured for the project is >= the MSRV of the
436
436
required Rust feature. If multiple features are required, just use the one with
437
437
a lower MSRV.
438
438
439
- First, add an MSRV alias for the required feature in [ ` clippy_utils ::msrvs` ] .
439
+ First, add an MSRV alias for the required feature in [ ` clippy_config ::msrvs` ] .
440
440
This can be accessed later as ` msrvs::STR_STRIP_PREFIX ` , for example.
441
441
442
442
``` rust
@@ -506,7 +506,7 @@ fn msrv_1_45() {
506
506
```
507
507
508
508
As a last step, the lint should be added to the lint documentation. This is done
509
- in ` clippy_lints /src/utils /conf.rs` :
509
+ in ` clippy_config /src/conf.rs` :
510
510
511
511
``` rust
512
512
define_Conf! {
@@ -516,7 +516,7 @@ define_Conf! {
516
516
}
517
517
```
518
518
519
- [ `clippy_utils ::msrvs` ] : https://doc.rust-lang.org/nightly/nightly-rustc/clippy_utils /msrvs/index.html
519
+ [ `clippy_config ::msrvs` ] : https://doc.rust-lang.org/nightly/nightly-rustc/clippy_config /msrvs/index.html
520
520
521
521
## Author lint
522
522
@@ -657,7 +657,7 @@ Adding a configuration to a lint can be useful for
657
657
thresholds or to constrain some behavior that can be seen as a false positive
658
658
for some users. Adding a configuration is done in the following steps:
659
659
660
- 1 . Adding a new configuration entry to [ ` clippy_lints::utils ::conf` ] like this:
660
+ 1 . Adding a new configuration entry to [ ` clippy_config ::conf` ] like this:
661
661
662
662
``` rust,ignore
663
663
/// Lint: LINT_NAME.
@@ -736,7 +736,7 @@ for some users. Adding a configuration is done in the following steps:
736
736
737
737
Run ` cargo collect-metadata ` to generate documentation changes for the book.
738
738
739
- [ `clippy_lints::utils:: conf` ] : https://github.com/rust-lang/rust-clippy/blob/master/clippy_lints /src/utils /conf.rs
739
+ [ `clippy_config:: conf` ] : https://github.com/rust-lang/rust-clippy/blob/master/clippy_config /src/conf.rs
740
740
[ `clippy_lints` lib file ] : https://github.com/rust-lang/rust-clippy/blob/master/clippy_lints/src/lib.rs
741
741
[ `tests/ui` ] : https://github.com/rust-lang/rust-clippy/blob/master/tests/ui
742
742
[ `tests/ui-toml` ] : https://github.com/rust-lang/rust-clippy/blob/master/tests/ui-toml
0 commit comments