Skip to content
Prev Previous commit
Next Next commit
Update the remaining rustdoc tests with code-header
  • Loading branch information
notriddle committed Jul 24, 2021
commit 07667f9c5e81c0015741e7ad2cb315084ff8c366
2 changes: 1 addition & 1 deletion src/test/rustdoc/const-generics/add-impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub struct Simd<T, const WIDTH: usize> {
inner: T,
}

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

Expand Down
12 changes: 6 additions & 6 deletions src/test/rustdoc/const-generics/const-generics-docs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ pub use extern_crate::WTrait;

// @has foo/trait.Trait.html '//pre[@class="rust trait"]' \
// 'pub trait Trait<const N: usize>'
// @has - '//*[@id="impl-Trait%3C1_usize%3E-for-u8"]//h3' 'impl Trait<1_usize> for u8'
// @has - '//*[@id="impl-Trait%3C2_usize%3E-for-u8"]//h3' 'impl Trait<2_usize> for u8'
// @has - '//*[@id="impl-Trait%3C{1%20+%202}%3E-for-u8"]//h3' 'impl Trait<{1 + 2}> for u8'
// @has - '//*[@id="impl-Trait%3CN%3E-for-%5Bu8%3B%20N%5D"]//h3' \
// @has - '//*[@id="impl-Trait%3C1_usize%3E-for-u8"]//h3[@class="code-header in-band"]' 'impl Trait<1_usize> for u8'
// @has - '//*[@id="impl-Trait%3C2_usize%3E-for-u8"]//h3[@class="code-header in-band"]' 'impl Trait<2_usize> for u8'
// @has - '//*[@id="impl-Trait%3C{1%20+%202}%3E-for-u8"]//h3[@class="code-header in-band"]' 'impl Trait<{1 + 2}> for u8'
// @has - '//*[@id="impl-Trait%3CN%3E-for-%5Bu8%3B%20N%5D"]//h3[@class="code-header in-band"]' \
// 'impl<const N: usize> Trait<N> for [u8; N]'
pub trait Trait<const N: usize> {}
impl Trait<1> for u8 {}
Expand All @@ -36,7 +36,7 @@ pub struct Foo<const N: usize> where u8: Trait<N>;
// @has foo/struct.Bar.html '//pre[@class="rust struct"]' 'pub struct Bar<T, const N: usize>(_)'
pub struct Bar<T, const N: usize>([T; N]);

// @has foo/struct.Foo.html '//div[@id="impl"]/h3' 'impl<const M: usize> Foo<M> where u8: Trait<M>'
// @has foo/struct.Foo.html '//div[@id="impl"]/h3[@class="code-header in-band"]' 'impl<const M: usize> Foo<M> where u8: Trait<M>'
impl<const M: usize> Foo<M> where u8: Trait<M> {
// @has - '//*[@id="associatedconstant.FOO_ASSOC"]' 'pub const FOO_ASSOC: usize'
pub const FOO_ASSOC: usize = M + 13;
Expand All @@ -47,7 +47,7 @@ impl<const M: usize> Foo<M> where u8: Trait<M> {
}
}

