Skip to content

Commit 4ba4031

Browse files
committed
rustdoc: update test cases now that code-header is used without in-band
1 parent a7c25b2 commit 4ba4031

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+143
-143
lines changed

Diff for: src/test/rustdoc/anonymous-lifetime.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pub trait Stream {
1212
}
1313

1414
// @has 'foo/trait.Stream.html'
15-
// @has - '//*[@class="code-header in-band"]' 'impl<S: ?Sized + Stream + Unpin> Stream for &mut S'
15+
// @has - '//*[@class="code-header"]' 'impl<S: ?Sized + Stream + Unpin> Stream for &mut S'
1616
impl<S: ?Sized + Stream + Unpin> Stream for &mut S {
1717
type Item = S::Item;
1818

Diff for: src/test/rustdoc/assoc-consts.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub trait Foo {
1313
pub struct Bar;
1414

1515
impl Foo for Bar {
16-
// @has assoc_consts/struct.Bar.html '//h3[@class="code-header in-band"]' 'impl Foo for Bar'
16+
// @has assoc_consts/struct.Bar.html '//h3[@class="code-header"]' 'impl Foo for Bar'
1717
// @has - '//*[@id="associatedconstant.FOO"]' 'const FOO: usize'
1818
const FOO: usize = 12;
1919
// @has - '//*[@id="associatedconstant.FOO_NO_DEFAULT"]' 'const FOO_NO_DEFAULT: bool'
@@ -81,7 +81,7 @@ pub trait Qux {
8181
const QUX_DEFAULT2: u32 = 3;
8282
}
8383

84-
// @has assoc_consts/struct.Bar.html '//h3[@class="code-header in-band"]' 'impl Qux for Bar'
84+
// @has assoc_consts/struct.Bar.html '//h3[@class="code-header"]' 'impl Qux for Bar'
8585
impl Qux for Bar {
8686
// @has - '//*[@id="associatedconstant.QUX0"]' 'const QUX0: u8'
8787
// @has - '//*[@class="docblock"]' "Docs for QUX0 in trait."

Diff for: src/test/rustdoc/blanket-reexport-item.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#![crate_name = "foo"]
22

3-
// @has foo/struct.S.html '//*[@id="impl-Into%3CU%3E-for-S"]//h3[@class="code-header in-band"]' 'impl<T, U> Into<U> for T'
3+
// @has foo/struct.S.html '//*[@id="impl-Into%3CU%3E-for-S"]//h3[@class="code-header"]' 'impl<T, U> Into<U> for T'
44
pub struct S2 {}
55
mod m {
66
pub struct S {}

Diff for: src/test/rustdoc/const-generics/add-impl.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub struct Simd<T, const WIDTH: usize> {
77
inner: T,
88
}
99

10-
// @has foo/struct.Simd.html '//div[@id="trait-implementations-list"]//h3[@class="code-header in-band"]' 'impl Add<Simd<u8, 16>> for Simd<u8, 16>'
10+
// @has foo/struct.Simd.html '//div[@id="trait-implementations-list"]//h3[@class="code-header"]' 'impl Add<Simd<u8, 16>> for Simd<u8, 16>'
1111
impl Add for Simd<u8, 16> {
1212
type Output = Self;
1313

Diff for: src/test/rustdoc/const-generics/const-generics-docs.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ pub use extern_crate::WTrait;
1919

2020
// @has foo/trait.Trait.html '//pre[@class="rust trait"]' \
2121
// 'pub trait Trait<const N: usize>'
22-
// @has - '//*[@id="impl-Trait%3C1%3E-for-u8"]//h3[@class="code-header in-band"]' 'impl Trait<1> for u8'
23-
// @has - '//*[@id="impl-Trait%3C2%3E-for-u8"]//h3[@class="code-header in-band"]' 'impl Trait<2> for u8'
24-
// @has - '//*[@id="impl-Trait%3C{1%20+%202}%3E-for-u8"]//h3[@class="code-header in-band"]' 'impl Trait<{1 + 2}> for u8'
25-
// @has - '//*[@id="impl-Trait%3CN%3E-for-%5Bu8%3B%20N%5D"]//h3[@class="code-header in-band"]' \
22+
// @has - '//*[@id="impl-Trait%3C1%3E-for-u8"]//h3[@class="code-header"]' 'impl Trait<1> for u8'
23+
// @has - '//*[@id="impl-Trait%3C2%3E-for-u8"]//h3[@class="code-header"]' 'impl Trait<2> for u8'
24+
// @has - '//*[@id="impl-Trait%3C{1%20+%202}%3E-for-u8"]//h3[@class="code-header"]' 'impl Trait<{1 + 2}> for u8'
25+
// @has - '//*[@id="impl-Trait%3CN%3E-for-%5Bu8%3B%20N%5D"]//h3[@class="code-header"]' \
2626
// 'impl<const N: usize> Trait<N> for [u8; N]'
2727
pub trait Trait<const N: usize> {}
2828
impl Trait<1> for u8 {}
@@ -36,7 +36,7 @@ pub struct Foo<const N: usize> where u8: Trait<N>;
3636
// @has foo/struct.Bar.html '//pre[@class="rust struct"]' 'pub struct Bar<T, const N: usize>(_)'
3737
pub struct Bar<T, const N: usize>([T; N]);
3838

39-
// @has foo/struct.Foo.html '//*[@id="impl-Foo%3CM%3E"]/h3[@class="code-header in-band"]' 'impl<const M: usize> Foo<M>where u8: Trait<M>'
39+
// @has foo/struct.Foo.html '//*[@id="impl-Foo%3CM%3E"]/h3[@class="code-header"]' 'impl<const M: usize> Foo<M>where u8: Trait<M>'
4040
impl<const M: usize> Foo<M> where u8: Trait<M> {
4141
// @has - '//*[@id="associatedconstant.FOO_ASSOC"]' 'pub const FOO_ASSOC: usize'
4242
pub const FOO_ASSOC: usize = M + 13;
@@ -47,7 +47,7 @@ impl<const M: usize> Foo<M> where u8: Trait<M> {
4747
}
4848
}
4949

50-
// @has foo/struct.Bar.html '//*[@id="impl-Bar%3Cu8%2C%20M%3E"]/h3[@class="code-header in-band"]' 'impl<const M: usize> Bar<u8, M>'
50+
// @has foo/struct.Bar.html '//*[@id="impl-Bar%3Cu8%2C%20M%3E"]/h3[@class="code-header"]' 'impl<const M: usize> Bar<u8, M>'
5151
impl<const M: usize> Bar<u8, M> {
5252
// @has - '//*[@id="method.hey"]' \
5353
// 'pub fn hey<const N: usize>(&self) -> Foo<N>where u8: Trait<N>'

Diff for: src/test/rustdoc/const-generics/const-impl.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@ pub enum Order {
99
}
1010

1111
// @has foo/struct.VSet.html '//pre[@class="rust struct"]' 'pub struct VSet<T, const ORDER: Order>'
12-
// @has foo/struct.VSet.html '//*[@id="impl-Send-for-VSet%3CT%2C%20ORDER%3E"]/h3[@class="code-header in-band"]' 'impl<T, const ORDER: Order> Send for VSet<T, ORDER>'
13-
// @has foo/struct.VSet.html '//*[@id="impl-Sync-for-VSet%3CT%2C%20ORDER%3E"]/h3[@class="code-header in-band"]' 'impl<T, const ORDER: Order> Sync for VSet<T, ORDER>'
12+
// @has foo/struct.VSet.html '//*[@id="impl-Send-for-VSet%3CT%2C%20ORDER%3E"]/h3[@class="code-header"]' 'impl<T, const ORDER: Order> Send for VSet<T, ORDER>'
13+
// @has foo/struct.VSet.html '//*[@id="impl-Sync-for-VSet%3CT%2C%20ORDER%3E"]/h3[@class="code-header"]' 'impl<T, const ORDER: Order> Sync for VSet<T, ORDER>'
1414
pub struct VSet<T, const ORDER: Order> {
1515
inner: Vec<T>,
1616
}
1717

18-
// @has foo/struct.VSet.html '//*[@id="impl-VSet%3CT%2C%20{%20Order%3A%3ASorted%20}%3E"]/h3[@class="code-header in-band"]' 'impl<T> VSet<T, { Order::Sorted }>'
18+
// @has foo/struct.VSet.html '//*[@id="impl-VSet%3CT%2C%20{%20Order%3A%3ASorted%20}%3E"]/h3[@class="code-header"]' 'impl<T> VSet<T, { Order::Sorted }>'
1919
impl<T> VSet<T, { Order::Sorted }> {
2020
pub fn new() -> Self {
2121
Self { inner: Vec::new() }
2222
}
2323
}
2424

25-
// @has foo/struct.VSet.html '//*[@id="impl-VSet%3CT%2C%20{%20Order%3A%3AUnsorted%20}%3E"]/h3[@class="code-header in-band"]' 'impl<T> VSet<T, { Order::Unsorted }>'
25+
// @has foo/struct.VSet.html '//*[@id="impl-VSet%3CT%2C%20{%20Order%3A%3AUnsorted%20}%3E"]/h3[@class="code-header"]' 'impl<T> VSet<T, { Order::Unsorted }>'
2626
impl<T> VSet<T, { Order::Unsorted }> {
2727
pub fn new() -> Self {
2828
Self { inner: Vec::new() }
@@ -31,7 +31,7 @@ impl<T> VSet<T, { Order::Unsorted }> {
3131

3232
pub struct Escape<const S: &'static str>;
3333

34-
// @has foo/struct.Escape.html '//*[@id="impl-Escape%3Cr#%22%3Cscript%3Ealert(%22Escape%22)%3B%3C/script%3E%22#%3E"]/h3[@class="code-header in-band"]' 'impl Escape<r#"<script>alert("Escape");</script>"#>'
34+
// @has foo/struct.Escape.html '//*[@id="impl-Escape%3Cr#%22%3Cscript%3Ealert(%22Escape%22)%3B%3C/script%3E%22#%3E"]/h3[@class="code-header"]' 'impl Escape<r#"<script>alert("Escape");</script>"#>'
3535
impl Escape<r#"<script>alert("Escape");</script>"#> {
3636
pub fn f() {}
3737
}

Diff for: src/test/rustdoc/const-generics/lazy_normalization_consts/const-equate-pred.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pub struct Hasher<T> {
1212
unsafe impl<T: Default> Send for Hasher<T> {}
1313

1414
// @has foo/struct.Foo.html
15-
// @has - '//h3[@class="code-header in-band"]' 'impl Send for Foo'
15+
// @has - '//h3[@class="code-header"]' 'impl Send for Foo'
1616
pub struct Foo {
1717
hasher: Hasher<[u8; 3]>,
1818
}

Diff for: src/test/rustdoc/duplicate_impls/issue-33054.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// ignore-tidy-linelength
22

33
// @has issue_33054/impls/struct.Foo.html
4-
// @has - '//h3[@class="code-header in-band"]' 'impl Foo'
5-
// @has - '//h3[@class="code-header in-band"]' 'impl Bar for Foo'
4+
// @has - '//h3[@class="code-header"]' 'impl Foo'
5+
// @has - '//h3[@class="code-header"]' 'impl Bar for Foo'
66
// @count - '//*[@id="trait-implementations-list"]//*[@class="impl has-srclink"]' 1
77
// @count - '//*[@id="main-content"]/div[@id="implementations-list"]/details/summary/*[@class="impl has-srclink"]' 1
88
// @has issue_33054/impls/bar/trait.Bar.html
9-
// @has - '//h3[@class="code-header in-band"]' 'impl Bar for Foo'
9+
// @has - '//h3[@class="code-header"]' 'impl Bar for Foo'
1010
// @count - '//*[@class="struct"]' 1
1111
pub mod impls;
1212

Diff for: src/test/rustdoc/empty-impl-block.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ pub struct Another;
1616
pub trait Bar {}
1717

1818
// @has 'foo/struct.Another.html'
19-
// @has - '//h3[@class="code-header in-band"]' 'impl Bar for Another'
19+
// @has - '//h3[@class="code-header"]' 'impl Bar for Another'
2020
impl Bar for Another {}

Diff for: src/test/rustdoc/extern-impl.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ impl Foo {
1919
// @has foo/trait.Bar.html
2020
pub trait Bar {}
2121

22-
// @has - '//h3[@class="code-header in-band"]' 'impl Bar for fn()'
22+
// @has - '//h3[@class="code-header"]' 'impl Bar for fn()'
2323
impl Bar for fn() {}
24-
// @has - '//h3[@class="code-header in-band"]' 'impl Bar for extern "C" fn()'
24+
// @has - '//h3[@class="code-header"]' 'impl Bar for extern "C" fn()'
2525
impl Bar for extern fn() {}
26-
// @has - '//h3[@class="code-header in-band"]' 'impl Bar for extern "system" fn()'
26+
// @has - '//h3[@class="code-header"]' 'impl Bar for extern "system" fn()'
2727
impl Bar for extern "system" fn() {}

Diff for: src/test/rustdoc/fn-bound.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub struct ConditionalIterator<F> {
1111
}
1212

1313

14-
// @has 'fn_bound/struct.ConditionalIterator.html' '//h3[@class="code-header in-band"]' 'impl<F: Fn(&i32)> Iterator for ConditionalIterator<F>'
14+
// @has 'fn_bound/struct.ConditionalIterator.html' '//h3[@class="code-header"]' 'impl<F: Fn(&i32)> Iterator for ConditionalIterator<F>'
1515
impl<F: Fn(&i32)> Iterator for ConditionalIterator<F> {
1616
type Item = ();
1717

Diff for: src/test/rustdoc/generic-impl.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use std::fmt;
55
// @!has foo/struct.Bar.html '//*[@id="impl-ToString-for-Bar"]' ''
66
pub struct Bar;
77

8-
// @has foo/struct.Foo.html '//*[@id="impl-ToString-for-Foo"]//h3[@class="code-header in-band"]' 'impl<T> ToString for T'
8+
// @has foo/struct.Foo.html '//*[@id="impl-ToString-for-Foo"]//h3[@class="code-header"]' 'impl<T> ToString for T'
99
pub struct Foo;
1010
// @has foo/struct.Foo.html '//*[@class="sidebar-elems"]//section//a[@href="#impl-ToString-for-Foo"]' 'ToString'
1111

Diff for: src/test/rustdoc/higher-ranked-trait-bounds.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ impl<'a> Foo<'a> {
4949
// @has foo/trait.B.html
5050
pub trait B<'x> {}
5151

52-
// @has - '//h3[@class="code-header in-band"]' "impl<'a> B<'a> for dyn for<'b> Trait<'b>"
52+
// @has - '//h3[@class="code-header"]' "impl<'a> B<'a> for dyn for<'b> Trait<'b>"
5353
impl<'a> B<'a> for dyn for<'b> Trait<'b> {}
5454

5555
// @has foo/struct.Bar.html

Diff for: src/test/rustdoc/impl-disambiguation.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ pub trait Foo {}
44

55
pub struct Bar<T> { field: T }
66

7-
// @has foo/trait.Foo.html '//*[@class="item-list"]//h3[@class="code-header in-band"]' \
7+
// @has foo/trait.Foo.html '//*[@class="item-list"]//h3[@class="code-header"]' \
88
// "impl Foo for Bar<u8>"
99
impl Foo for Bar<u8> {}
10-
// @has foo/trait.Foo.html '//*[@class="item-list"]//h3[@class="code-header in-band"]' \
10+
// @has foo/trait.Foo.html '//*[@class="item-list"]//h3[@class="code-header"]' \
1111
// "impl Foo for Bar<u16>"
1212
impl Foo for Bar<u16> {}
13-
// @has foo/trait.Foo.html '//*[@class="item-list"]//h3[@class="code-header in-band"]' \
13+
// @has foo/trait.Foo.html '//*[@class="item-list"]//h3[@class="code-header"]' \
1414
// "impl<'a> Foo for &'a Bar<u8>"
1515
impl<'a> Foo for &'a Bar<u8> {}
1616

@@ -22,9 +22,9 @@ pub mod mod2 {
2222
pub enum Baz {}
2323
}
2424

25-
// @has foo/trait.Foo.html '//*[@class="item-list"]//h3[@class="code-header in-band"]' \
25+
// @has foo/trait.Foo.html '//*[@class="item-list"]//h3[@class="code-header"]' \
2626
// "impl Foo for foo::mod1::Baz"
2727
impl Foo for mod1::Baz {}
28-
// @has foo/trait.Foo.html '//*[@class="item-list"]//h3[@class="code-header in-band"]' \
28+
// @has foo/trait.Foo.html '//*[@class="item-list"]//h3[@class="code-header"]' \
2929
// "impl<'a> Foo for &'a foo::mod2::Baz"
3030
impl<'a> Foo for &'a mod2::Baz {}

Diff for: src/test/rustdoc/impl-parts.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ pub auto trait AnAutoTrait {}
55

66
pub struct Foo<T> { field: T }
77

8-
// @has impl_parts/struct.Foo.html '//*[@class="impl has-srclink"]//h3[@class="code-header in-band"]' \
8+
// @has impl_parts/struct.Foo.html '//*[@class="impl has-srclink"]//h3[@class="code-header"]' \
99
// "impl<T: Clone> !AnAutoTrait for Foo<T>where T: Sync,"
10-
// @has impl_parts/trait.AnAutoTrait.html '//*[@class="item-list"]//h3[@class="code-header in-band"]' \
10+
// @has impl_parts/trait.AnAutoTrait.html '//*[@class="item-list"]//h3[@class="code-header"]' \
1111
// "impl<T: Clone> !AnAutoTrait for Foo<T>where T: Sync,"
1212
impl<T: Clone> !AnAutoTrait for Foo<T> where T: Sync {}

Diff for: src/test/rustdoc/inline_cross/issue-31948-1.rs

+10-10
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@
55
extern crate rustdoc_nonreachable_impls;
66

77
// @has issue_31948_1/struct.Wobble.html
8-
// @has - '//*[@class="impl has-srclink"]//h3[@class="code-header in-band"]' 'Bark for'
9-
// @has - '//*[@class="impl has-srclink"]//h3[@class="code-header in-band"]' 'Woof for'
10-
// @!has - '//*[@class="impl"]//h3[@class="code-header in-band"]' 'Bar for'
11-
// @!has - '//*[@class="impl"]//h3[@class="code-header in-band"]' 'Qux for'
8+
// @has - '//*[@class="impl has-srclink"]//h3[@class="code-header"]' 'Bark for'
9+
// @has - '//*[@class="impl has-srclink"]//h3[@class="code-header"]' 'Woof for'
10+
// @!has - '//*[@class="impl"]//h3[@class="code-header"]' 'Bar for'
11+
// @!has - '//*[@class="impl"]//h3[@class="code-header"]' 'Qux for'
1212
pub use rustdoc_nonreachable_impls::hidden::Wobble;
1313

1414
// @has issue_31948_1/trait.Bark.html
15-
// @has - '//h3[@class="code-header in-band"]' 'for Foo'
16-
// @has - '//h3[@class="code-header in-band"]' 'for Wobble'
17-
// @!has - '//h3[@class="code-header in-band"]' 'for Wibble'
15+
// @has - '//h3[@class="code-header"]' 'for Foo'
16+
// @has - '//h3[@class="code-header"]' 'for Wobble'
17+
// @!has - '//h3[@class="code-header"]' 'for Wibble'
1818
pub use rustdoc_nonreachable_impls::Bark;
1919

2020
// @has issue_31948_1/trait.Woof.html
21-
// @has - '//h3[@class="code-header in-band"]' 'for Foo'
22-
// @has - '//h3[@class="code-header in-band"]' 'for Wobble'
23-
// @!has - '//h3[@class="code-header in-band"]' 'for Wibble'
21+
// @has - '//h3[@class="code-header"]' 'for Foo'
22+
// @has - '//h3[@class="code-header"]' 'for Wobble'
23+
// @!has - '//h3[@class="code-header"]' 'for Wibble'
2424
pub use rustdoc_nonreachable_impls::Woof;
2525

2626
// @!has issue_31948_1/trait.Bar.html

Diff for: src/test/rustdoc/inline_cross/issue-31948-2.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
extern crate rustdoc_nonreachable_impls;
66

77
// @has issue_31948_2/struct.Wobble.html
8-
// @has - '//*[@class="impl has-srclink"]//h3[@class="code-header in-band"]' 'Qux for'
9-
// @has - '//*[@class="impl has-srclink"]//h3[@class="code-header in-band"]' 'Bark for'
10-
// @has - '//*[@class="impl has-srclink"]//h3[@class="code-header in-band"]' 'Woof for'
11-
// @!has - '//*[@class="impl"]//h3[@class="code-header in-band"]' 'Bar for'
8+
// @has - '//*[@class="impl has-srclink"]//h3[@class="code-header"]' 'Qux for'
9+
// @has - '//*[@class="impl has-srclink"]//h3[@class="code-header"]' 'Bark for'
10+
// @has - '//*[@class="impl has-srclink"]//h3[@class="code-header"]' 'Woof for'
11+
// @!has - '//*[@class="impl"]//h3[@class="code-header"]' 'Bar for'
1212
pub use rustdoc_nonreachable_impls::hidden::Wobble;
1313

1414
// @has issue_31948_2/trait.Qux.html
15-
// @has - '//h3[@class="code-header in-band"]' 'for Foo'
16-
// @has - '//h3[@class="code-header in-band"]' 'for Wobble'
15+
// @has - '//h3[@class="code-header"]' 'for Foo'
16+
// @has - '//h3[@class="code-header"]' 'for Wobble'
1717
pub use rustdoc_nonreachable_impls::hidden::Qux;
1818

1919
// @!has issue_31948_2/trait.Bar.html

Diff for: src/test/rustdoc/inline_cross/issue-31948.rs

+10-10
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@
55
extern crate rustdoc_nonreachable_impls;
66

77
// @has issue_31948/struct.Foo.html
8-
// @has - '//*[@class="impl has-srclink"]//h3[@class="code-header in-band"]' 'Bark for'
9-
// @has - '//*[@class="impl has-srclink"]//h3[@class="code-header in-band"]' 'Woof for'
10-
// @!has - '//*[@class="impl has-srclink"]//h3[@class="code-header in-band"]' 'Bar for'
11-
// @!has - '//*[@class="impl"]//h3[@class="code-header in-band"]' 'Qux for'
8+
// @has - '//*[@class="impl has-srclink"]//h3[@class="code-header"]' 'Bark for'
9+
// @has - '//*[@class="impl has-srclink"]//h3[@class="code-header"]' 'Woof for'
10+
// @!has - '//*[@class="impl has-srclink"]//h3[@class="code-header"]' 'Bar for'
11+
// @!has - '//*[@class="impl"]//h3[@class="code-header"]' 'Qux for'
1212
pub use rustdoc_nonreachable_impls::Foo;
1313

1414
// @has issue_31948/trait.Bark.html
15-
// @has - '//h3[@class="code-header in-band"]' 'for Foo'
16-
// @!has - '//h3[@class="code-header in-band"]' 'for Wibble'
17-
// @!has - '//h3[@class="code-header in-band"]' 'for Wobble'
15+
// @has - '//h3[@class="code-header"]' 'for Foo'
16+
// @!has - '//h3[@class="code-header"]' 'for Wibble'
17+
// @!has - '//h3[@class="code-header"]' 'for Wobble'
1818
pub use rustdoc_nonreachable_impls::Bark;
1919

2020
// @has issue_31948/trait.Woof.html
21-
// @has - '//h3[@class="code-header in-band"]' 'for Foo'
22-
// @!has - '//h3[@class="code-header in-band"]' 'for Wibble'
23-
// @!has - '//h3[@class="code-header in-band"]' 'for Wobble'
21+
// @has - '//h3[@class="code-header"]' 'for Foo'
22+
// @!has - '//h3[@class="code-header"]' 'for Wibble'
23+
// @!has - '//h3[@class="code-header"]' 'for Wobble'
2424
pub use rustdoc_nonreachable_impls::Woof;
2525

2626
// @!has issue_31948/trait.Bar.html

Diff for: src/test/rustdoc/inline_cross/issue-32881.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
extern crate rustdoc_trait_object_impl;
66

77
// @has issue_32881/trait.Bar.html
8-
// @has - '//h3[@class="code-header in-band"]' "impl<'a> dyn Bar"
9-
// @has - '//h3[@class="code-header in-band"]' "impl<'a> Debug for dyn Bar"
8+
// @has - '//h3[@class="code-header"]' "impl<'a> dyn Bar"
9+
// @has - '//h3[@class="code-header"]' "impl<'a> Debug for dyn Bar"
1010

1111
pub use rustdoc_trait_object_impl::Bar;

Diff for: src/test/rustdoc/inline_cross/issue-33113.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
extern crate bar;
66

77
// @has issue_33113/trait.Bar.html
8-
// @has - '//h3[@class="code-header in-band"]' "for &'a char"
9-
// @has - '//h3[@class="code-header in-band"]' "for Foo"
8+
// @has - '//h3[@class="code-header"]' "for &'a char"
9+
// @has - '//h3[@class="code-header"]' "for Foo"
1010
pub use bar::Bar;

Diff for: src/test/rustdoc/inline_cross/trait-vis.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
extern crate inner;
44

55
// @has trait_vis/struct.SomeStruct.html
6-
// @has - '//h3[@class="code-header in-band"]' 'impl Clone for SomeStruct'
6+
// @has - '//h3[@class="code-header"]' 'impl Clone for SomeStruct'
77
pub use inner::SomeStruct;

Diff for: src/test/rustdoc/inline_local/trait-vis.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ mod asdf {
1313
}
1414

1515
// @has trait_vis/struct.SomeStruct.html
16-
// @has - '//h3[@class="code-header in-band"]' 'impl ThisTrait for SomeStruct'
17-
// @!has - '//h3[@class="code-header in-band"]' 'impl PrivateTrait for SomeStruct'
16+
// @has - '//h3[@class="code-header"]' 'impl ThisTrait for SomeStruct'
17+
// @!has - '//h3[@class="code-header"]' 'impl PrivateTrait for SomeStruct'
1818
pub use asdf::SomeStruct;

Diff for: src/test/rustdoc/issue-29503.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pub trait MyTrait {
55
fn my_string(&self) -> String;
66
}
77

8-
// @has - "//div[@id='implementors-list']//*[@id='impl-MyTrait-for-T']//h3[@class='code-header in-band']" "impl<T> MyTrait for Twhere T: Debug"
8+
// @has - "//div[@id='implementors-list']//*[@id='impl-MyTrait-for-T']//h3[@class='code-header']" "impl<T> MyTrait for Twhere T: Debug"
99
impl<T> MyTrait for T
1010
where
1111
T: fmt::Debug,

Diff for: src/test/rustdoc/issue-33592.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ pub struct Bar;
66

77
pub struct Baz;
88

9-
// @has foo/trait.Foo.html '//h3[@class="code-header in-band"]' 'impl Foo<i32> for Bar'
9+
// @has foo/trait.Foo.html '//h3[@class="code-header"]' 'impl Foo<i32> for Bar'
1010
impl Foo<i32> for Bar {}
1111

12-
// @has foo/trait.Foo.html '//h3[@class="code-header in-band"]' 'impl<T> Foo<T> for Baz'
12+
// @has foo/trait.Foo.html '//h3[@class="code-header"]' 'impl<T> Foo<T> for Baz'
1313
impl<T> Foo<T> for Baz {}

Diff for: src/test/rustdoc/issue-46727.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
extern crate issue_46727;
44

55
// @has issue_46727/trait.Foo.html
6-
// @has - '//h3[@class="code-header in-band"]' 'impl<T> Foo for Bar<[T; 3]>'
6+
// @has - '//h3[@class="code-header"]' 'impl<T> Foo for Bar<[T; 3]>'
77
pub use issue_46727::{Foo, Bar};

Diff for: src/test/rustdoc/issue-50159.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ impl<B, C> Signal2 for B where B: Signal<Item = C> {
1111
}
1212

1313
// @has issue_50159/struct.Switch.html
14-
// @has - '//h3[@class="code-header in-band"]' 'impl<B> Send for Switch<B>where <B as Signal>::Item: Send'
15-
// @has - '//h3[@class="code-header in-band"]' 'impl<B> Sync for Switch<B>where <B as Signal>::Item: Sync'
14+
// @has - '//h3[@class="code-header"]' 'impl<B> Send for Switch<B>where <B as Signal>::Item: Send'
15+
// @has - '//h3[@class="code-header"]' 'impl<B> Sync for Switch<B>where <B as Signal>::Item: Sync'
1616
// @count - '//*[@id="implementations-list"]//*[@class="impl"]' 0
1717
// @count - '//*[@id="synthetic-implementations-list"]//*[@class="impl has-srclink"]' 5
1818
pub struct Switch<B: Signal> {

Diff for: src/test/rustdoc/issue-51236.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub mod traits {
77
}
88

99
// @has issue_51236/struct.Owned.html
10-
// @has - '//*[@id="synthetic-implementations-list"]//*[@class="impl has-srclink"]//h3[@class="code-header in-band"]' \
10+
// @has - '//*[@id="synthetic-implementations-list"]//*[@class="impl has-srclink"]//h3[@class="code-header"]' \
1111
// "impl<T> Send for Owned<T>where <T as Owned<'static>>::Reader: Send"
1212
pub struct Owned<T> where T: for<'a> ::traits::Owned<'a> {
1313
marker: PhantomData<<T as ::traits::Owned<'static>>::Reader>,

0 commit comments

Comments
 (0)