Repository navigation
Add rustdoc-ui tests for (some) malformed doc attributes - #166246
Merged
rust-bors[bot] merged 1 commit intoNov 20, 2026
Merged
Conversation
fmease
approved these changes
Nov 20, 2026
Member
There was a problem hiding this comment.
Thenks :)
It looks like we've previously placed attribute tests into rustdoc-ui/lints/. E.g.,
rustdoc-ui/lints/invalid-doc-attr{,-{2,3}}.rsrustdoc-ui/lints/doc-attr{,-2}.rs
but then again, we also have
rustdoc-ui/invalid-attribute.rsrustdoc-ui/check-doc-alias-attr{,-location}.rsrustdoc-ui/deprecated-attrs.rsrustdoc-ui/doc-attribute-unsupported.rs
(and rustdoc-ui/lints/check-attr.rs and rustdoc-ui/2024-doctests-crate-attribute.rs should belong into doctest/ instead since they concern code block attributes, not Rust attributes...)
What a mess. All tests exercising Rust attributes should belong into a new directory rustdoc-ui/attributes/ and have more consistent & descriptive names... but that's a different PR.
@bors r+ rollup force
Contributor
Member
Author
|
I'm slowly cleaning up the |
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Nov 20, 2026
…, r=fmease Add rustdoc-ui tests for (some) malformed doc attributes Fixes rust-lang#146346. Which reminds me I should finish rust-lang#165187... r? @fmease
This was referenced Nov 20, 2026
rust-bors Bot
pushed a commit
that referenced
this pull request
Nov 20, 2026
…uwer Rollup of 5 pull requests Successful merges: - #157721 (compiletest: Add testing for lint machinery at runtime) - #153746 (rustdoc: add emoji icons for unstable and deprecated to search results) - #164378 (RISC-V: enable relax target feature by default) - #166241 (view-types: better documentation for View variant) - #166246 (Add rustdoc-ui tests for (some) malformed doc attributes)
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Nov 22, 2026
… r=fmease Move `rustdoc-ui` tests in the right folder Since you mentioned it [here](rust-lang#166246 (review)) that we should cleanup this folder too, here you go @fmease. ;) r? @fmease
github-actions Bot
pushed a commit
to rust-lang/rustc-dev-guide
that referenced
this pull request
Nov 23, 2026
…uwer Rollup of 5 pull requests Successful merges: - rust-lang/rust#157721 (compiletest: Add testing for lint machinery at runtime) - rust-lang/rust#153746 (rustdoc: add emoji icons for unstable and deprecated to search results) - rust-lang/rust#164378 (RISC-V: enable relax target feature by default) - rust-lang/rust#166241 (view-types: better documentation for View variant) - rust-lang/rust#166246 (Add rustdoc-ui tests for (some) malformed doc attributes)
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Nov 24, 2026
… r=fmease Move `rustdoc-ui` tests in the right folder Since you mentioned it [here](rust-lang#166246 (review)) that we should cleanup this folder too, here you go @fmease. ;) r? @fmease
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #146346.
Which reminds me I should finish #165187...
r? @fmease