summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc/doc-cfg-simplification.rs
blob: 633df661be02642182a8de54e0f9e76e3d3c3b8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
#![crate_name = "globuliferous"]
#![feature(doc_cfg)]

// @has 'globuliferous/index.html'
// @count   - '//*[@class="stab portability"]' 1
// @matches - '//*[@class="stab portability"]' '^ratel$'

// @has 'globuliferous/ratel/index.html'
// @count   - '//*[@class="stab portability"]' 8
// @matches - '//*[@class="stab portability"]' 'crate feature ratel'
// @matches - '//*[@class="stab portability"]' '^zoonosology$'
// @matches - '//*[@class="stab portability"]' '^yusho$'
// @matches - '//*[@class="stab portability"]' '^nunciative$'
// @matches - '//*[@class="stab portability"]' '^thionic$'
// @matches - '//*[@class="stab portability"]' '^zincic$'
// @matches - '//*[@class="stab portability"]' '^cosmotellurian$'
// @matches - '//*[@class="stab portability"]' '^aposiopesis$'
#[doc(cfg(feature = "ratel"))]
pub mod ratel {
    // @has 'globuliferous/ratel/fn.ovicide.html'
    // @count   - '//*[@class="stab portability"]' 1
    // @matches - '//*[@class="stab portability"]' 'crate feature ratel'
    pub fn ovicide() {}

    // @has 'globuliferous/ratel/fn.zoonosology.html'
    // @count   - '//*[@class="stab portability"]' 1
    // @matches - '//*[@class="stab portability"]' 'crate features ratel and zoonosology'
    #[doc(cfg(feature = "zoonosology"))]
    pub fn zoonosology() {}

    // @has 'globuliferous/ratel/constant.DIAGRAPHICS.html'
    // @count   - '//*[@class="stab portability"]' 1
    // @matches - '//*[@class="stab portability"]' 'crate feature ratel'
    pub const DIAGRAPHICS: () = ();

    // @has 'globuliferous/ratel/constant.YUSHO.html'
    // @count   - '//*[@class="stab portability"]' 1
    // @matches - '//*[@class="stab portability"]' 'crate features ratel and yusho'
    #[doc(cfg(feature = "yusho"))]
    pub const YUSHO: () = ();

    // @has 'globuliferous/ratel/static.KEYBUGLE.html'
    // @count   - '//*[@class="stab portability"]' 1
    // @matches - '//*[@class="stab portability"]' 'crate feature ratel'
    pub static KEYBUGLE: () = ();

    // @has 'globuliferous/ratel/static.NUNCIATIVE.html'
    // @count   - '//*[@class="stab portability"]' 1
    // @matches - '//*[@class="stab portability"]' 'crate features ratel and nunciative'
    #[doc(cfg(feature = "nunciative"))]
    pub static NUNCIATIVE: () = ();

    // @has 'globuliferous/ratel/type.Wrick.html'
    // @count   - '//*[@class="stab portability"]' 1
    // @matches - '//*[@class="stab portability"]' 'crate feature ratel'
    pub type Wrick = ();

    // @has 'globuliferous/ratel/type.Thionic.html'
    // @count   - '//*[@class="stab portability"]' 1
    // @matches - '//*[@class="stab portability"]' 'crate features ratel and thionic'
    #[doc(cfg(feature = "thionic"))]
    pub type Thionic = ();

    // @has 'globuliferous/ratel/struct.Eventration.html'
    // @count   - '//*[@class="stab portability"]' 1
    // @matches - '//*[@class="stab portability"]' 'crate feature ratel'
    pub struct Eventration;

    // @has 'globuliferous/ratel/struct.Zincic.html'
    // @count   - '//*[@class="stab portability"]' 2
    // @matches - '//*[@class="stab portability"]' 'crate features ratel and zincic'
    // @matches - '//*[@class="stab portability"]' 'crate feature rutherford'
    #[doc(cfg(feature = "zincic"))]
    pub struct Zincic {
        pub rectigrade: (),

