Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

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/asref-for-and-of-local-82465.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
use std::convert::AsRef;
55
pub struct Local;
66

7-
// @has foo/struct.Local.html '//h3[@class="code-header"]' 'impl AsRef<str> for Local'
7+
//@ has foo/struct.Local.html '//h3[@class="code-header"]' 'impl AsRef<str> for Local'
88
impl AsRef<str> for Local {
99
fn as_ref(&self) -> &str {
1010
todo!()
1111
}
1212
}
1313

14-
// @has - '//h3[@class="code-header"]' 'impl AsRef<Local> for str'
14+
//@ has - '//h3[@class="code-header"]' 'impl AsRef<Local> for str'
1515
impl AsRef<Local> for str {
1616
fn as_ref(&self) -> &Local {
1717
todo!()

‎tests/rustdoc/assoc-consts-version.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
pub struct SomeStruct;
99

1010
impl SomeStruct {
11-
// @has 'foo/struct.SomeStruct.html' \
11+
//@ has 'foo/struct.SomeStruct.html' \
1212
// '//*[@id="associatedconstant.SOME_CONST"]//span[@class="since"]' '1.1.2'
1313
#[stable(since="1.1.2", feature="rust2")]
1414
pub const SOME_CONST: usize = 0;
There was a problem loading the remainder of the diff.

0 commit comments

Comments
 (0)
Failed to load comments.