// @has foo/struct.Bar.html '//div[@id="impl"]/h3' 'impl<const M: usize> Bar<u8, M>'
// @has foo/struct.Bar.html '//div[@id="impl"]/h3[@class="code-header in-band"]' 'impl<const M: usize> Bar<u8, M>'
impl<const M: usize> Bar<u8, M> {
// @has - '//*[@id="method.hey"]' \
// 'pub fn hey<const N: usize>(&self) -> Foo<N> where u8: Trait<N>'
Expand Down
10 changes: 5 additions & 5 deletions src/test/rustdoc/const-generics/const-impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@ pub enum Order {
}

// @has foo/struct.VSet.html '//pre[@class="rust struct"]' 'pub struct VSet<T, const ORDER: Order>'
// @has foo/struct.VSet.html '//div[@id="impl-Send"]/h3' 'impl<T, const ORDER: Order> Send for VSet<T, ORDER>'
// @has foo/struct.VSet.html '//div[@id="impl-Sync"]/h3' 'impl<T, const ORDER: Order> Sync for VSet<T, ORDER>'
// @has foo/struct.VSet.html '//div[@id="impl-Send"]/h3[@class="code-header in-band"]' 'impl<T, const ORDER: Order> Send for VSet<T, ORDER>'
// @has foo/struct.VSet.html '//div[@id="impl-Sync"]/h3[@class="code-header in-band"]' 'impl<T, const ORDER: Order> Sync for VSet<T, ORDER>'
pub struct VSet<T, const ORDER: Order> {
inner: Vec<T>,
}

// @has foo/struct.VSet.html '//div[@id="impl"]/h3' 'impl<T> VSet<T, {Order::Sorted}>'
// @has foo/struct.VSet.html '//div[@id="impl"]/h3[@class="code-header in-band"]' 'impl<T> VSet<T, {Order::Sorted}>'
impl <T> VSet<T, {Order::Sorted}> {
pub fn new() -> Self {
Self { inner: Vec::new() }
}
}

// @has foo/struct.VSet.html '//div[@id="impl-1"]/h3' 'impl<T> VSet<T, {Order::Unsorted}>'
// @has foo/struct.VSet.html '//div[@id="impl-1"]/h3[@class="code-header in-band"]' 'impl<T> VSet<T, {Order::Unsorted}>'
impl <T> VSet<T, {Order::Unsorted}> {
pub fn new() -> Self {
Self { inner: Vec::new() }
Expand All @@ -31,7 +31,7 @@ impl <T> VSet<T, {Order::Unsorted}> {

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

// @has foo/struct.Escape.html '//div[@id="impl"]/h3' 'impl Escape<{ r#"<script>alert("Escape");</script>"# }>'
// @has foo/struct.Escape.html '//div[@id="impl"]/h3[@class="code-header in-band"]' 'impl Escape<{ r#"<script>alert("Escape");</script>"# }>'
impl Escape<{ r#"<script>alert("Escape");</script>"# }> {
pub fn f() {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub struct Hasher<T> {
unsafe impl<T: Default> Send for Hasher<T> {}

// @has foo/struct.Foo.html
// @has - '//h3' 'impl Send for Foo'
// @has - '//h3[@class="code-header in-band"]' 'impl Send for Foo'
pub struct Foo {
hasher: Hasher<[u8; 3]>,
}
2 changes: 1 addition & 1 deletion src/test/rustdoc/const.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
pub struct Foo;

impl Foo {
// @has const/struct.Foo.html '//*[@id="method.new"]//h4' 'const unsafe fn new'
// @has const/struct.Foo.html '//*[@id="method.new"]//h4[@class="code-header"]' 'const unsafe fn new'
pub const unsafe fn new() -> Foo {
Foo
}
Expand Down
6 changes: 3 additions & 3 deletions src/test/rustdoc/duplicate_impls/issue-33054.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// @has issue_33054/impls/struct.Foo.html
// @has - '//h3' 'impl Foo'
// @has - '//h3' 'impl Bar for Foo'
// @has - '//h3[@class="code-header in-band"]' 'impl Foo'
// @has - '//h3[@class="code-header in-band"]' 'impl Bar for Foo'
// @count - '//*[@id="trait-implementations-list"]//*[@class="impl has-srclink"]' 1
// @count - '//*[@id="main"]/details/summary/*[@class="impl has-srclink"]' 1
// @has issue_33054/impls/bar/trait.Bar.html
// @has - '//h3' 'impl Bar for Foo'
// @has - '//h3[@class="code-header in-band"]' 'impl Bar for Foo'
// @count - '//*[@class="struct"]' 1
pub mod impls;

Expand Down
4 changes: 2 additions & 2 deletions src/test/rustdoc/extern-impl-trait.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

extern crate extern_impl_trait;

// @has 'foo/struct.X.html' '//h4' "impl Foo<Associated = ()> + 'a"
// @has 'foo/struct.X.html' '//h4[@class="code-header"]' "impl Foo<Associated = ()> + 'a"
pub use extern_impl_trait::X;

// @has 'foo/struct.Y.html' '//h4' "impl ?Sized + Foo<Associated = ()> + 'a"
// @has 'foo/struct.Y.html' '//h4[@class="code-header"]' "impl ?Sized + Foo<Associated = ()> + 'a"
pub use extern_impl_trait::Y;
16 changes: 8 additions & 8 deletions src/test/rustdoc/extern-impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,24 @@
pub struct Foo;

impl Foo {
// @has - '//h4' 'fn rust0()'
// @has - '//h4[@class="code-header"]' 'fn rust0()'
pub fn rust0() {}
// @has - '//h4' 'fn rust1()'
// @has - '//h4[@class="code-header"]' 'fn rust1()'
pub extern "Rust" fn rust1() {}
// @has - '//h4' 'extern "C" fn c0()'
// @has - '//h4[@class="code-header"]' 'extern "C" fn c0()'
pub extern fn c0() {}
// @has - '//h4' 'extern "C" fn c1()'
// @has - '//h4[@class="code-header"]' 'extern "C" fn c1()'
pub extern "C" fn c1() {}
// @has - '//h4' 'extern "system" fn system0()'
// @has - '//h4[@class="code-header"]' 'extern "system" fn system0()'
pub extern "system" fn system0() {}
}

// @has foo/trait.Bar.html
pub trait Bar {}

// @has - '//h3' 'impl Bar for fn()'
// @has - '//h3[@class="code-header in-band"]' 'impl Bar for fn()'
impl Bar for fn() {}
// @has - '//h3' 'impl Bar for extern "C" fn()'
// @has - '//h3[@class="code-header in-band"]' 'impl Bar for extern "C" fn()'
impl Bar for extern fn() {}
// @has - '//h3' 'impl Bar for extern "system" fn()'
// @has - '//h3[@class="code-header in-band"]' 'impl Bar for extern "system" fn()'
impl Bar for extern "system" fn() {}
8 changes: 4 additions & 4 deletions src/test/rustdoc/extern-method.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
extern crate rustdoc_extern_method as foo;

// @has extern_method/trait.Foo.html //pre "pub trait Foo"
// @has - '//*[@id="tymethod.foo"]//h4' 'extern "rust-call" fn foo'
// @has - '//*[@id="method.foo_"]//h4' 'extern "rust-call" fn foo_'
// @has - '//*[@id="tymethod.foo"]//h4[@class="code-header"]' 'extern "rust-call" fn foo'
// @has - '//*[@id="method.foo_"]//h4[@class="code-header"]' 'extern "rust-call" fn foo_'
pub use foo::Foo;

// @has extern_method/trait.Bar.html //pre "pub trait Bar"
pub trait Bar {
// @has - '//*[@id="tymethod.bar"]//h4' 'extern "rust-call" fn bar'
// @has - '//*[@id="tymethod.bar"]//h4[@class="code-header"]' 'extern "rust-call" fn bar'
extern "rust-call" fn bar(&self, _: ());
// @has - '//*[@id="method.bar_"]//h4' 'extern "rust-call" fn bar_'
// @has - '//*[@id="method.bar_"]//h4[@class="code-header"]' 'extern "rust-call" fn bar_'
extern "rust-call" fn bar_(&self, _: ()) { }
}
4 changes: 2 additions & 2 deletions src/test/rustdoc/generic-impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

use std::fmt;

// @!has foo/struct.Bar.html '//div[@id="impl-ToString"]//h3' 'impl<T> ToString for T'
// @!has foo/struct.Bar.html '//div[@id="impl-ToString"]//h3[@class="code-header in-band"]' 'impl<T> ToString for T'
pub struct Bar;

// @has foo/struct.Foo.html '//div[@id="impl-ToString"]//h3' 'impl<T> ToString for T'
// @has foo/struct.Foo.html '//div[@id="impl-ToString"]//h3[@class="code-header in-band"]' 'impl<T> ToString for T'
pub struct Foo;
// @has foo/struct.Foo.html '//div[@class="sidebar-links"]/a[@href="#impl-ToString"]' 'ToString'

Expand Down
2 changes: 1 addition & 1 deletion src/test/rustdoc/higher-ranked-trait-bounds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pub struct Foo<'a> {
// @has - '//span[@id="structfield.some_trait"]' "some_trait: &'a dyn for<'b> Trait<'b>"

impl<'a> Foo<'a> {
// @has - '//h4' "pub fn bar<T>() where T: Trait<'a>,"
// @has - '//h4[@class="code-header"]' "pub fn bar<T>() where T: Trait<'a>,"
pub fn bar<T>()
where
T: Trait<'a>,
Expand Down
10 changes: 5 additions & 5 deletions src/test/rustdoc/impl-disambiguation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ pub trait Foo {}

pub struct Bar<T> { field: T }

// @has foo/trait.Foo.html '//*[@class="item-list"]//h3' \
// @has foo/trait.Foo.html '//*[@class="item-list"]//h3[@class="code-header in-band"]' \
// "impl Foo for Bar<u8>"
impl Foo for Bar<u8> {}
// @has foo/trait.Foo.html '//*[@class="item-list"]//h3' \
// @has foo/trait.Foo.html '//*[@class="item-list"]//h3[@class="code-header in-band"]' \
// "impl Foo for Bar<u16>"
impl Foo for Bar<u16> {}
// @has foo/trait.Foo.html '//*[@class="item-list"]//h3' \
// @has foo/trait.Foo.html '//*[@class="item-list"]//h3[@class="code-header in-band"]' \
// "impl<'a> Foo for &'a Bar<u8>"
impl<'a> Foo for &'a Bar<u8> {}

Expand All @@ -22,9 +22,9 @@ pub mod mod2 {
pub enum Baz {}
}

// @has foo/trait.Foo.html '//*[@class="item-list"]//h3' \
// @has foo/trait.Foo.html '//*[@class="item-list"]//h3[@class="code-header in-band"]' \
// "impl Foo for foo::mod1::Baz"
impl Foo for mod1::Baz {}
// @has foo/trait.Foo.html '//*[@class="item-list"]//h3' \
// @has foo/trait.Foo.html '//*[@class="item-list"]//h3[@class="code-header in-band"]' \
// "impl<'a> Foo for &'a foo::mod2::Baz"
impl<'a> Foo for &'a mod2::Baz {}
4 changes: 2 additions & 2 deletions src/test/rustdoc/impl-parts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ pub auto trait AnAutoTrait {}

pub struct Foo<T> { field: T }

// @has impl_parts/struct.Foo.html '//*[@class="impl has-srclink"]//h3' \
// @has impl_parts/struct.Foo.html '//*[@class="impl has-srclink"]//h3[@class="code-header in-band"]' \
// "impl<T: Clone> !AnAutoTrait for Foo<T> where T: Sync,"
// @has impl_parts/trait.AnAutoTrait.html '//*[@class="item-list"]//h3' \
// @has impl_parts/trait.AnAutoTrait.html '//*[@class="item-list"]//h3[@class="code-header in-band"]' \
// "impl<T: Clone> !AnAutoTrait for Foo<T> where T: Sync,"
impl<T: Clone> !AnAutoTrait for Foo<T> where T: Sync {}
4 changes: 2 additions & 2 deletions src/test/rustdoc/inline_cross/impl_trait.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ pub use impl_trait_aux::func4;
pub use impl_trait_aux::async_fn;

// @has impl_trait/struct.Foo.html
// @has - '//*[@id="method.method"]//h4' "pub fn method<'a>(_x: impl Clone + Into<Vec<u8, Global>> + 'a)"
// @!has - '//*[@id="method.method"]//h4' 'where'
// @has - '//*[@id="method.method"]//h4[@class="code-header"]' "pub fn method<'a>(_x: impl Clone + Into<Vec<u8, Global>> + 'a)"
// @!has - '//*[@id="method.method"]//h4[@class="code-header"]' 'where'
pub use impl_trait_aux::Foo;

// @has impl_trait/struct.Bar.html
Expand Down
20 changes: 10 additions & 10 deletions src/test/rustdoc/inline_cross/issue-31948-1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@
extern crate rustdoc_nonreachable_impls;

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

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

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

// @!has issue_31948_1/trait.Bar.html
Expand Down
12 changes: 6 additions & 6 deletions src/test/rustdoc/inline_cross/issue-31948-2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
extern crate rustdoc_nonreachable_impls;

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

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

// @!has issue_31948_2/trait.Bar.html
Expand Down
20 changes: 10 additions & 10 deletions src/test/rustdoc/inline_cross/issue-31948.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@
extern crate rustdoc_nonreachable_impls;

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

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

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

// @!has issue_31948/trait.Bar.html
Expand Down
4 changes: 2 additions & 2 deletions src/test/rustdoc/inline_cross/issue-32881.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
extern crate rustdoc_trait_object_impl;

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

pub use rustdoc_trait_object_impl::Bar;
4 changes: 2 additions & 2 deletions src/test/rustdoc/inline_cross/issue-33113.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
extern crate bar;

// @has issue_33113/trait.Bar.html
// @has - '//h3' "for &'a char"
// @has - '//h3' "for Foo"
// @has - '//h3[@class="code-header in-band"]' "for &'a char"
// @has - '//h3[@class="code-header in-band"]' "for Foo"
pub use bar::Bar;
2 changes: 1 addition & 1 deletion src/test/rustdoc/inline_cross/trait-vis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
extern crate inner;

// @has trait_vis/struct.SomeStruct.html
// @has - '//h3' 'impl Clone for SomeStruct'
// @has - '//h3[@class="code-header in-band"]' 'impl Clone for SomeStruct'
pub use inner::SomeStruct;
4 changes: 2 additions & 2 deletions src/test/rustdoc/inline_local/trait-vis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ mod asdf {
}

// @has trait_vis/struct.SomeStruct.html
// @has - '//h3' 'impl ThisTrait for SomeStruct'
// @!has - '//h3' 'impl PrivateTrait for SomeStruct'
// @has - '//h3[@class="code-header in-band"]' 'impl ThisTrait for SomeStruct'
// @!has - '//h3[@class="code-header in-band"]' 'impl PrivateTrait for SomeStruct'
pub use asdf::SomeStruct;
4 changes: 2 additions & 2 deletions src/test/rustdoc/issue-19190.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ impl Deref for Bar {
}

// @has issue_19190/struct.Bar.html
// @has - '//*[@id="method.foo"]//h4' 'fn foo(&self)'
// @has - '//*[@id="method.foo"]//h4[@class="code-header"]' 'fn foo(&self)'
// @has - '//*[@id="method.foo"]' 'fn foo(&self)'
// @!has - '//*[@id="method.static_foo"]//h4' 'fn static_foo()'
// @!has - '//*[@id="method.static_foo"]//h4[@class="code-header"]' 'fn static_foo()'
// @!has - '//*[@id="method.static_foo"]' 'fn static_foo()'
Loading