Skip to content
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

Merged
merged 4 commits into from
Jan 31, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Copy link
Member

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).

Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// https://github.com/rust-lang/rust/issues/103463
//@ check-pass

// The `Trait` is not pulled into the crate resulting in doc links in its methods being resolved.

Expand Down
Copy link
Member

@fmease fmease Jan 30, 2025

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)?

Copy link
Contributor Author

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.

Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// https://github.com/rust-lang/rust/issues/104145
//@ check-pass

// Doc links in `Trait`'s methods are resolved because it has a local impl.

Expand Down
Copy link
Member

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?

File renamed without changes.
Copy link
Member

@fmease fmease Jan 30, 2025

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.

File renamed without changes.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

Copy link
Contributor Author

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"?

File renamed without changes.
Copy link
Member

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)

File renamed without changes.
Loading