@@ -28,7 +28,7 @@ use rustc::hir::def::{self, DefKind, PartialRes, CtorKind, CtorOf, NonMacroAttrK
28
28
use rustc:: hir:: def:: Namespace :: * ;
29
29
use rustc:: hir:: def_id:: { CRATE_DEF_INDEX , LOCAL_CRATE , CrateNum , DefId } ;
30
30
use rustc:: hir:: { TraitMap , GlobMap } ;
31
- use rustc:: ty:: { self , DefIdTree } ;
31
+ use rustc:: ty:: { self , DefIdTree , ResolverOutputs } ;
32
32
use rustc:: util:: nodemap:: { NodeMap , NodeSet , FxHashMap , FxHashSet , DefIdMap } ;
33
33
use rustc:: span_bug;
34
34
@@ -1236,38 +1236,34 @@ impl<'a> Resolver<'a> {
1236
1236
Default :: default ( )
1237
1237
}
1238
1238
1239
- pub fn into_outputs ( self ) -> ( Definitions , ty:: Resolutions ) {
1240
- (
1241
- self . definitions ,
1242
- ty:: Resolutions {
1243
- extern_crate_map : self . extern_crate_map ,
1244
- export_map : self . export_map ,
1245
- trait_map : self . trait_map ,
1246
- glob_map : self . glob_map ,
1247
- maybe_unused_trait_imports : self . maybe_unused_trait_imports ,
1248
- maybe_unused_extern_crates : self . maybe_unused_extern_crates ,
1249
- extern_prelude : self . extern_prelude . iter ( ) . map ( |( ident, entry) | {
1250
- ( ident. name , entry. introduced_by_item )
1251
- } ) . collect ( ) ,
1252
- } ,
1253
- )
1254
- }
1255
-
1256
- pub fn clone_outputs ( & self ) -> ( Definitions , ty:: Resolutions ) {
1257
- (
1258
- self . definitions . clone ( ) ,
1259
- ty:: Resolutions {
1260
- extern_crate_map : self . extern_crate_map . clone ( ) ,
1261
- export_map : self . export_map . clone ( ) ,
1262
- trait_map : self . trait_map . clone ( ) ,
1263
- glob_map : self . glob_map . clone ( ) ,
1264
- maybe_unused_trait_imports : self . maybe_unused_trait_imports . clone ( ) ,
1265
- maybe_unused_extern_crates : self . maybe_unused_extern_crates . clone ( ) ,
1266
- extern_prelude : self . extern_prelude . iter ( ) . map ( |( ident, entry) | {
1267
- ( ident. name , entry. introduced_by_item )
1268
- } ) . collect ( ) ,
1269
- } ,
1270
- )
1239
+ pub fn into_outputs ( self ) -> ResolverOutputs {
1240
+ ResolverOutputs {
1241
+ definitions : self . definitions ,
1242
+ extern_crate_map : self . extern_crate_map ,
1243
+ export_map : self . export_map ,
1244
+ trait_map : self . trait_map ,
1245
+ glob_map : self . glob_map ,
1246
+ maybe_unused_trait_imports : self . maybe_unused_trait_imports ,
1247
+ maybe_unused_extern_crates : self . maybe_unused_extern_crates ,
1248
+ extern_prelude : self . extern_prelude . iter ( ) . map ( |( ident, entry) | {
1249
+ ( ident. name , entry. introduced_by_item )
1250
+ } ) . collect ( ) ,
1251
+ }
1252
+ }
1253
+
1254
+ pub fn clone_outputs ( & self ) -> ResolverOutputs {
1255
+ ResolverOutputs {
1256
+ definitions : self . definitions . clone ( ) ,
1257
+ extern_crate_map : self . extern_crate_map . clone ( ) ,
1258
+ export_map : self . export_map . clone ( ) ,
1259
+ trait_map : self . trait_map . clone ( ) ,
1260
+ glob_map : self . glob_map . clone ( ) ,
1261
+ maybe_unused_trait_imports : self . maybe_unused_trait_imports . clone ( ) ,
1262
+ maybe_unused_extern_crates : self . maybe_unused_extern_crates . clone ( ) ,
1263
+ extern_prelude : self . extern_prelude . iter ( ) . map ( |( ident, entry) | {
1264
+ ( ident. name , entry. introduced_by_item )
1265
+ } ) . collect ( ) ,
1266
+ }
1271
1267
}
1272
1268
1273
1269
fn non_macro_attr ( & self , mark_used : bool ) -> Lrc < SyntaxExtension > {
0 commit comments