File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
1
#![ crate_name = "foo" ]
2
2
3
- // @has foo/fn.f.html '//*[@class="docblock attributes "]' '#[no_mangle]'
3
+ // @has foo/fn.f.html '//*[@class="rust fn "]' '#[no_mangle]'
4
4
#[ no_mangle]
5
5
pub extern "C" fn f ( ) { }
6
6
7
- // @has foo/fn.g.html '//*[@class="docblock attributes "]' '#[export_name = "bar"]'
7
+ // @has foo/fn.g.html '//*[@class="rust fn "]' '#[export_name = "bar"]'
8
8
#[ export_name = "bar" ]
9
9
pub extern "C" fn g ( ) { }
10
10
11
- // @matches foo/enum.Foo.html '//*[@class="docblock attributes top-attr "]' \
12
- // '(?m)\A #\[repr\(i64\)\]\n#\[must_use\]\Z '
11
+ // @matches foo/enum.Foo.html '//*[@class="rust enum "]' \
12
+ // '#\[repr\(i64\)\]\n#\[must_use\]'
13
13
#[ repr( i64 ) ]
14
14
#[ must_use]
15
15
pub enum Foo {
16
16
Bar ,
17
17
}
18
18
19
- // @has foo/struct.Repr.html '//*[@class="docblock attributes top-attr "]' '#[repr(C, align(8))]'
19
+ // @has foo/struct.Repr.html '//*[@class="docblock type-decl "]' '#[repr(C, align(8))]'
20
20
#[ repr( C , align( 8 ) ) ]
21
21
pub struct Repr ;
Original file line number Diff line number Diff line change 2
2
3
3
4
4
pub trait Foo {
5
- // @has foo/trait.Foo.html '//h3[@id="tymethod.foo"]//span [@class="docblock attributes "]' '#[must_use]'
5
+ // @has foo/trait.Foo.html '//h3[@id="tymethod.foo"]//div [@class="code-attribute "]' '#[must_use]'
6
6
#[ must_use]
7
7
fn foo ( ) ;
8
8
}
@@ -11,11 +11,11 @@ pub trait Foo {
11
11
pub struct Bar ;
12
12
13
13
impl Bar {
14
- // @has foo/struct.Bar.html '//h4[@id="method.bar"]//span [@class="docblock attributes "]' '#[must_use]'
14
+ // @has foo/struct.Bar.html '//h4[@id="method.bar"]//div [@class="code-attribute "]' '#[must_use]'
15
15
#[ must_use]
16
16
pub fn bar ( ) { }
17
17
18
- // @has foo/struct.Bar.html '//h4[@id="method.bar2"]//span [@class="docblock attributes "]' '#[must_use]'
18
+ // @has foo/struct.Bar.html '//h4[@id="method.bar2"]//div [@class="code-attribute "]' '#[must_use]'
19
19
#[ must_use]
20
20
pub fn bar2 ( ) { }
21
21
}
You can’t perform that action at this time.
0 commit comments