mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
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.
This commit is contained in:
parent
44e3daf5ee
commit
2c405aea5d
@ -14,5 +14,5 @@ mod asdf {
|
||||
|
||||
// @has trait_vis/struct.SomeStruct.html
|
||||
// @has - '//code' 'impl ThisTrait for SomeStruct'
|
||||
// !@has - '//code' 'impl PrivateTrait for SomeStruct'
|
||||
// @!has - '//code' 'impl PrivateTrait for SomeStruct'
|
||||
pub use asdf::SomeStruct;
|
||||
|
@ -7,7 +7,7 @@ impl Foo {
|
||||
}
|
||||
|
||||
// @has issue_74083/struct.Bar.html
|
||||
// !@has - '//div[@class="sidebar-links"]/a[@href="#method.foo"]' 'foo'
|
||||
// @!has - '//div[@class="sidebar-links"]/a[@href="#method.foo"]' 'foo'
|
||||
pub struct Bar {
|
||||
foo: Foo,
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
#![crate_name = "foo"]
|
||||
|
||||
// @has foo/fn.foo.html
|
||||
// !@has - '//a[@href="http://a.a"]'
|
||||
// @!has - '//a[@href="http://a.a"]'
|
||||
// @has - '//a[@href="#implementing-stuff-somewhere"]' 'Implementing stuff somewhere'
|
||||
// @has - '//a[@href="#another-one-urg"]' 'Another one urg'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user