-
Notifications
You must be signed in to change notification settings - Fork 13k
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
rustdoc: rename issue-\d+.rs
tests to have meaningful names (part 11)
#136258
Conversation
issue-\d+.rs
tests to have meaningful names (part 10)issue-\d+.rs
tests to have meaningful names (part 11)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uh yeah, this is quite a specific regression test. Any more descriptive file name probably doesn't do it justice (like priv-use
).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I admit that all of these ICE regression tests are super niche and that likely nobody will ever look at them again but I think it's worth spending some words on these ^^'. What about sth. like extern-trait-local-impl
or non-local-trait-local-impl
(with or without the ice-
prefix)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to have the ice
prefix for test cases that have no assertions. It makes it clearer what's being tested.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doc-hidden-*
is only half the truth, this also tests that trait impls of effectively private types aren't rendered. Maybe doc-hidden-or-priv-module-*
or the like?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The commit cfad7ad that created these files describes it as a "reachability" check. How about calling it "doc-reachability-impl"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one is accurate. Well, except that the test also checks for the absence of impl Bar for Wobble
(Bar
relates to the effectively private test cases) which I think doesn't make that much sense as a test case but yea.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(hah, [#]108459 isn't even an issue but a PR)
Thanks! r=me with nits addressed |
@bors r=fmease |
Rollup of 8 pull requests Successful merges: - rust-lang#135414 (Stabilize `const_black_box`) - rust-lang#136150 (ci: use windows 2025 for i686-mingw) - rust-lang#136258 (rustdoc: rename `issue-\d+.rs` tests to have meaningful names (part 11)) - rust-lang#136270 (Remove `NamedVarMap`.) - rust-lang#136278 (add constraint graph to polonius MIR dump) - rust-lang#136287 (LLVM changed the nocapture attribute to captures(none)) - rust-lang#136291 (some test suite cleanups) - rust-lang#136296 (float::min/max: mention the non-determinism around signed 0) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#136258 - notriddle:notriddle/issue-d, r=fmease rustdoc: rename `issue-\d+.rs` tests to have meaningful names (part 11) Follow up * rust-lang#134053 * rust-lang#130287 et al As always, it's easier to review the commits one at a time. Don't use the Files Changed tab. It's confusing.
Follow up
issue-\d+.rs
tests to have meaningful names (part 10) #134053issue-\d+.rs
tests to have meaningful names (part 9) #130287et al
As always, it's easier to review the commits one at a time. Don't use the Files Changed tab. It's confusing.