Skip to content

Commit 8914ca7

Browse files
Rollup merge of #119561 - notriddle:master, r=fmease
rustdoc: rename `issue-\d+.rs` tests to have meaningful names (part 5) Follow up * #116214 * #116432 * #116824 * #118105
2 parents 2730354 + a704e21 commit 8914ca7

25 files changed

+116
-56
lines changed

tests/rustdoc/issue-52873.rs renamed to tests/rustdoc-ui/ice-blanket-impl-52873.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// check-pass
2+
// https://github.com/rust-lang/rust/issues/52873
3+
#![crate_name="foo"]
4+
15
// Regression test for #52873. We used to ICE due to unexpected
26
// overflows when checking for "blanket impl inclusion".
37

tests/rustdoc/issue-55001.rs renamed to tests/rustdoc-ui/ice-blanket-impl-selection-55001.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// check-pass
2+
// https://github.com/rust-lang/rust/issues/55001
3+
#![crate_name="foo"]
4+
15
// Regression test for issue #55001. Previously, we would incorrectly
26
// cache certain trait selection results when checking for blanket impls,
37
// resulting in an ICE when we tried to confirm the cached ParamCandidate

tests/rustdoc/issue-50159.rs renamed to tests/rustdoc/auto-trait-bounds-by-associated-type-50159.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// https://github.com/rust-lang/rust/issues/50159
2+
#![crate_name="foo"]
3+
14
pub trait Signal {
25
type Item;
36
}
@@ -10,7 +13,7 @@ impl<B, C> Signal2 for B where B: Signal<Item = C> {
1013
type Item2 = C;
1114
}
1215

13-
// @has issue_50159/struct.Switch.html
16+
// @has foo/struct.Switch.html
1417
// @has - '//h3[@class="code-header"]' 'impl<B> Send for Switch<B>where <B as Signal>::Item: Send'
1518
// @has - '//h3[@class="code-header"]' 'impl<B> Sync for Switch<B>where <B as Signal>::Item: Sync'
1619
// @count - '//*[@id="implementations-list"]//*[@class="impl"]' 0

tests/rustdoc/issue-54705.rs renamed to tests/rustdoc/auto-trait-bounds-inference-variables-54705.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
// https://github.com/rust-lang/rust/issues/54705
2+
#![crate_name="foo"]
3+
14
pub trait ScopeHandle<'scope> {}
25

3-
// @has issue_54705/struct.ScopeFutureContents.html
6+
// @has foo/struct.ScopeFutureContents.html
47
// @has - '//*[@id="synthetic-implementations-list"]//*[@class="impl"]//h3[@class="code-header"]' \
58
// "impl<'scope, S> Send for ScopeFutureContents<'scope, S>where S: Sync"
69
//

tests/rustdoc/issue-51236.rs renamed to tests/rustdoc/auto-trait-bounds-where-51236.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// https://github.com/rust-lang/rust/issues/51236
2+
#![crate_name="foo"]
3+
14
use std::marker::PhantomData;
25

36
pub mod traits {
@@ -6,7 +9,7 @@ pub mod traits {
69
}
710
}
811

9-
// @has issue_51236/struct.Owned.html
12+
// @has foo/struct.Owned.html
1013
// @has - '//*[@id="synthetic-implementations-list"]//*[@class="impl"]//h3[@class="code-header"]' \
1114
// "impl<T> Send for Owned<T>where <T as Owned<'static>>::Reader: Send"
1215
pub struct Owned<T> where T: for<'a> ::traits::Owned<'a> {

tests/rustdoc/issue-55321.rs renamed to tests/rustdoc/auto-trait-negative-impl-55321.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
// https://github.com/rust-lang/rust/issues/55321
2+
#![crate_name="foo"]
3+
14
#![feature(negative_impls)]
25

3-
// @has issue_55321/struct.A.html
6+
// @has foo/struct.A.html
47
// @has - '//*[@id="trait-implementations-list"]//*[@class="impl"]//h3[@class="code-header"]' \
58
// "impl !Send for A"
69
// @has - '//*[@id="trait-implementations-list"]//*[@class="impl"]//h3[@class="code-header"]' \
@@ -10,7 +13,7 @@ pub struct A();
1013
impl !Send for A {}
1114
impl !Sync for A {}
1215

13-
// @has issue_55321/struct.B.html
16+
// @has foo/struct.B.html
1417
// @has - '//*[@id="synthetic-implementations-list"]//*[@class="impl"]//h3[@class="code-header"]' \
1518
// "impl<T> !Send for B<T>"
1619
// @has - '//*[@id="synthetic-implementations-list"]//*[@class="impl"]//h3[@class="code-header"]' \
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// https://github.com/rust-lang/rust/issues/47197
2+
#![crate_name="foo"]
3+
4+
// @has foo/fn.whose_woods_these_are_i_think_i_know.html
5+
6+
/**
7+
* snow
8+
9+
* ice
10+
*/
11+
pub fn whose_woods_these_are_i_think_i_know() {}

tests/rustdoc/issue-54478-demo-allocator.rs renamed to tests/rustdoc/demo-allocator-54478.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// https://github.com/rust-lang/rust/issues/54478
2+
#![crate_name="foo"]
3+
14
// Issue #54478: regression test showing that we can demonstrate
25
// `#[global_allocator]` in code blocks built by `rustdoc`.
36
//

tests/rustdoc/issue-35169-2.rs renamed to tests/rustdoc/deref-mut-35169-2.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// https://github.com/rust-lang/rust/issues/35169
2+
#![crate_name="foo"]
3+
14
use std::ops::Deref;
25
use std::ops::DerefMut;
36

@@ -23,7 +26,7 @@ impl DerefMut for Bar {
2326
fn deref_mut(&mut self) -> &mut Foo { loop {} }
2427
}
2528

26-
// @has issue_35169_2/struct.Bar.html
29+
// @has foo/struct.Bar.html
2730
// @has - '//*[@id="method.by_ref"]//h4[@class="code-header"]' 'fn by_ref(&self)'
2831
// @has - '//*[@id="method.by_ref"]' 'fn by_ref(&self)'
2932
// @has - '//*[@id="method.by_explicit_ref"]//h4[@class="code-header"]' 'fn by_explicit_ref(self: &Foo)'

tests/rustdoc/issue-35169.rs renamed to tests/rustdoc/deref-mut-35169.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// https://github.com/rust-lang/rust/issues/35169
2+
#![crate_name="foo"]
3+
14
use std::ops::Deref;
25

36
pub struct Foo;
@@ -18,7 +21,7 @@ impl Deref for Bar {
1821
fn deref(&self) -> &Foo { loop {} }
1922
}
2023

21-
// @has issue_35169/struct.Bar.html
24+
// @has foo/struct.Bar.html
2225
// @has - '//*[@id="method.by_ref"]//h4[@class="code-header"]' 'fn by_ref(&self)'
2326
// @has - '//*[@id="method.by_ref"]' 'fn by_ref(&self)'
2427
// @has - '//*[@id="method.by_explicit_ref"]//h4[@class="code-header"]' 'fn by_explicit_ref(self: &Foo)'

0 commit comments

Comments
 (0)