File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1+ // check-pass
2+ #![ feature( doc_auto_cfg) ]
Original file line number Diff line number Diff line change 1+ warning: the `doc_auto_cfg` feature is used but `#![doc(auto_cfg)]` isn't so it won't do anything
2+
3+ warning: 1 warning emitted
4+
Original file line number Diff line number Diff line change @@ -4,15 +4,15 @@ error: this attribute can only be applied at the crate level
44LL | #[doc(auto_cfg)]
55 | ^^^^^^^^
66 |
7+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
8+ = note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
9+ = note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#at-the-crate-level> for more information
710note: the lint level is defined here
811 --> $DIR/doc_no_auto_cfg.rs:2:9
912 |
1013LL | #![deny(warnings)]
1114 | ^^^^^^^^
1215 = note: `#[deny(invalid_doc_attributes)]` implied by `#[deny(warnings)]`
13- = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
14- = note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
15- = note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#at-the-crate-level> for more information
1616help: to apply to the crate, use an inner attribute
1717 |
1818LL | #![doc(auto_cfg)]
You can’t perform that action at this time.
0 commit comments