-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of #131732 - m4tx:fix-82824, r=davidtwco
Add doc(plugins), doc(passes), etc. to INVALID_DOC_ATTRIBUTES This fixes #82824.
- Loading branch information
Showing
6 changed files
with
84 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,21 @@ | ||
//@ check-pass | ||
//@ compile-flags: --passes unknown-pass | ||
//@ error-pattern: the `passes` flag no longer functions | ||
|
||
#![doc(no_default_passes)] | ||
//~^ WARNING attribute is deprecated | ||
//~^ ERROR unknown `doc` attribute `no_default_passes` | ||
//~| NOTE no longer functions | ||
//~| NOTE see issue #44136 | ||
//~| HELP no longer functions; you may want to use `#![doc(document_private_items)]` | ||
//~| HELP you may want to use `doc(document_private_items)` | ||
//~| NOTE `doc(no_default_passes)` is now a no-op | ||
//~| NOTE `#[deny(invalid_doc_attributes)]` on by default | ||
#![doc(passes = "collapse-docs unindent-comments")] | ||
//~^ WARNING attribute is deprecated | ||
//~^ ERROR unknown `doc` attribute `passes` | ||
//~| NOTE no longer functions | ||
//~| NOTE see issue #44136 | ||
//~| HELP no longer functions; you may want to use `#![doc(document_private_items)]` | ||
//~| HELP you may want to use `doc(document_private_items)` | ||
//~| NOTE `doc(passes)` is now a no-op | ||
#![doc(plugins = "xxx")] | ||
//~^ WARNING attribute is deprecated | ||
//~^ ERROR unknown `doc` attribute `plugins` | ||
//~| NOTE see issue #44136 | ||
//~| WARNING no longer functions; see CVE | ||
//~| NOTE no longer functions | ||
//~| NOTE `doc(plugins)` is now a no-op |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters