File tree 3 files changed +9
-3
lines changed
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
4
4
LL | #[doc(auto_cfg)]
5
5
| ^^^^^^^^
6
6
|
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
7
10
note: the lint level is defined here
8
11
--> $DIR/doc_no_auto_cfg.rs:2:9
9
12
|
10
13
LL | #![deny(warnings)]
11
14
| ^^^^^^^^
12
15
= 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
16
16
help: to apply to the crate, use an inner attribute
17
17
|
18
18
LL | #![doc(auto_cfg)]
You can’t perform that action at this time.
0 commit comments