]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-js/doc-alias.js
Rollup merge of #93755 - ChayimFriedman2:allow-comparing-vecs-with-different-allocato...
[rust.git] / src / test / rustdoc-js / doc-alias.js
1 // exact-check
2
3 const QUERY = [
4     'StructItem',
5     'StructFieldItem',
6     'StructMethodItem',
7     'ImplTraitItem',
8     'StructImplConstItem',
9     'ImplTraitFunction',
10     'EnumItem',
11     'VariantItem',
12     'EnumMethodItem',
13     'TypedefItem',
14     'TraitItem',
15     'TraitTypeItem',
16     'AssociatedConstItem',
17     'TraitFunctionItem',
18     'FunctionItem',
19     'ModuleItem',
20     'ConstItem',
21     'StaticItem',
22     'UnionItem',
23     'UnionFieldItem',
24     'UnionMethodItem',
25     'MacroItem',
26 ];
27
28 const EXPECTED = [
29     {
30         'others': [
31             {
32                 'path': 'doc_alias',
33                 'name': 'Struct',
34                 'alias': 'StructItem',
35                 'href': '../doc_alias/struct.Struct.html',
36                 'is_alias': true
37             },
38         ],
39     },
40     {
41         'others': [
42             {
43                 'path': 'doc_alias::Struct',
44                 'name': 'field',
45                 'alias': 'StructFieldItem',
46                 'href': '../doc_alias/struct.Struct.html#structfield.field',
47                 'is_alias': true
48             },
49         ],
50     },
51     {
52         'others': [
53             {
54                 'path': 'doc_alias::Struct',
55                 'name': 'method',
56                 'alias': 'StructMethodItem',
57                 'href': '../doc_alias/struct.Struct.html#method.method',
58                 'is_alias': true
59             },
60         ],
61     },
62     {
63         // ImplTraitItem
64         'others': [],
65     },
66     {
67         // StructImplConstItem
68         'others': [
69             {
70                 'path': 'doc_alias::Struct',
71                 'name': 'ImplConstItem',
72                 'alias': 'StructImplConstItem',
73                 'href': '../doc_alias/struct.Struct.html#associatedconstant.ImplConstItem',
74                 'is_alias': true
75             },
76         ],
77     },
78     {
79         'others': [
80             {
81                 'path': 'doc_alias::Struct',
82                 'name': 'function',
83                 'alias': 'ImplTraitFunction',
84                 'href': '../doc_alias/struct.Struct.html#method.function',
85                 'is_alias': true
86             },
87         ],
88     },
89     {
90         'others': [
91             {
92                 'path': 'doc_alias',
93                 'name': 'Enum',
94                 'alias': 'EnumItem',
95                 'href': '../doc_alias/enum.Enum.html',
96                 'is_alias': true
97             },
98         ],
99     },
100     {
101         'others': [
102             {
103                 'path': 'doc_alias::Enum',
104                 'name': 'Variant',
105                 'alias': 'VariantItem',
106                 'href': '../doc_alias/enum.Enum.html#variant.Variant',
107                 'is_alias': true
108             },
109         ],
110     },
111     {
112         'others': [
113             {
114                 'path': 'doc_alias::Enum',
115                 'name': 'method',
116                 'alias': 'EnumMethodItem',
117                 'href': '../doc_alias/enum.Enum.html#method.method',
118                 'is_alias': true
119             },
120         ],
121     },
122     {
123         'others': [
124             {
125                 'path': 'doc_alias',
126                 'name': 'Typedef',
127                 'alias': 'TypedefItem',
128                 'href': '../doc_alias/type.Typedef.html',
129                 'is_alias': true
130             },
131         ],
132     },
133     {
134         'others': [
135             {
136                 'path': 'doc_alias',
137                 'name': 'Trait',
138                 'alias': 'TraitItem',
139                 'href': '../doc_alias/trait.Trait.html',
140                 'is_alias': true
141             },
142         ],
143     },
144     {
145         'others': [
146             {
147                 'path': 'doc_alias::Trait',
148                 'name': 'Target',
149                 'alias': 'TraitTypeItem',
150                 'href': '../doc_alias/trait.Trait.html#associatedtype.Target',
151                 'is_alias': true
152             },
153         ],
154     },
155     {
156         'others': [
157             {
158                 'path': 'doc_alias::Trait',
159                 'name': 'AssociatedConst',
160                 'alias': 'AssociatedConstItem',
161                 'href': '../doc_alias/trait.Trait.html#associatedconstant.AssociatedConst',
162                 'is_alias': true
163             },
164         ],
165     },
166     {
167         'others': [
168             {
169                 'path': 'doc_alias::Trait',
170                 'name': 'function',
171                 'alias': 'TraitFunctionItem',
172                 'href': '../doc_alias/trait.Trait.html#tymethod.function',
173                 'is_alias': true
174             },
175         ],
176     },
177     {
178         'others': [
179             {
180                 'path': 'doc_alias',
181                 'name': 'function',
182                 'alias': 'FunctionItem',
183                 'href': '../doc_alias/fn.function.html',
184                 'is_alias': true
185             },
186         ],
187     },
188     {
189         'others': [
190             {
191                 'path': 'doc_alias',
192                 'name': 'Module',
193                 'alias': 'ModuleItem',
194                 'href': '../doc_alias/Module/index.html',
195                 'is_alias': true
196             },
197         ],
198     },
199     {
200         'others': [
201             {
202                 'path': 'doc_alias',
203                 'name': 'Const',
204                 'alias': 'ConstItem',
205                 'href': '../doc_alias/constant.Const.html',
206                 'is_alias': true
207             },
208             {
209                 'path': 'doc_alias::Struct',
210                 'name': 'ImplConstItem',
211             },
212         ],
213     },
214     {
215         'others': [
216             {
217                 'path': 'doc_alias',
218                 'name': 'Static',
219                 'alias': 'StaticItem',
220                 'href': '../doc_alias/static.Static.html',
221                 'is_alias': true
222             },
223         ],
224     },
225     {
226         'others': [
227             {
228                 'path': 'doc_alias',
229                 'name': 'Union',
230                 'alias': 'UnionItem',
231                 'href': '../doc_alias/union.Union.html',
232                 'is_alias': true
233             },
234             // Not an alias!
235             {
236                 'path': 'doc_alias::Union',
237                 'name': 'union_item',
238                 'href': '../doc_alias/union.Union.html#structfield.union_item'
239             },
240         ],
241     },
242     {
243         'others': [
244             {
245                 'path': 'doc_alias::Union',
246                 'name': 'union_item',
247                 'alias': 'UnionFieldItem',
248                 'href': '../doc_alias/union.Union.html#structfield.union_item',
249                 'is_alias': true
250             },
251         ],
252     },
253     {
254         'others': [
255             {
256                 'path': 'doc_alias::Union',
257                 'name': 'method',
258                 'alias': 'UnionMethodItem',
259                 'href': '../doc_alias/union.Union.html#method.method',
260                 'is_alias': true
261             },
262         ],
263     },
264     {
265         'others': [
266             {
267                 'path': 'doc_alias',
268                 'name': 'Macro',
269                 'alias': 'MacroItem',
270                 'href': '../doc_alias/macro.Macro.html',
271                 'is_alias': true
272             },
273         ],
274     },
275 ];