File tree 11 files changed +24
-22
lines changed
11 files changed +24
-22
lines changed Original file line number Diff line number Diff line change 2
2
3
3
// Check that the unstable marker is not added for "rustc_private".
4
4
5
- // @!matchesraw internal/index.html \
6
- // '//*[@class="item-right docblock-short"]/span[@class="stab unstable"]'
7
- // @!matchesraw internal/index.html \
8
- // '//*[@class="item-right docblock-short"]/span[@class="stab internal"]'
5
+ // @!matches internal/index.html \
6
+ // '//*[@class="item-right docblock-short"]/span[@class="stab unstable"]' \
7
+ // ''
8
+ // @!matches internal/index.html \
9
+ // '//*[@class="item-right docblock-short"]/span[@class="stab internal"]' \
10
+ // ''
9
11
// @matches - '//*[@class="item-right docblock-short"]' 'Docs'
10
12
11
- // @!hasraw internal/struct.S.html '//*[@class="stab unstable"]'
12
- // @!hasraw internal/struct.S.html '//*[@class="stab internal"]'
13
+ // @!has internal/struct.S.html '//*[@class="stab unstable"]' ' '
14
+ // @!has internal/struct.S.html '//*[@class="stab internal"]' ' '
13
15
/// Docs
14
16
pub struct S ;
15
17
Original file line number Diff line number Diff line change @@ -5,11 +5,11 @@ extern crate foo;
5
5
// @has issue_61592/index.html
6
6
// @has - '//a[@href="#reexports"]' 'Re-exports'
7
7
// @has - '//code' 'pub use foo::FooTrait as _;'
8
- // @!hasraw - '//a[@href="trait._.html"]'
8
+ // @!has - '//a[@href="trait._.html"]' ' '
9
9
pub use foo:: FooTrait as _;
10
10
11
11
// @has issue_61592/index.html
12
12
// @has - '//a[@href="#reexports"]' 'Re-exports'
13
13
// @has - '//code' 'pub use foo::FooStruct as _;'
14
- // @!hasraw - '//a[@href="struct._.html"]'
14
+ // @!has - '//a[@href="struct._.html"]' ' '
15
15
pub use foo:: FooStruct as _;
Original file line number Diff line number Diff line change 2
2
3
3
// compile-flags: -Z unstable-options --disable-per-crate-search
4
4
5
- // @!hasraw 'foo/struct.Foo.html' '//*[id="crate-search"]'
5
+ // @!has 'foo/struct.Foo.html' '//*[id="crate-search"]' ' '
6
6
pub struct Foo ;
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ impl G {
51
51
52
52
// @has recursive_deref/struct.D.html '//h3[@class="code-header in-band"]' 'impl Deref for D'
53
53
// We also check that `G::g` method isn't rendered because there is no `self` argument.
54
- // @!hasraw '-' '//*[@id="deref-methods-G"]'
54
+ // @!has '-' '//*[@id="deref-methods-G"]' ' '
55
55
impl Deref for D {
56
56
type Target = E ;
57
57
@@ -62,7 +62,7 @@ impl Deref for D {
62
62
63
63
// @has recursive_deref/struct.E.html '//h3[@class="code-header in-band"]' 'impl Deref for E'
64
64
// We also check that `G::g` method isn't rendered because there is no `self` argument.
65
- // @!hasraw '-' '//*[@id="deref-methods-G"]'
65
+ // @!has '-' '//*[@id="deref-methods-G"]' ' '
66
66
impl Deref for E {
67
67
type Target = F ;
68
68
@@ -73,7 +73,7 @@ impl Deref for E {
73
73
74
74
// @has recursive_deref/struct.F.html '//h3[@class="code-header in-band"]' 'impl Deref for F'
75
75
// We also check that `G::g` method isn't rendered because there is no `self` argument.
76
- // @!hasraw '-' '//*[@id="deref-methods-G"]'
76
+ // @!has '-' '//*[@id="deref-methods-G"]' ' '
77
77
impl Deref for F {
78
78
type Target = G ;
79
79
@@ -101,7 +101,7 @@ impl I {
101
101
}
102
102
103
103
// @has recursive_deref/struct.H.html '//h3[@class="code-header in-band"]' 'impl Deref for H'
104
- // @!hasraw '-' '//*[@id="deref-methods-I"]'
104
+ // @!has '-' '//*[@id="deref-methods-I"]' ' '
105
105
impl Deref for H {
106
106
type Target = I ;
107
107
Original file line number Diff line number Diff line change 1
1
#![ crate_name = "foo" ]
2
2
3
3
// @has foo/fn.foo.html
4
- // @!hasraw - '//a[@href="http://a.a"]'
4
+ // @!has - '//a[@href="http://a.a"]' ' '
5
5
// @has - '//a[@href="#implementing-stuff-somewhere"]' 'Implementing stuff somewhere'
6
6
// @has - '//a[@href="#another-one-urg"]' 'Another one urg'
7
7
Original file line number Diff line number Diff line change 1
1
#![ crate_name = "foo" ]
2
2
3
3
// @has foo/struct.Bar.html
4
- // @!hasraw - '//*[@id="impl-Sized"]'
4
+ // @!has - '//*[@id="impl-Sized"]' ' '
5
5
pub struct Bar {
6
6
a : u16 ,
7
7
}
8
8
9
9
// @has foo/struct.Foo.html
10
- // @!hasraw - '//*[@id="impl-Sized"]'
10
+ // @!has - '//*[@id="impl-Sized"]' ' '
11
11
pub struct Foo < T : ?Sized > ( T ) ;
12
12
13
13
// @has foo/struct.Unsized.html
Original file line number Diff line number Diff line change 2
2
3
3
// @has foo/struct.Foo.html
4
4
// @count - '//*[@class="docblock"]/div/table' 2
5
- // @!hasraw - '//*[@class="docblock"]/table'
5
+ // @!has - '//*[@class="docblock"]/table' ' '
6
6
/// | hello | hello2 |
7
7
/// | ----- | ------ |
8
8
/// | data | data2 |
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ pub struct PrivStruct {
62
62
}
63
63
64
64
// @has 'toggle_item_contents/enum.Enum.html'
65
- // @!hasraw - '//details[@class="rustdoc-toggle type-contents-toggle"]'
65
+ // @!has - '//details[@class="rustdoc-toggle type-contents-toggle"]' ' '
66
66
pub enum Enum {
67
67
A , B , C ,
68
68
D {
@@ -72,7 +72,7 @@ pub enum Enum {
72
72
}
73
73
74
74
// @has 'toggle_item_contents/enum.EnumStructVariant.html'
75
- // @!hasraw - '//details[@class="rustdoc-toggle type-contents-toggle"]'
75
+ // @!has - '//details[@class="rustdoc-toggle type-contents-toggle"]' ' '
76
76
pub enum EnumStructVariant {
77
77
A , B , C ,
78
78
D {
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ pub struct MyStruct;
59
59
60
60
// We check that associated items with default values aren't generated in the implementors list.
61
61
impl MyTrait for ( u8 , u8 ) {
62
- // @!hasraw trait_impl_items_links_and_anchors/trait.MyTrait.html '//div[@id="associatedconstant.VALUE-4"]'
62
+ // @!has trait_impl_items_links_and_anchors/trait.MyTrait.html '//div[@id="associatedconstant.VALUE-4"]' ' '
63
63
type Assoc = bool ;
64
64
fn trait_function ( & self ) { }
65
65
}
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ impl Trait for Struct {
40
40
fn c ( ) { }
41
41
42
42
// @has - '//*[@id="method.d"]/../../div[@class="docblock"]/p' 'Escaped formatting a*b*c* works'
43
- // @!hasraw - '//*[@id="method.d"]/../../div[@class="docblock"]/p/em'
43
+ // @!has - '//*[@id="method.d"]/../../div[@class="docblock"]/p/em' ' '
44
44
fn d ( ) { }
45
45
46
46
// @has - '//*[@id="impl-Trait-for-Struct"]/h3//a/@href' 'trait.Trait.html'
Original file line number Diff line number Diff line change 5
5
// @has - '//h3[@class="sidebar-title"]/a[@href="#fields"]' 'Tuple Fields'
6
6
// @has - '//*[@id="structfield.0"]' '0: u32'
7
7
// @has - '//*[@id="main-content"]/div[@class="docblock"]' 'hello'
8
- // @!hasraw - '//*[@id="structfield.1"]'
8
+ // @!has - '//*[@id="structfield.1"]' ' '
9
9
// @has - '//*[@id="structfield.2"]' '2: char'
10
10
// @has - '//*[@id="structfield.3"]' '3: i8'
11
11
// @has - '//*[@id="main-content"]/div[@class="docblock"]' 'not hello'
You can’t perform that action at this time.
0 commit comments