Skip to content

Commit f7656b6

Browse files
Update tests
1 parent 145ae1b commit f7656b6

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

src/test/rustdoc/assoc-consts.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,5 +95,5 @@ impl Qux for Bar {
9595
/// Docs for QUX_DEFAULT1 in impl.
9696
const QUX_DEFAULT1: i16 = 7;
9797
// @has - '//*[@id="associatedconstant.QUX_DEFAULT2"]' 'const QUX_DEFAULT2: u32'
98-
// @has - '//*[@class="docblock"]' "Docs for QUX_DEFAULT2 in trait."
98+
// @has - '//*[@class="docblock hidden"]' "Docs for QUX_DEFAULT2 in trait."
9999
}

src/test/rustdoc/inline_cross/assoc-items.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ extern crate assoc_items;
1616
// @has - '//*[@id="associatedconstant.ConstNoDefault"]' 'const ConstNoDefault: i16'
1717
// @has - '//*[@class="docblock"]' 'dox for ConstNoDefault'
1818
// @has - '//*[@id="associatedconstant.ConstWithDefault"]' 'const ConstWithDefault: u16'
19-
// @has - '//*[@class="docblock"]' 'docs for ConstWithDefault'
19+
// @has - '//*[@class="docblock hidden"]' 'docs for ConstWithDefault'
2020
// @has - '//*[@id="associatedtype.TypeNoDefault"]' 'type TypeNoDefault = i32'
2121
// @has - '//*[@class="docblock"]' 'dox for TypeNoDefault'
2222
// @has - '//*[@id="associatedtype.TypeWithDefault"]' 'type TypeWithDefault = u32'
23-
// @has - '//*[@class="docblock"]' 'docs for TypeWithDefault'
23+
// @has - '//*[@class="docblock hidden"]' 'docs for TypeWithDefault'
2424
// @has - '//*[@id="method.method_no_default"]' 'fn method_no_default()'
2525
// @has - '//*[@class="docblock"]' 'dox for method_no_default'
2626
// @has - '//*[@id="method.method_with_default"]' 'fn method_with_default()'
27-
// @has - '//*[@class="docblock"]' 'docs for method_with_default'
27+
// @has - '//*[@class="docblock hidden"]' 'docs for method_with_default'
2828
pub use assoc_items::MyStruct;
2929

3030
// @has foo/trait.MyTrait.html

src/test/rustdoc/inline_cross/impl-inline-without-trait.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ extern crate impl_inline_without_trait;
88

99
// @has 'foo/struct.MyStruct.html'
1010
// @has - '//*[@id="method.my_trait_method"]' 'fn my_trait_method()'
11-
// @has - '//*[@class="docblock"]' 'docs for my_trait_method'
11+
// @has - '//*[@class="docblock hidden"]' 'docs for my_trait_method'
1212
pub use impl_inline_without_trait::MyStruct;

src/test/rustdoc/manual_impl.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ pub trait T {
2424
// @has - '//*[@class="docblock"]' 'Docs associated with the S1 trait implementation.'
2525
// @has - '//*[@class="docblock"]' 'Docs associated with the S1 trait a_method implementation.'
2626
// @!has - '//*[@class="docblock"]' 'Docs associated with the trait a_method definition.'
27-
// @has - '//*[@class="docblock"]' 'Docs associated with the trait b_method definition.'
28-
// @has - '//*[@class="docblock"]' 'Docs associated with the trait c_method definition.'
27+
// @has - '//*[@class="docblock hidden"]' 'Docs associated with the trait b_method definition.'
28+
// @has - '//*[@class="docblock hidden"]' 'Docs associated with the trait c_method definition.'
2929
// @!has - '//*[@class="docblock"]' 'There is another line'
30-
// @has - '//*[@class="docblock"]' 'Read more'
30+
// @has - '//*[@class="docblock hidden"]' 'Read more'
3131
pub struct S1(usize);
3232

3333
/// Docs associated with the S1 trait implementation.
@@ -44,7 +44,7 @@ impl T for S1 {
4444
// @has - '//*[@class="docblock"]' 'Docs associated with the S2 trait c_method implementation.'
4545
// @!has - '//*[@class="docblock"]' 'Docs associated with the trait a_method definition.'
4646
// @!has - '//*[@class="docblock"]' 'Docs associated with the trait c_method definition.'
47-
// @has - '//*[@class="docblock"]' 'Docs associated with the trait b_method definition.'
47+
// @has - '//*[@class="docblock hidden"]' 'Docs associated with the trait b_method definition.'
4848
pub struct S2(usize);
4949

5050
/// Docs associated with the S2 trait implementation.

0 commit comments

Comments
 (0)