Skip to content

Commit 18f3448

Browse files
authored
Migrate from doc_auto_cfg to doc_cfg. (#123)
This makes the lints compilable again.
1 parent 180bb08 commit 18f3448

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

content/wiki/canonical_lints.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ clippy.wildcard_dependencies = "warn"
5959
## `lib.rs`
6060

6161
```rust
62-
// LINEBENDER LINT SET - lib.rs - v3
62+
// LINEBENDER LINT SET - lib.rs - v4
6363
// See https://linebender.org/wiki/canonical-lints/
6464
// These lints shouldn't apply to examples or tests.
6565
#![cfg_attr(not(test), warn(unused_crate_dependencies))]
@@ -68,7 +68,7 @@ clippy.wildcard_dependencies = "warn"
6868
// Targeting e.g. 32-bit means structs containing usize can give false positives for 64-bit.
6969
#![cfg_attr(target_pointer_width = "64", warn(clippy::trivially_copy_pass_by_ref))]
7070
// END LINEBENDER LINT SET
71-
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
71+
#![cfg_attr(docsrs, feature(doc_cfg))]
7272
```
7373

7474
## `.clippy.toml`

0 commit comments

Comments
 (0)