Skip to content

Commit 68fa0af

Browse files
committed
Update hidden extern crate test
1 parent 228db5e commit 68fa0af

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

tests/rustdoc-html/display-hidden-items.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
#![crate_name = "foo"]
66

77
//@ has 'foo/index.html'
8-
//@ has - '//dt/span[@title="Hidden item"]' '👻'
98

10-
//@ has - '//dt/span[@title="Hidden item"]' '👻'
9+
//@ matches - '//dt[code]' 'pub extern crate .*hidden_core;.*👻'
1110
//@ has - '//dt/code' 'pub extern crate core as hidden_core;'
1211
#[doc(hidden)]
1312
pub extern crate core as hidden_core;
@@ -48,7 +47,9 @@ pub struct Struct {
4847
impl Struct {
4948
//@ has - '//*[@id="method.new"]/*[@class="code-header"]' 'pub fn new() -> Self'
5049
#[doc(hidden)]
51-
pub fn new() -> Self { Self { a: 0 } }
50+
pub fn new() -> Self {
51+
Self { a: 0 }
52+
}
5253
}
5354

5455
impl Trait for Struct {

0 commit comments

Comments
 (0)