@@ -33,7 +33,7 @@ pub struct MethodInfo {
33
33
34
34
pub fn get_symbol ( cstore : & cstore:: CStore , def : DefId ) -> String {
35
35
let cdata = cstore. get_crate_data ( def. krate ) ;
36
- decoder:: get_symbol ( & cdata, def. node )
36
+ decoder:: get_symbol ( & cdata, def. xxx_node )
37
37
}
38
38
39
39
/// Iterates over all the language items in the given crate.
@@ -59,7 +59,7 @@ pub fn each_child_of_item<F>(cstore: &cstore::CStore,
59
59
} ;
60
60
decoder:: each_child_of_item ( cstore. intr . clone ( ) ,
61
61
& * crate_data,
62
- def_id. node ,
62
+ def_id. xxx_node ,
63
63
get_crate_data,
64
64
callback)
65
65
}
@@ -83,7 +83,7 @@ pub fn each_top_level_item_of_crate<F>(cstore: &cstore::CStore,
83
83
pub fn get_item_path ( tcx : & ty:: ctxt , def : DefId ) -> Vec < ast_map:: PathElem > {
84
84
let cstore = & tcx. sess . cstore ;
85
85
let cdata = cstore. get_crate_data ( def. krate ) ;
86
- let path = decoder:: get_item_path ( & * cdata, def. node ) ;
86
+ let path = decoder:: get_item_path ( & * cdata, def. xxx_node ) ;
87
87
88
88
cdata. with_local_path ( |cpath| {
89
89
let mut r = Vec :: with_capacity ( cpath. len ( ) + path. len ( ) ) ;
@@ -96,7 +96,7 @@ pub fn get_item_path(tcx: &ty::ctxt, def: DefId) -> Vec<ast_map::PathElem> {
96
96
pub fn get_item_name ( tcx : & ty:: ctxt , def : DefId ) -> ast:: Name {
97
97
let cstore = & tcx. sess . cstore ;
98
98
let cdata = cstore. get_crate_data ( def. krate ) ;
99
- decoder:: get_item_name ( & cstore. intr , & cdata, def. node )
99
+ decoder:: get_item_name ( & cstore. intr , & cdata, def. xxx_node )
100
100
}
101
101
102
102
pub enum FoundAst < ' ast > {
@@ -113,87 +113,87 @@ pub fn maybe_get_item_ast<'tcx>(tcx: &ty::ctxt<'tcx>, def: DefId,
113
113
-> FoundAst < ' tcx > {
114
114
let cstore = & tcx. sess . cstore ;
115
115
let cdata = cstore. get_crate_data ( def. krate ) ;
116
- decoder:: maybe_get_item_ast ( & * cdata, tcx, def. node , decode_inlined_item)
116
+ decoder:: maybe_get_item_ast ( & * cdata, tcx, def. xxx_node , decode_inlined_item)
117
117
}
118
118
119
119
/// Returns information about the given implementation.
120
120
pub fn get_impl_items ( cstore : & cstore:: CStore , impl_def_id : DefId )
121
121
-> Vec < ty:: ImplOrTraitItemId > {
122
122
let cdata = cstore. get_crate_data ( impl_def_id. krate ) ;
123
- decoder:: get_impl_items ( & * cdata, impl_def_id. node )
123
+ decoder:: get_impl_items ( & * cdata, impl_def_id. xxx_node )
124
124
}
125
125
126
126
pub fn get_impl_or_trait_item < ' tcx > ( tcx : & ty:: ctxt < ' tcx > , def : DefId )
127
127
-> ty:: ImplOrTraitItem < ' tcx > {
128
128
let cdata = tcx. sess . cstore . get_crate_data ( def. krate ) ;
129
129
decoder:: get_impl_or_trait_item ( tcx. sess . cstore . intr . clone ( ) ,
130
130
& * cdata,
131
- def. node ,
131
+ def. xxx_node ,
132
132
tcx)
133
133
}
134
134
135
135
pub fn get_trait_name ( cstore : & cstore:: CStore , def : DefId ) -> ast:: Name {
136
136
let cdata = cstore. get_crate_data ( def. krate ) ;
137
137
decoder:: get_trait_name ( cstore. intr . clone ( ) ,
138
138
& * cdata,
139
- def. node )
139
+ def. xxx_node )
140
140
}
141
141
142
142
pub fn is_static_method ( cstore : & cstore:: CStore , def : DefId ) -> bool {
143
143
let cdata = cstore. get_crate_data ( def. krate ) ;
144
- decoder:: is_static_method ( & * cdata, def. node )
144
+ decoder:: is_static_method ( & * cdata, def. xxx_node )
145
145
}
146
146
147
147
pub fn get_trait_item_def_ids ( cstore : & cstore:: CStore , def : DefId )
148
148
-> Vec < ty:: ImplOrTraitItemId > {
149
149
let cdata = cstore. get_crate_data ( def. krate ) ;
150
- decoder:: get_trait_item_def_ids ( & * cdata, def. node )
150
+ decoder:: get_trait_item_def_ids ( & * cdata, def. xxx_node )
151
151
}
152
152
153
153
pub fn get_item_variances ( cstore : & cstore:: CStore ,
154
154
def : DefId ) -> ty:: ItemVariances {
155
155
let cdata = cstore. get_crate_data ( def. krate ) ;
156
- decoder:: get_item_variances ( & * cdata, def. node )
156
+ decoder:: get_item_variances ( & * cdata, def. xxx_node )
157
157
}
158
158
159
159
pub fn get_provided_trait_methods < ' tcx > ( tcx : & ty:: ctxt < ' tcx > ,
160
160
def : DefId )
161
161
-> Vec < Rc < ty:: Method < ' tcx > > > {
162
162
let cstore = & tcx. sess . cstore ;
163
163
let cdata = cstore. get_crate_data ( def. krate ) ;
164
- decoder:: get_provided_trait_methods ( cstore. intr . clone ( ) , & * cdata, def. node , tcx)
164
+ decoder:: get_provided_trait_methods ( cstore. intr . clone ( ) , & * cdata, def. xxx_node , tcx)
165
165
}
166
166
167
167
pub fn get_associated_consts < ' tcx > ( tcx : & ty:: ctxt < ' tcx > , def : DefId )
168
168
-> Vec < Rc < ty:: AssociatedConst < ' tcx > > > {
169
169
let cstore = & tcx. sess . cstore ;
170
170
let cdata = cstore. get_crate_data ( def. krate ) ;
171
- decoder:: get_associated_consts ( cstore. intr . clone ( ) , & * cdata, def. node , tcx)
171
+ decoder:: get_associated_consts ( cstore. intr . clone ( ) , & * cdata, def. xxx_node , tcx)
172
172
}
173
173
174
174
pub fn get_type_name_if_impl ( cstore : & cstore:: CStore , def : DefId )
175
175
-> Option < ast:: Name > {
176
176
let cdata = cstore. get_crate_data ( def. krate ) ;
177
- decoder:: get_type_name_if_impl ( & * cdata, def. node )
177
+ decoder:: get_type_name_if_impl ( & * cdata, def. xxx_node )
178
178
}
179
179
180
180
pub fn get_methods_if_impl ( cstore : & cstore:: CStore ,
181
181
def : DefId )
182
182
-> Option < Vec < MethodInfo > > {
183
183
let cdata = cstore. get_crate_data ( def. krate ) ;
184
- decoder:: get_methods_if_impl ( cstore. intr . clone ( ) , & * cdata, def. node )
184
+ decoder:: get_methods_if_impl ( cstore. intr . clone ( ) , & * cdata, def. xxx_node )
185
185
}
186
186
187
187
pub fn get_item_attrs ( cstore : & cstore:: CStore ,
188
188
def_id : DefId )
189
189
-> Vec < ast:: Attribute > {
190
190
let cdata = cstore. get_crate_data ( def_id. krate ) ;
191
- decoder:: get_item_attrs ( & * cdata, def_id. node )
191
+ decoder:: get_item_attrs ( & * cdata, def_id. xxx_node )
192
192
}
193
193
194
194
pub fn get_struct_field_names ( cstore : & cstore:: CStore , def : DefId ) -> Vec < ast:: Name > {
195
195
let cdata = cstore. get_crate_data ( def. krate ) ;
196
- decoder:: get_struct_field_names ( & cstore. intr , & * cdata, def. node )
196
+ decoder:: get_struct_field_names ( & cstore. intr , & * cdata, def. xxx_node )
197
197
}
198
198
199
199
pub fn get_struct_field_attrs ( cstore : & cstore:: CStore , def : DefId ) -> FnvHashMap < ast:: NodeId ,
@@ -207,35 +207,35 @@ pub fn get_type<'tcx>(tcx: &ty::ctxt<'tcx>,
207
207
-> ty:: TypeScheme < ' tcx > {
208
208
let cstore = & tcx. sess . cstore ;
209
209
let cdata = cstore. get_crate_data ( def. krate ) ;
210
- decoder:: get_type ( & * cdata, def. node , tcx)
210
+ decoder:: get_type ( & * cdata, def. xxx_node , tcx)
211
211
}
212
212
213
213
pub fn get_trait_def < ' tcx > ( tcx : & ty:: ctxt < ' tcx > , def : DefId ) -> ty:: TraitDef < ' tcx > {
214
214
let cstore = & tcx. sess . cstore ;
215
215
let cdata = cstore. get_crate_data ( def. krate ) ;
216
- decoder:: get_trait_def ( & * cdata, def. node , tcx)
216
+ decoder:: get_trait_def ( & * cdata, def. xxx_node , tcx)
217
217
}
218
218
219
219
pub fn get_adt_def < ' tcx > ( tcx : & ty:: ctxt < ' tcx > , def : DefId ) -> ty:: AdtDefMaster < ' tcx > {
220
220
let cstore = & tcx. sess . cstore ;
221
221
let cdata = cstore. get_crate_data ( def. krate ) ;
222
- decoder:: get_adt_def ( & cstore. intr , & * cdata, def. node , tcx)
222
+ decoder:: get_adt_def ( & cstore. intr , & * cdata, def. xxx_node , tcx)
223
223
}
224
224
225
225
pub fn get_predicates < ' tcx > ( tcx : & ty:: ctxt < ' tcx > , def : DefId )
226
226
-> ty:: GenericPredicates < ' tcx >
227
227
{
228
228
let cstore = & tcx. sess . cstore ;
229
229
let cdata = cstore. get_crate_data ( def. krate ) ;
230
- decoder:: get_predicates ( & * cdata, def. node , tcx)
230
+ decoder:: get_predicates ( & * cdata, def. xxx_node , tcx)
231
231
}
232
232
233
233
pub fn get_super_predicates < ' tcx > ( tcx : & ty:: ctxt < ' tcx > , def : DefId )
234
234
-> ty:: GenericPredicates < ' tcx >
235
235
{
236
236
let cstore = & tcx. sess . cstore ;
237
237
let cdata = cstore. get_crate_data ( def. krate ) ;
238
- decoder:: get_super_predicates ( & * cdata, def. node , tcx)
238
+ decoder:: get_super_predicates ( & * cdata, def. xxx_node , tcx)
239
239
}
240
240
241
241
pub fn get_impl_polarity < ' tcx > ( tcx : & ty:: ctxt < ' tcx > ,
@@ -244,7 +244,7 @@ pub fn get_impl_polarity<'tcx>(tcx: &ty::ctxt<'tcx>,
244
244
{
245
245
let cstore = & tcx. sess . cstore ;
246
246
let cdata = cstore. get_crate_data ( def. krate ) ;
247
- decoder:: get_impl_polarity ( & * cdata, def. node )
247
+ decoder:: get_impl_polarity ( & * cdata, def. xxx_node )
248
248
}
249
249
250
250
pub fn get_custom_coerce_unsized_kind < ' tcx > (
@@ -254,7 +254,7 @@ pub fn get_custom_coerce_unsized_kind<'tcx>(
254
254
{
255
255
let cstore = & tcx. sess . cstore ;
256
256
let cdata = cstore. get_crate_data ( def. krate ) ;
257
- decoder:: get_custom_coerce_unsized_kind ( & * cdata, def. node )
257
+ decoder:: get_custom_coerce_unsized_kind ( & * cdata, def. xxx_node )
258
258
}
259
259
260
260
// Given a def_id for an impl, return the trait it implements,
@@ -264,7 +264,7 @@ pub fn get_impl_trait<'tcx>(tcx: &ty::ctxt<'tcx>,
264
264
-> Option < ty:: TraitRef < ' tcx > > {
265
265
let cstore = & tcx. sess . cstore ;
266
266
let cdata = cstore. get_crate_data ( def. krate ) ;
267
- decoder:: get_impl_trait ( & * cdata, def. node , tcx)
267
+ decoder:: get_impl_trait ( & * cdata, def. xxx_node , tcx)
268
268
}
269
269
270
270
pub fn get_native_libraries ( cstore : & cstore:: CStore , crate_num : ast:: CrateNum )
@@ -279,7 +279,7 @@ pub fn each_inherent_implementation_for_type<F>(cstore: &cstore::CStore,
279
279
F : FnMut ( DefId ) ,
280
280
{
281
281
let cdata = cstore. get_crate_data ( def_id. krate ) ;
282
- decoder:: each_inherent_implementation_for_type ( & * cdata, def_id. node , callback)
282
+ decoder:: each_inherent_implementation_for_type ( & * cdata, def_id. xxx_node , callback)
283
283
}
284
284
285
285
pub fn each_implementation_for_trait < F > ( cstore : & cstore:: CStore ,
@@ -300,15 +300,15 @@ pub fn get_trait_of_item(cstore: &cstore::CStore,
300
300
tcx : & ty:: ctxt )
301
301
-> Option < DefId > {
302
302
let cdata = cstore. get_crate_data ( def_id. krate ) ;
303
- decoder:: get_trait_of_item ( & * cdata, def_id. node , tcx)
303
+ decoder:: get_trait_of_item ( & * cdata, def_id. xxx_node , tcx)
304
304
}
305
305
306
306
pub fn get_tuple_struct_definition_if_ctor ( cstore : & cstore:: CStore ,
307
307
def_id : DefId )
308
308
-> Option < DefId >
309
309
{
310
310
let cdata = cstore. get_crate_data ( def_id. krate ) ;
311
- decoder:: get_tuple_struct_definition_if_ctor ( & * cdata, def_id. node )
311
+ decoder:: get_tuple_struct_definition_if_ctor ( & * cdata, def_id. xxx_node )
312
312
}
313
313
314
314
pub fn get_dylib_dependency_formats ( cstore : & cstore:: CStore ,
@@ -330,7 +330,7 @@ pub fn get_method_arg_names(cstore: &cstore::CStore, did: DefId)
330
330
-> Vec < String >
331
331
{
332
332
let cdata = cstore. get_crate_data ( did. krate ) ;
333
- decoder:: get_method_arg_names ( & * cdata, did. node )
333
+ decoder:: get_method_arg_names ( & * cdata, did. xxx_node )
334
334
}
335
335
336
336
pub fn get_reachable_ids ( cstore : & cstore:: CStore , cnum : ast:: CrateNum )
@@ -342,24 +342,24 @@ pub fn get_reachable_ids(cstore: &cstore::CStore, cnum: ast::CrateNum)
342
342
343
343
pub fn is_typedef ( cstore : & cstore:: CStore , did : DefId ) -> bool {
344
344
let cdata = cstore. get_crate_data ( did. krate ) ;
345
- decoder:: is_typedef ( & * cdata, did. node )
345
+ decoder:: is_typedef ( & * cdata, did. xxx_node )
346
346
}
347
347
348
348
pub fn is_const_fn ( cstore : & cstore:: CStore , did : DefId ) -> bool {
349
349
let cdata = cstore. get_crate_data ( did. krate ) ;
350
- decoder:: is_const_fn ( & * cdata, did. node )
350
+ decoder:: is_const_fn ( & * cdata, did. xxx_node )
351
351
}
352
352
353
353
pub fn is_impl ( cstore : & cstore:: CStore , did : DefId ) -> bool {
354
354
let cdata = cstore. get_crate_data ( did. krate ) ;
355
- decoder:: is_impl ( & * cdata, did. node )
355
+ decoder:: is_impl ( & * cdata, did. xxx_node )
356
356
}
357
357
358
358
pub fn get_stability ( cstore : & cstore:: CStore ,
359
359
def : DefId )
360
360
-> Option < attr:: Stability > {
361
361
let cdata = cstore. get_crate_data ( def. krate ) ;
362
- decoder:: get_stability ( & * cdata, def. node )
362
+ decoder:: get_stability ( & * cdata, def. xxx_node )
363
363
}
364
364
365
365
pub fn is_staged_api ( cstore : & cstore:: CStore , krate : ast:: CrateNum ) -> bool {
@@ -369,21 +369,21 @@ pub fn is_staged_api(cstore: &cstore::CStore, krate: ast::CrateNum) -> bool {
369
369
pub fn get_repr_attrs ( cstore : & cstore:: CStore , def : DefId )
370
370
-> Vec < attr:: ReprAttr > {
371
371
let cdata = cstore. get_crate_data ( def. krate ) ;
372
- decoder:: get_repr_attrs ( & * cdata, def. node )
372
+ decoder:: get_repr_attrs ( & * cdata, def. xxx_node )
373
373
}
374
374
375
375
pub fn is_defaulted_trait ( cstore : & cstore:: CStore , trait_def_id : DefId ) -> bool {
376
376
let cdata = cstore. get_crate_data ( trait_def_id. krate ) ;
377
- decoder:: is_defaulted_trait ( & * cdata, trait_def_id. node )
377
+ decoder:: is_defaulted_trait ( & * cdata, trait_def_id. xxx_node )
378
378
}
379
379
380
380
pub fn is_default_impl ( cstore : & cstore:: CStore , impl_did : DefId ) -> bool {
381
381
let cdata = cstore. get_crate_data ( impl_did. krate ) ;
382
- decoder:: is_default_impl ( & * cdata, impl_did. node )
382
+ decoder:: is_default_impl ( & * cdata, impl_did. xxx_node )
383
383
}
384
384
385
385
pub fn is_extern_fn ( cstore : & cstore:: CStore , did : DefId ,
386
386
tcx : & ty:: ctxt ) -> bool {
387
387
let cdata = cstore. get_crate_data ( did. krate ) ;
388
- decoder:: is_extern_fn ( & * cdata, did. node , tcx)
388
+ decoder:: is_extern_fn ( & * cdata, did. xxx_node , tcx)
389
389
}
0 commit comments