        #[doc(cfg(feature = "rutherford"))]
        pub rutherford: (),
    }

    // @has 'globuliferous/ratel/enum.Cosmotellurian.html'
    // @count   - '//*[@class="stab portability"]' 10
    // @matches - '//*[@class="stab portability"]' 'crate features ratel and cosmotellurian'
    // @matches - '//*[@class="stab portability"]' 'crate feature biotaxy'
    // @matches - '//*[@class="stab portability"]' 'crate feature xiphopagus'
    // @matches - '//*[@class="stab portability"]' 'crate feature juxtapositive'
    // @matches - '//*[@class="stab portability"]' 'crate feature fuero'
    // @matches - '//*[@class="stab portability"]' 'crate feature palaeophile'
    // @matches - '//*[@class="stab portability"]' 'crate feature broadcloth'
    // @matches - '//*[@class="stab portability"]' 'crate features broadcloth and xanthocomic'
    // @matches - '//*[@class="stab portability"]' 'crate feature broadcloth'
    // @matches - '//*[@class="stab portability"]' 'crate features broadcloth and whosoever'
    #[doc(cfg(feature = "cosmotellurian"))]
    pub enum Cosmotellurian {
        Groundsel {
            jagger: (),

            #[doc(cfg(feature = "xiphopagus"))]
            xiphopagus: (),
        },

        #[doc(cfg(feature = "biotaxy"))]
        Biotaxy {
            glossography: (),

            #[doc(cfg(feature = "juxtapositive"))]
            juxtapositive: (),
        },
    }

    impl Cosmotellurian {
        pub fn uxoricide() {}

        #[doc(cfg(feature = "fuero"))]
        pub fn fuero() {}

        pub const MAMELLE: () = ();

        #[doc(cfg(feature = "palaeophile"))]
        pub const PALAEOPHILE: () = ();
    }

    #[doc(cfg(feature = "broadcloth"))]
    impl Cosmotellurian {
        pub fn trabeculated() {}

        #[doc(cfg(feature = "xanthocomic"))]
        pub fn xanthocomic() {}

        pub const BRACHIFEROUS: () = ();

        #[doc(cfg(feature = "whosoever"))]
        pub const WHOSOEVER: () = ();
    }

    // @has 'globuliferous/ratel/trait.Gnotobiology.html'
    // @count   - '//*[@class="stab portability"]' 4
    // @matches - '//*[@class="stab portability"]' 'crate feature ratel'
    // @matches - '//*[@class="stab portability"]' 'crate feature unzymotic'
    // @matches - '//*[@class="stab portability"]' 'crate feature summate'
    // @matches - '//*[@class="stab portability"]' 'crate feature unctuous'
    pub trait Gnotobiology {
        const XYLOTHERAPY: ();

        #[doc(cfg(feature = "unzymotic"))]
        const UNZYMOTIC: ();

        type Lepadoid;

        #[doc(cfg(feature = "summate"))]
        type Summate;

        fn decalcomania();

        #[doc(cfg(feature = "unctuous"))]
        fn unctuous();
    }

    // @has 'globuliferous/ratel/trait.Aposiopesis.html'
    // @count   - '//*[@class="stab portability"]' 4
    // @matches - '//*[@class="stab portability"]' 'crate features ratel and aposiopesis'
    // @matches - '//*[@class="stab portability"]' 'crate feature umbracious'
    // @matches - '//*[@class="stab portability"]' 'crate feature uakari'
    // @matches - '//*[@class="stab portability"]' 'crate feature rotograph'
    #[doc(cfg(feature = "aposiopesis"))]
    pub trait Aposiopesis {
        const REDHIBITION: ();

        #[doc(cfg(feature = "umbracious"))]
        const UMBRACIOUS: ();

        type Ophthalmoscope;

        #[doc(cfg(feature = "uakari"))]
        type Uakari;

        fn meseems();

        #[doc(cfg(feature = "rotograph"))]
        fn rotograph();
    }
}