-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Find more invalid doc attributes #83098
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 6 commits
9613a88
7189c05
7e972a3
fe64970
5134047
13884dc
13076f9
8f40e11
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,51 @@ LL | #![deny(warnings)] | |
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | ||
= note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730> | ||
|
||
error: unknown `doc` attribute | ||
--> $DIR/doc-attr.rs:12:7 | ||
| | ||
LL | #[doc(123)] | ||
| ^^^ | ||
| | ||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | ||
= note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730> | ||
|
||
error: unknown `doc` attribute | ||
--> $DIR/doc-attr.rs:15:7 | ||
| | ||
LL | #[doc("hello", "bar")] | ||
| ^^^^^^^ | ||
| | ||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | ||
= note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730> | ||
|
||
error: unknown `doc` attribute | ||
--> $DIR/doc-attr.rs:15:16 | ||
| | ||
LL | #[doc("hello", "bar")] | ||
| ^^^^^ | ||
| | ||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | ||
= note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730> | ||
|
||
error: unknown `doc` attribute `` | ||
--> $DIR/doc-attr.rs:20:7 | ||
| | ||
LL | #[doc(foo::bar, crate::bar::baz = "bye")] | ||
| ^^^^^^^^ | ||
| | ||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | ||
= note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730> | ||
|
||
error: unknown `doc` attribute `` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How do I display the Note that this is not a regression; this test is just exposing the previous behavior. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Instead of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Both There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd normally want to lean against introducing more dependencies between our crates, but depending on There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It looks like |
||
--> $DIR/doc-attr.rs:20:17 | ||
| | ||
LL | #[doc(foo::bar, crate::bar::baz = "bye")] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | ||
= note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730> | ||
|
||
error: unknown `doc` attribute `as_ptr` | ||
--> $DIR/doc-attr.rs:3:8 | ||
| | ||
|
@@ -22,5 +67,5 @@ LL | #![doc(as_ptr)] | |
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | ||
= note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730> | ||
|
||
error: aborting due to 2 previous errors | ||
error: aborting due to 7 previous errors | ||
|
Uh oh!
There was an error while loading. Please reload this page.