2
2
#![ feature( target_feature, cfg_target_feature) ]
3
3
4
4
// @has doc_cfg/struct.Portable.html
5
- // @!has - '//*[@id="main"]/*[@class="item-info"]/*[@class="stab portability"]' ''
5
+ // @!has - '//*[@id="main-content "]/*[@class="item-info"]/*[@class="stab portability"]' ''
6
6
// @has - '//*[@id="method.unix_and_arm_only_function"]' 'fn unix_and_arm_only_function()'
7
7
// @has - '//*[@class="stab portability"]' 'This is supported on Unix and ARM only.'
8
8
// @has - '//*[@id="method.wasi_and_wasm32_only_function"]' 'fn wasi_and_wasm32_only_function()'
9
9
// @has - '//*[@class="stab portability"]' 'This is supported on WASI and WebAssembly only.'
10
10
pub struct Portable ;
11
11
12
12
// @has doc_cfg/unix_only/index.html \
13
- // '//*[@id="main"]/*[@class="item-info"]/*[@class="stab portability"]' \
13
+ // '//*[@id="main-content "]/*[@class="item-info"]/*[@class="stab portability"]' \
14
14
// 'This is supported on Unix only.'
15
15
// @matches - '//*[@class="item-left module-item"]//*[@class="stab portability"]' '\AARM\Z'
16
16
// @count - '//*[@class="stab portability"]' 2
17
17
#[ doc( cfg( unix) ) ]
18
18
pub mod unix_only {
19
19
// @has doc_cfg/unix_only/fn.unix_only_function.html \
20
- // '//*[@id="main"]/*[@class="item-info"]/*[@class="stab portability"]' \
20
+ // '//*[@id="main-content "]/*[@class="item-info"]/*[@class="stab portability"]' \
21
21
// 'This is supported on Unix only.'
22
22
// @count - '//*[@class="stab portability"]' 1
23
23
pub fn unix_only_function ( ) {
24
24
content:: should:: be:: irrelevant ( ) ;
25
25
}
26
26
27
27
// @has doc_cfg/unix_only/trait.ArmOnly.html \
28
- // '//*[@id="main"]/*[@class="item-info"]/*[@class="stab portability"]' \
28
+ // '//*[@id="main-content "]/*[@class="item-info"]/*[@class="stab portability"]' \
29
29
// 'This is supported on Unix and ARM only.'
30
30
// @count - '//*[@class="stab portability"]' 1
31
31
#[ doc( cfg( target_arch = "arm" ) ) ]
@@ -40,22 +40,22 @@ pub mod unix_only {
40
40
}
41
41
42
42
// @has doc_cfg/wasi_only/index.html \
43
- // '//*[@id="main"]/*[@class="item-info"]/*[@class="stab portability"]' \
43
+ // '//*[@id="main-content "]/*[@class="item-info"]/*[@class="stab portability"]' \
44
44
// 'This is supported on WASI only.'
45
45
// @matches - '//*[@class="item-left module-item"]//*[@class="stab portability"]' '\AWebAssembly\Z'
46
46
// @count - '//*[@class="stab portability"]' 2
47
47
#[ doc( cfg( target_os = "wasi" ) ) ]
48
48
pub mod wasi_only {
49
49
// @has doc_cfg/wasi_only/fn.wasi_only_function.html \
50
- // '//*[@id="main"]/*[@class="item-info"]/*[@class="stab portability"]' \
50
+ // '//*[@id="main-content "]/*[@class="item-info"]/*[@class="stab portability"]' \
51
51
// 'This is supported on WASI only.'
52
52
// @count - '//*[@class="stab portability"]' 1
53
53
pub fn wasi_only_function ( ) {
54
54
content:: should:: be:: irrelevant ( ) ;
55
55
}
56
56
57
57
// @has doc_cfg/wasi_only/trait.Wasm32Only.html \
58
- // '//*[@id="main"]/*[@class="item-info"]/*[@class="stab portability"]' \
58
+ // '//*[@id="main-content "]/*[@class="item-info"]/*[@class="stab portability"]' \
59
59
// 'This is supported on WASI and WebAssembly only.'
60
60
// @count - '//*[@class="stab portability"]' 1
61
61
#[ doc( cfg( target_arch = "wasm32" ) ) ]
@@ -77,15 +77,15 @@ pub mod wasi_only {
77
77
// @matches - '//*[@class="item-left module-item"]//*[@class="stab portability"]' '\Aavx\Z'
78
78
79
79
// @has doc_cfg/fn.uses_target_feature.html
80
- // @has - '//*[@id="main"]/*[@class="item-info"]/*[@class="stab portability"]' \
80
+ // @has - '//*[@id="main-content "]/*[@class="item-info"]/*[@class="stab portability"]' \
81
81
// 'This is supported with target feature avx only.'
82
82
#[ target_feature( enable = "avx" ) ]
83
83
pub unsafe fn uses_target_feature ( ) {
84
84
content:: should:: be:: irrelevant ( ) ;
85
85
}
86
86
87
87
// @has doc_cfg/fn.uses_cfg_target_feature.html
88
- // @has - '//*[@id="main"]/*[@class="item-info"]/*[@class="stab portability"]' \
88
+ // @has - '//*[@id="main-content "]/*[@class="item-info"]/*[@class="stab portability"]' \
89
89
// 'This is supported with target feature avx only.'
90
90
#[ doc( cfg( target_feature = "avx" ) ) ]
91
91
pub fn uses_cfg_target_feature ( ) {
@@ -94,7 +94,7 @@ pub fn uses_cfg_target_feature() {
94
94
95
95
// multiple attributes should be allowed
96
96
// @has doc_cfg/fn.multiple_attrs.html \
97
- // '//*[@id="main"]/*[@class="item-info"]/*[@class="stab portability"]' \
97
+ // '//*[@id="main-content "]/*[@class="item-info"]/*[@class="stab portability"]' \
98
98
// 'This is supported on x and y and z only.'
99
99
#[ doc( inline, cfg( x) ) ]
100
100
#[ doc( cfg( y) , cfg( z) ) ]
0 commit comments