Tidy: detect ui tests subdirectory changes so tests/ui/README.md stays in sync#150474
Tidy: detect ui tests subdirectory changes so tests/ui/README.md stays in sync#150474rust-bors[bot] merged 3 commits intorust-lang:mainfrom
tests/ui/README.md stays in sync#150474Conversation
|
|
d6dc370 to
a2945a2
Compare
|
Looks good to me, but I will let the final review to a T-bootstrap member. Btw, could you make the title and description a bit more descriptive. r? bootstrap |
tests/ui/README.md stays in sync
|
Okay, thank you for the review:) |
tests/ui/README.md stays in synctests/ui/README.md stays in sync
|
I don't quite understand the purpose of having a separate If the goal is to keep |
Ah, since the initial suggestion was to "add comments when subdirectories change," so we implemented it by creating a If we wanted to include directory change detection in tidy and force modifications to I will change it. |
Parsing a Markdown file is non-trivial and But in general yes, looking at |
|
Given that this is an in-tree tidy check for a single file that we already control, I don't think we need to actually parse Markdown. We can just assume that If somebody tries to modify the readme in a way that would break the tidy check, well, maybe they shouldn't be doing that. |
|
@rustbot author |
7f0149f to
4bbba21
Compare
This comment has been minimized.
This comment has been minimized.
|
Unified by removing '/' at the end of the title and added directories that did not have descriptions. created: deleted thank you for the review:) |
|
Ah, I will add a task to check the alignment. @rustbot author |
This comment has been minimized.
This comment has been minimized.
| ## `tests/ui/reflection/` | ||
|
|
||
| Exercises the `#![feature(type_info)]` feature. | ||
|
|
||
| See [Tracking Issue for type_info #146922](https://github.com/rust-lang/rust/issues/146922) | ||
|
|
There was a problem hiding this comment.
This directory was also added within two weeks.😄
|
@rustbot ready |
|
Nitpick: Could you please reorder the commits, so that the readme changes come before adding the tidy check? That way, every individual commit should successfully pass tests, which is a nice property to have. After that, I think we should be good to go. @rustbot author |
d6a97fa to
a085410
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
| ## `tests/ui/trimmed-paths/` | ||
|
|
||
| Tests for the `#[doc(hidden)]` items. | ||
|
|
There was a problem hiding this comment.
Rearranged the commit order and added this section,
|
Thanks for your patience. 🙌 @bors r+ |
…thar Tidy: detect ui tests subdirectory changes so `tests/ui/README.md` stays in sync close: rust-lang#150399 There's an issue where `tests/ui/README.md` isn't updated whenever the ui subdirectory changes. I've added subdirectory change detection to tidy ~~added a new mention to `triage.toml` to notify `tests/ui/README.md` to also be updated~~. r? @Urgau
Rollup of 8 pull requests Successful merges: - #150474 (Tidy: detect ui tests subdirectory changes so `tests/ui/README.md` stays in sync) - #150572 (Improve move error diagnostic for `AsyncFn` closures) - #151596 (Fix -Zmir-enable-passes to detect unregistered enum names in declare_passes macro) - #151802 (Make `QueryDispatcher::Qcx` an associated type) - #151559 ([rustdoc] Add a marker to tell users that there are hidden (deprecated) items in the search results) - #151665 (Fix contrast ratio for `Since` element in rustodoc dark theme) - #151798 (Update `askama` to `0.15.3`) - #151800 (Subscribe myself to translation diagnostics)
Rollup of 12 pull requests Successful merges: - #150474 (Tidy: detect ui tests subdirectory changes so `tests/ui/README.md` stays in sync) - #150572 (Improve move error diagnostic for `AsyncFn` closures) - #151596 (Fix -Zmir-enable-passes to detect unregistered enum names in declare_passes macro) - #151802 (Make `QueryDispatcher::Qcx` an associated type) - #149110 (Implement `cast_slice` for raw pointer types) - #151559 ([rustdoc] Add a marker to tell users that there are hidden (deprecated) items in the search results) - #151665 (Fix contrast ratio for `Since` element in rustdoc dark theme) - #151785 (Stabilize feature(push_mut)) - #151798 (Update `askama` to `0.15.3`) - #151800 (Subscribe myself to translation diagnostics) - #151804 (Document, sort, and tweak spellcheck entries in `typos.toml`) - #151805 (Fix grammar in `env::current_exe()#Security`)
Rollup merge of #150474 - reddevilmidzy:tidy-sub-dir, r=Zalathar Tidy: detect ui tests subdirectory changes so `tests/ui/README.md` stays in sync close: #150399 There's an issue where `tests/ui/README.md` isn't updated whenever the ui subdirectory changes. I've added subdirectory change detection to tidy ~~added a new mention to `triage.toml` to notify `tests/ui/README.md` to also be updated~~. r? @Urgau
close: #150399
There's an issue where
tests/ui/README.mdisn't updated whenever the ui subdirectory changes.I've added subdirectory change detection to tidy
added a new mention to.triage.tomlto notifytests/ui/README.mdto also be updatedr? @Urgau