-
-
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
Merged
+3,624
−2,311
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
df007cf
rewrite doc attribute (non-doc-comments)
jdonszelmann 3f08e4d
start using parsed doc attributes everywhere
jdonszelmann acb32df
Continue migration to new Attribute API for `doc` attribute
GuillaumeGomez 131323f
Migrate `doc(cfg)` to new `Attribute` API
GuillaumeGomez 04bcd83
Move `doc = ""` parsing out of `DocParser` to keep doc attributes order
GuillaumeGomez 148e522
Correctly differentiate between sugared and raw doc comments
GuillaumeGomez 92edc49
Correctly handle doc items inlining
GuillaumeGomez 368a103
Fix `Cfg` add/or operations
GuillaumeGomez d35ec31
Keep a list of `CfgEntry` instead of just one
GuillaumeGomez 57870b7
Fix `doc(auto_cfg)` attribute parsing
GuillaumeGomez 5c47240
Correctly handle `doc(test(attr(...)))`
GuillaumeGomez 976d454
Update rustdoc unit tests
GuillaumeGomez 9c8c67b
Fix warning messages
GuillaumeGomez d1277cc
Update `check_doc_cfg` pass in rustdoc, remove old `rustc_attr_parsin…
GuillaumeGomez e4f57dd
Finish fixing ui tests
GuillaumeGomez 3fa499b
Sort fluent messages
GuillaumeGomez a36c462
Update clippy code to new doc attribute API
GuillaumeGomez aa3bf6f
Update rustc_resolve unit tests
GuillaumeGomez 4936973
Fix ui tests
GuillaumeGomez 348d9d9
Correctly iterate doc comments in intra-doc resolution in `rustc_reso…
GuillaumeGomez 8d4f59b
Clean up code
GuillaumeGomez 2340f80
Update to new lint API
GuillaumeGomez 06238bd
Update rustdoc JSON output to new attribute API
GuillaumeGomez 1da7684
Improve code and add more comments
GuillaumeGomez 4191e94
Improve spans for `auto_cfg(hide/show)` errors
GuillaumeGomez 6230b56
Update clippy code
GuillaumeGomez 40907f5
Fix doc alias suggestion
GuillaumeGomez 64aaeac
Update to new API, allowing to remove `check_doc_cfg.rs` file from li…
GuillaumeGomez 3ea9462
Remove `Cfg::matches` and use `eval_config_entry` instead
GuillaumeGomez 9fdec81
Fix new merge conflict
GuillaumeGomez 2bc2a0d
For now, ignore target checking for doc attributes in attr_parsing
GuillaumeGomez 5180632
Do not error if there are duplicated doc attributes
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.