Skip to content

Commit b34e240

Browse files
committed
Update @!has name in tests
1 parent 9db6061 commit b34e240

Some content is hidden

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

49 files changed

+127
-127
lines changed

src/test/rustdoc/all.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ mod private_module {
2424
}
2525

2626
// @has foo/all.html '//a[@href="struct.ReexportedStruct.html"]' 'ReexportedStruct'
27-
// @!has foo/all.html 'private_module'
27+
// @!hasraw foo/all.html 'private_module'
2828
pub use private_module::ReexportedStruct;

src/test/rustdoc/assoc-consts.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pub trait Foo {
55
const FOO: usize = 12 + 1;
66
// @has - '//*[@id="associatedconstant.FOO_NO_DEFAULT"]' 'const FOO_NO_DEFAULT: bool'
77
const FOO_NO_DEFAULT: bool;
8-
// @!has - FOO_HIDDEN
8+
// @!hasraw - FOO_HIDDEN
99
#[doc(hidden)]
1010
const FOO_HIDDEN: u8 = 0;
1111
}
@@ -18,7 +18,7 @@ impl Foo for Bar {
1818
const FOO: usize = 12;
1919
// @has - '//*[@id="associatedconstant.FOO_NO_DEFAULT"]' 'const FOO_NO_DEFAULT: bool'
2020
const FOO_NO_DEFAULT: bool = false;
21-
// @!has - FOO_HIDDEN
21+
// @!hasraw - FOO_HIDDEN
2222
#[doc(hidden)]
2323
const FOO_HIDDEN: u8 = 0;
2424
}
@@ -50,9 +50,9 @@ impl Bar {
5050
}
5151

5252
impl Bar {
53-
// @!has assoc_consts/struct.Bar.html 'BAR_PRIVATE'
53+
// @!hasraw assoc_consts/struct.Bar.html 'BAR_PRIVATE'
5454
const BAR_PRIVATE: char = 'a';
55-
// @!has assoc_consts/struct.Bar.html 'BAR_HIDDEN'
55+
// @!hasraw assoc_consts/struct.Bar.html 'BAR_HIDDEN'
5656
#[doc(hidden)]
5757
pub const BAR_HIDDEN: &'static str = "a";
5858
}

src/test/rustdoc/const-display.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub const fn foo() -> u32 { 42 }
2020
pub const unsafe fn foo_unsafe() -> u32 { 42 }
2121

2222
// @has 'foo/fn.foo2.html' '//pre' 'pub const fn foo2() -> u32'
23-
// @!has - '//span[@class="since"]'
23+
// @!hasraw - '//span[@class="since"]'
2424
#[unstable(feature = "humans", issue = "none")]
2525
pub const fn foo2() -> u32 { 42 }
2626

@@ -32,7 +32,7 @@ pub const fn bar2() -> u32 { 42 }
3232

3333

3434
// @has 'foo/fn.foo2_gated.html' '//pre' 'pub const unsafe fn foo2_gated() -> u32'
35-
// @!has - '//span[@class="since"]'
35+
// @!hasraw - '//span[@class="since"]'
3636
#[unstable(feature = "foo2", issue = "none")]
3737
pub const unsafe fn foo2_gated() -> u32 { 42 }
3838

@@ -43,7 +43,7 @@ pub const unsafe fn foo2_gated() -> u32 { 42 }
4343
pub const unsafe fn bar2_gated() -> u32 { 42 }
4444

4545
// @has 'foo/fn.bar_not_gated.html' '//pre' 'pub const unsafe fn bar_not_gated() -> u32'
46-
// @!has - '//span[@class="since"]'
46+
// @!hasraw - '//span[@class="since"]'
4747
pub const unsafe fn bar_not_gated() -> u32 { 42 }
4848

4949
pub struct Foo;

