Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 206ee1e

Browse files
committed
Auto merge of rust-lang#80565 - camelid:fix-not-has, r=GuillaumeGomez
Fix tests that incorrectly used `!@has` instead of `@!has` The command is ``@!has`,` not `!`@has`.` I don't think these checks were doing anything before! Ideally we would accept `!`@has`` as well, or at least fail tests that use `!`@has`.` The current behavior seems to be silently ignoring the check, which is very confusing. r? `@GuillaumeGomez`
2 parents a609fb4 + 2c405ae commit 206ee1e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

‎src/test/rustdoc/inline_local/trait-vis.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ mod asdf {
1414

1515
// @has trait_vis/struct.SomeStruct.html
1616
// @has - '//code' 'impl ThisTrait for SomeStruct'
17-
// !@has - '//code' 'impl PrivateTrait for SomeStruct'
17+
// @!has - '//code' 'impl PrivateTrait for SomeStruct'
1818
pub use asdf::SomeStruct;

‎src/test/rustdoc/issue-74083.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ impl Foo {
77
}
88

99
// @has issue_74083/struct.Bar.html
10-
// !@has - '//div[@]/a[@href="#method.foo"]' 'foo'
10+
// @!has - '//div[@class="sidebar-links"]/a[@href="#method.foo"]' 'foo'
1111
pub struct Bar {
1212
foo: Foo,
1313
}

‎src/test/rustdoc/remove-url-from-headings.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#![crate_name = "foo"]
22

33
// @has foo/fn.foo.html
4-
// !@has - '//a[@href="http://a.a"]'
4+
// @!has - '//a[@href="http://a.a"]'
55
// @has - '//a[@href="#implementing-stuff-somewhere"]' 'Implementing stuff somewhere'
66
// @has - '//a[@href="#another-one-urg"]' 'Another one urg'
77

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /