-
Notifications
You must be signed in to change notification settings - Fork 13.4k
rustdoc: rename issue-\d+.rs
tests to have meaningful names (part 11)
#136258
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
Changes from 2 commits
fdef34b
eb457da
a1a55a2
c17d568
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd like to have the |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,30 @@ | ||
// https://github.com/rust-lang/rust/issues/31948 | ||
#![crate_name="foobar"] | ||
|
||
//@ aux-build:rustdoc-nonreachable-impls.rs | ||
//@ build-aux-docs | ||
//@ ignore-cross-compile | ||
|
||
extern crate rustdoc_nonreachable_impls; | ||
|
||
//@ has issue_31948_1/struct.Wobble.html | ||
//@ has foobar/struct.Wobble.html | ||
//@ has - '//*[@class="impl"]//h3[@class="code-header"]' 'Bark for' | ||
//@ has - '//*[@class="impl"]//h3[@class="code-header"]' 'Woof for' | ||
//@ !has - '//*[@class="impl"]//h3[@class="code-header"]' 'Bar for' | ||
//@ !has - '//*[@class="impl"]//h3[@class="code-header"]' 'Qux for' | ||
pub use rustdoc_nonreachable_impls::hidden::Wobble; | ||
|
||
//@ has issue_31948_1/trait.Bark.html | ||
//@ has foobar/trait.Bark.html | ||
//@ has - '//h3[@class="code-header"]' 'for Foo' | ||
//@ has - '//h3[@class="code-header"]' 'for Wobble' | ||
//@ !has - '//h3[@class="code-header"]' 'for Wibble' | ||
pub use rustdoc_nonreachable_impls::Bark; | ||
|
||
//@ has issue_31948_1/trait.Woof.html | ||
//@ has foobar/trait.Woof.html | ||
//@ has - '//h3[@class="code-header"]' 'for Foo' | ||
//@ has - '//h3[@class="code-header"]' 'for Wobble' | ||
//@ !has - '//h3[@class="code-header"]' 'for Wibble' | ||
pub use rustdoc_nonreachable_impls::Woof; | ||
|
||
//@ !has issue_31948_1/trait.Bar.html | ||
//@ !has issue_31948_1/trait.Qux.html | ||
//@ !has foobar/trait.Bar.html | ||
//@ !has foobar/trait.Qux.html |
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,24 @@ | ||
// https://github.com/rust-lang/rust/issues/31948 | ||
#![crate_name="foobar"] | ||
|
||
//@ aux-build:rustdoc-nonreachable-impls.rs | ||
//@ build-aux-docs | ||
//@ ignore-cross-compile | ||
|
||
extern crate rustdoc_nonreachable_impls; | ||
|
||
//@ has issue_31948_2/struct.Wobble.html | ||
//@ has foobar/struct.Wobble.html | ||
//@ has - '//*[@class="impl"]//h3[@class="code-header"]' 'Qux for' | ||
//@ has - '//*[@class="impl"]//h3[@class="code-header"]' 'Bark for' | ||
//@ has - '//*[@class="impl"]//h3[@class="code-header"]' 'Woof for' | ||
//@ !has - '//*[@class="impl"]//h3[@class="code-header"]' 'Bar for' | ||
pub use rustdoc_nonreachable_impls::hidden::Wobble; | ||
|
||
//@ has issue_31948_2/trait.Qux.html | ||
//@ has foobar/trait.Qux.html | ||
//@ has - '//h3[@class="code-header"]' 'for Foo' | ||
//@ has - '//h3[@class="code-header"]' 'for Wobble' | ||
pub use rustdoc_nonreachable_impls::hidden::Qux; | ||
|
||
//@ !has issue_31948_2/trait.Bar.html | ||
//@ !has issue_31948_2/trait.Woof.html | ||
//@ !has issue_31948_2/trait.Bark.html | ||
//@ !has foobar/trait.Bar.html | ||
//@ !has foobar/trait.Woof.html | ||
//@ !has foobar/trait.Bark.html |
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 commentThe 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"? |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,32 @@ | ||
// https://github.com/rust-lang/rust/issues/31948 | ||
#![crate_name="foobar"] | ||
|
||
//@ aux-build:rustdoc-nonreachable-impls.rs | ||
//@ build-aux-docs | ||
//@ ignore-cross-compile | ||
|
||
extern crate rustdoc_nonreachable_impls; | ||
|
||
//@ has issue_31948/struct.Foo.html | ||
//@ has foobar/struct.Foo.html | ||
//@ has - '//*[@class="impl"]//h3[@class="code-header"]' 'Bark for' | ||
//@ has - '//*[@class="impl"]//h3[@class="code-header"]' 'Woof for' | ||
//@ !has - '//*[@class="impl"]//h3[@class="code-header"]' 'Bar for' | ||
//@ !has - '//*[@class="impl"]//h3[@class="code-header"]' 'Qux for' | ||
pub use rustdoc_nonreachable_impls::Foo; | ||
|
||
//@ has issue_31948/trait.Bark.html | ||
//@ has foobar/trait.Bark.html | ||
//@ has - '//h3[@class="code-header"]' 'for Foo' | ||
//@ !has - '//h3[@class="code-header"]' 'for Wibble' | ||
//@ !has - '//h3[@class="code-header"]' 'for Wobble' | ||
pub use rustdoc_nonreachable_impls::Bark; | ||
|
||
//@ has issue_31948/trait.Woof.html | ||
//@ has foobar/trait.Woof.html | ||
//@ has - '//h3[@class="code-header"]' 'for Foo' | ||
//@ !has - '//h3[@class="code-header"]' 'for Wibble' | ||
//@ !has - '//h3[@class="code-header"]' 'for Wobble' | ||
pub use rustdoc_nonreachable_impls::Woof; | ||
|
||
//@ !has issue_31948/trait.Bar.html | ||
//@ !has issue_31948/trait.Qux.html | ||
//@ !has issue_31948/struct.Wibble.html | ||
//@ !has issue_31948/struct.Wobble.html | ||
//@ !has foobar/trait.Bar.html | ||
//@ !has foobar/trait.Qux.html | ||
//@ !has foobar/struct.Wibble.html | ||
//@ !has foobar/struct.Wobble.html |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
// https://github.com/rust-lang/rust/issues/33113 | ||
#![crate_name="foobar"] | ||
|
||
//@ aux-build:issue-33113.rs | ||
//@ build-aux-docs | ||
//@ ignore-cross-compile | ||
|
||
extern crate bar; | ||
|
||
//@ has issue_33113/trait.Bar.html | ||
//@ has foobar/trait.Bar.html | ||
//@ has - '//h3[@class="code-header"]' "for &'a char" | ||
//@ has - '//h3[@class="code-header"]' "for Foo" | ||
pub use bar::Bar; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
// https://github.com/rust-lang/rust/issues/76736 | ||
|
||
//@ aux-build:issue-76736-1.rs | ||
//@ aux-build:issue-76736-2.rs | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
// https://github.com/rust-lang/rust/issues/76736 | ||
|
||
//@ aux-build:issue-76736-1.rs | ||
//@ aux-build:issue-76736-2.rs | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
// https://github.com/rust-lang/rust/issues/76736 | ||
|
||
//@ aux-build:issue-76736-1.rs | ||
//@ aux-build:issue-76736-2.rs | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
// https://github.com/rust-lang/rust/issues/24183 | ||
#![crate_type = "lib"] | ||
#![crate_name = "usr"] | ||
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (hah, [#]108459 isn't even an issue but a PR) |
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
).