src/test/rustdoc/deprecated-impls.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ impl Bar for Foo1 {
7575

7676
// @has - '//*[@class="stab deprecated"]' 'Deprecated since 1.0.7: fn_def_def_with_doc'
7777
// @hasraw - 'fn_def_def_with_doc short'
78-
// @!has - 'fn_def_def_with_doc full'
78+
// @!hasraw - 'fn_def_def_with_doc full'
7979

8080
// @has - '//*[@class="stab deprecated"]' 'Deprecated since 1.0.8: fn_def_def_without_doc'
8181
}
@@ -86,7 +86,7 @@ pub struct Foo2;
8686
impl Bar for Foo2 {
8787
// @has - '//*[@class="stab deprecated"]' 'Deprecated since 1.0.3: fn_empty_with_doc'
8888
// @hasraw - 'fn_empty_with_doc short'
89-
// @!has - 'fn_empty_with_doc full'
89+
// @!hasraw - 'fn_empty_with_doc full'
9090
fn fn_empty_with_doc() {}
9191

9292
// @has - '//*[@class="stab deprecated"]' 'Deprecated since 1.0.4: fn_empty_without_doc'
@@ -99,7 +99,7 @@ impl Bar for Foo2 {
9999

100100
// @has - '//*[@class="stab deprecated"]' 'Deprecated since 1.0.5: fn_def_with_doc'
101101
// @hasraw - 'fn_def_with_doc short'
102-
// @!has - 'fn_def_with_doc full'
102+
// @!hasraw - 'fn_def_with_doc full'
103103
fn fn_def_with_doc() {}
104104

105105
// @has - '//*[@class="stab deprecated"]' 'Deprecated since 1.0.6: fn_def_without_doc'
@@ -112,7 +112,7 @@ impl Bar for Foo2 {
112112

113113
// @has - '//*[@class="stab deprecated"]' 'Deprecated since 1.0.7: fn_def_def_with_doc'
114114
// @hasraw - 'fn_def_def_with_doc short'
115-
// @!has - 'fn_def_def_with_doc full'
115+
// @!hasraw - 'fn_def_def_with_doc full'
116116

117117
// @has - '//*[@class="stab deprecated"]' 'Deprecated since 1.0.8: fn_def_def_without_doc'
118118
}

src/test/rustdoc/empty-section.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
pub struct Foo;
66

77
// @has foo/struct.Foo.html
8-
// @!has - 'Auto Trait Implementations'
8+
// @!hasraw - 'Auto Trait Implementations'
99
impl !Send for Foo {}
1010
impl !Sync for Foo {}
1111
impl !std::marker::Unpin for Foo {}

src/test/rustdoc/hidden-impls.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub mod __hidden {
1111
}
1212

1313
// @has foo/trait.Clone.html
14-
// @!has - 'Foo'
14+
// @!hasraw - 'Foo'
1515
// @has implementors/core/clone/trait.Clone.js
16-
// @!has - 'Foo'
16+
// @!hasraw - 'Foo'
1717
pub use std::clone::Clone;

src/test/rustdoc/hidden-line.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
/// ```
1616
pub fn foo() {}
1717

18-
// @!has hidden_line/fn.foo.html invisible
18+
// @!hasraw hidden_line/fn.foo.html invisible
1919
// @matches - //pre "#\[derive\(PartialEq\)\] // Bar"

src/test/rustdoc/hidden-methods.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ pub mod hidden {
1717
}
1818

1919
// @has foo/struct.Foo.html
20-
// @!has - 'Methods'
20+
// @!hasraw - 'Methods'
2121
// @!has - '//code' 'impl Foo'
22-
// @!has - 'this_should_be_hidden'
22+
// @!hasraw - 'this_should_be_hidden'
2323
pub use hidden::Foo;
2424

2525
// @has foo/struct.Bar.html
26-
// @!has - 'Methods'
26+
// @!hasraw - 'Methods'
2727
// @!has - '//code' 'impl Bar'
28-
// @!has - 'this_should_be_hidden'
28+
// @!hasraw - 'this_should_be_hidden'
2929
pub use hidden::Bar;

src/test/rustdoc/inline_cross/assoc-items.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
extern crate assoc_items;
88

99
// @has foo/struct.MyStruct.html
10-
// @!has - 'PrivateConst'
10+
// @!hasraw - 'PrivateConst'
1111
// @has - '//*[@id="associatedconstant.PublicConst"]' 'pub const PublicConst: u8'
1212
// @has - '//*[@class="docblock"]' 'docs for PublicConst'
13-
// @!has - 'private_method'
13+
// @!hasraw - 'private_method'
1414
// @has - '//*[@id="method.public_method"]' 'pub fn public_method()'
1515
// @has - '//*[@class="docblock"]' 'docs for public_method'
1616
// @has - '//*[@id="associatedconstant.ConstNoDefault"]' 'const ConstNoDefault: i16'

src/test/rustdoc/inline_cross/hidden-use.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
extern crate rustdoc_hidden;
66

77
// @has hidden_use/index.html
8-
// @!has - 'rustdoc_hidden'
9-
// @!has - 'Bar'
8+
// @!hasraw - 'rustdoc_hidden'
9+
// @!hasraw - 'Bar'
1010
// @!has hidden_use/struct.Bar.html
1111
#[doc(hidden)]
1212
pub use rustdoc_hidden::Bar;

0 commit comments

Comments
 (0)