-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Port doc attributes to new attribute API
#149645
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
Open
GuillaumeGomez
wants to merge
28
commits into
rust-lang:main
Choose a base branch
from
GuillaumeGomez:doc-attr-based
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+3,741
−2,306
Open
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
55c3b5b
rewrite doc attribute (non-doc-comments)
jdonszelmann a79994b
start using parsed doc attributes everywhere
jdonszelmann c7fd005
Continue migration to new Attribute API for `doc` attribute
GuillaumeGomez aa31fba
Migrate `doc(cfg)` to new `Attribute` API
GuillaumeGomez 5d526d7
Move `doc = ""` parsing out of `DocParser` to keep doc attributes order
GuillaumeGomez 35e70ed
Correctly differentiate between sugared and raw doc comments
GuillaumeGomez 0492b9b
Correctly handle doc items inlining
GuillaumeGomez 9ea9e63
Fix `Cfg` add/or operations
GuillaumeGomez 3c1434b
Keep a list of `CfgEntry` instead of just one
GuillaumeGomez 2c588c7
Fix `doc(auto_cfg)` attribute parsing
GuillaumeGomez dd90c44
Correctly handle `doc(test(attr(...)))`
GuillaumeGomez d0fdfbf
Update rustdoc unit tests
GuillaumeGomez e0ad540
Fix warning messages
GuillaumeGomez 485f823
Update `check_doc_cfg` pass in rustdoc, remove old `rustc_attr_parsin…
GuillaumeGomez 4b5be79
Finish fixing ui tests
GuillaumeGomez 33055ee
Sort fluent messages
GuillaumeGomez d642fcc
Update clippy code to new doc attribute API
GuillaumeGomez dcbd20f
Update rustc_resolve unit tests
GuillaumeGomez 881f4c1
Fix ui tests
GuillaumeGomez eda82de
Correctly iterate doc comments in intra-doc resolution in `rustc_reso…
GuillaumeGomez 3a0ae40
Clean up code
GuillaumeGomez 50040ec
Update to new lint API
GuillaumeGomez 92d525a
Update rustdoc JSON output to new attribute API
GuillaumeGomez a71f60c
Improve code and add more comments
GuillaumeGomez 6f83263
Improve spans for `auto_cfg(hide/show)` errors
GuillaumeGomez fdbecd0
Update clippy code
GuillaumeGomez cdc7b43
Fix doc alias suggestion
GuillaumeGomez 4d09d44
Update to new API, allowing to remove `check_doc_cfg.rs` file from li…
GuillaumeGomez File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.