@@ -31,7 +31,7 @@ use rustc::middle::cstore::EncodedMetadata;
3131use rustc:: middle:: cstore:: MetadataLoader ;
3232use rustc:: dep_graph:: DepGraph ;
3333use rustc_target:: spec:: Target ;
34- use link:: out_filename;
34+ use crate :: link:: out_filename;
3535
3636pub use rustc_data_structures:: sync:: MetadataRef ;
3737
@@ -44,8 +44,8 @@ pub trait CodegenBackend {
4444 fn diagnostics ( & self ) -> & [ ( & ' static str , & ' static str ) ] { & [ ] }
4545
4646 fn metadata_loader ( & self ) -> Box < dyn MetadataLoader + Sync > ;
47- fn provide ( & self , _providers : & mut Providers ) ;
48- fn provide_extern ( & self , _providers : & mut Providers ) ;
47+ fn provide ( & self , _providers : & mut Providers < ' _ > ) ;
48+ fn provide_extern ( & self , _providers : & mut Providers < ' _ > ) ;
4949 fn codegen_crate < ' a , ' tcx > (
5050 & self ,
5151 tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
@@ -111,16 +111,16 @@ impl CodegenBackend for MetadataOnlyCodegenBackend {
111111 box NoLlvmMetadataLoader
112112 }
113113
114- fn provide ( & self , providers : & mut Providers ) {
115- :: symbol_names:: provide ( providers) ;
114+ fn provide ( & self , providers : & mut Providers < ' _ > ) {
115+ crate :: symbol_names:: provide ( providers) ;
116116
117117 providers. target_features_whitelist = |_tcx, _cnum| {
118118 Default :: default ( ) // Just a dummy
119119 } ;
120120 providers. is_reachable_non_generic = |_tcx, _defid| true ;
121121 providers. exported_symbols = |_tcx, _crate| Arc :: new ( Vec :: new ( ) ) ;
122122 }
123- fn provide_extern ( & self , providers : & mut Providers ) {
123+ fn provide_extern ( & self , providers : & mut Providers < ' _ > ) {
124124 providers. is_reachable_non_generic = |_tcx, _defid| true ;
125125 }
126126
@@ -131,12 +131,12 @@ impl CodegenBackend for MetadataOnlyCodegenBackend {
131131 ) -> Box < dyn Any > {
132132 use rustc_mir:: monomorphize:: item:: MonoItem ;
133133
134- :: check_for_rustc_errors_attr ( tcx) ;
135- :: symbol_names_test:: report_symbol_names ( tcx) ;
136- :: rustc_incremental:: assert_dep_graph ( tcx) ;
137- :: rustc_incremental:: assert_module_sources:: assert_module_sources ( tcx) ;
134+ crate :: check_for_rustc_errors_attr ( tcx) ;
135+ crate :: symbol_names_test:: report_symbol_names ( tcx) ;
136+ rustc_incremental:: assert_dep_graph ( tcx) ;
137+ rustc_incremental:: assert_module_sources:: assert_module_sources ( tcx) ;
138138 // FIXME: Fix this
139- // :: rustc::middle::dependency_format::calculate(tcx);
139+ // rustc::middle::dependency_format::calculate(tcx);
140140 let _ = tcx. link_args ( LOCAL_CRATE ) ;
141141 let _ = tcx. native_libraries ( LOCAL_CRATE ) ;
142142 let ( _, cgus) = tcx. collect_and_partition_mono_items ( LOCAL_CRATE ) ;
0 commit comments