Skip to content

Commit 1b67035

Browse files
committedJun 24, 2024
Update tests/rustdoc to new test syntax
1 parent d3ec92e commit 1b67035

File tree

627 files changed

+4378
-4378
lines changed

Some content is hidden

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

627 files changed

+4378
-4378
lines changed
 

‎tests/rustdoc/alias-reexport.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77

88
extern crate alias_reexport2;
99

10-
// @has 'foo/reexport/fn.foo.html'
11-
// @has - '//*[@class="rust item-decl"]' 'pub fn foo() -> Reexported'
12-
// @has 'foo/reexport/fn.foo2.html'
13-
// @has - '//*[@class="rust item-decl"]' 'pub fn foo2() -> Result<Reexported, ()>'
14-
// @has 'foo/reexport/type.Reexported.html'
15-
// @has - '//*[@class="rust item-decl"]' 'pub type Reexported = u8;'
10+
//@ has 'foo/reexport/fn.foo.html'
11+
//@ has - '//*[@class="rust item-decl"]' 'pub fn foo() -> Reexported'
12+
//@ has 'foo/reexport/fn.foo2.html'
13+
//@ has - '//*[@class="rust item-decl"]' 'pub fn foo2() -> Result<Reexported, ()>'
14+
//@ has 'foo/reexport/type.Reexported.html'
15+
//@ has - '//*[@class="rust item-decl"]' 'pub type Reexported = u8;'
1616
#[doc(inline)]
1717
pub use alias_reexport2 as reexport;

‎tests/rustdoc/alias-reexport2.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ extern crate alias_reexport;
99

1010
use alias_reexport::Reexported;
1111

12-
// @has 'foo/fn.foo.html'
13-
// @has - '//*[@class="rust item-decl"]' 'pub fn foo() -> Reexported'
12+
//@ has 'foo/fn.foo.html'
13+
//@ has - '//*[@class="rust item-decl"]' 'pub fn foo() -> Reexported'
1414
pub fn foo() -> Reexported { 0 }
15-
// @has 'foo/fn.foo2.html'
16-
// @has - '//*[@class="rust item-decl"]' 'pub fn foo2() -> Result<Reexported, ()>'
15+
//@ has 'foo/fn.foo2.html'
16+
//@ has - '//*[@class="rust item-decl"]' 'pub fn foo2() -> Result<Reexported, ()>'
1717
pub fn foo2() -> Result<Reexported, ()> { Ok(0) }

0 commit comments

Comments
 (0)
Please sign in to comment.