@@ -29,7 +29,7 @@ use rustc::middle::cstore::EncodedMetadata;
2929use rustc:: middle:: cstore:: MetadataLoader ;
3030use rustc:: dep_graph:: DepGraph ;
3131use rustc_target:: spec:: Target ;
32- use link:: out_filename;
32+ use crate :: link:: out_filename;
3333
3434pub use rustc_data_structures:: sync:: MetadataRef ;
3535
@@ -42,8 +42,8 @@ pub trait CodegenBackend {
4242 fn diagnostics ( & self ) -> & [ ( & ' static str , & ' static str ) ] { & [ ] }
4343
4444 fn metadata_loader ( & self ) -> Box < dyn MetadataLoader + Sync > ;
45- fn provide ( & self , _providers : & mut Providers ) ;
46- fn provide_extern ( & self , _providers : & mut Providers ) ;
45+ fn provide ( & self , _providers : & mut Providers < ' _ > ) ;
46+ fn provide_extern ( & self , _providers : & mut Providers < ' _ > ) ;
4747 fn codegen_crate < ' a , ' tcx > (
4848 & self ,
4949 tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
@@ -109,16 +109,16 @@ impl CodegenBackend for MetadataOnlyCodegenBackend {
109109 box NoLlvmMetadataLoader
110110 }
111111
112- fn provide ( & self , providers : & mut Providers ) {
113- :: symbol_names:: provide ( providers) ;
112+ fn provide ( & self , providers : & mut Providers < ' _ > ) {
113+ crate :: symbol_names:: provide ( providers) ;
114114
115115 providers. target_features_whitelist = |_tcx, _cnum| {
116116 Default :: default ( ) // Just a dummy
117117 } ;
118118 providers. is_reachable_non_generic = |_tcx, _defid| true ;
119119 providers. exported_symbols = |_tcx, _crate| Arc :: new ( Vec :: new ( ) ) ;
120120 }
121- fn provide_extern ( & self , providers : & mut Providers ) {
121+ fn provide_extern ( & self , providers : & mut Providers < ' _ > ) {
122122 providers. is_reachable_non_generic = |_tcx, _defid| true ;
123123 }
124124
@@ -129,12 +129,12 @@ impl CodegenBackend for MetadataOnlyCodegenBackend {
129129 ) -> Box < dyn Any > {
130130 use rustc_mir:: monomorphize:: item:: MonoItem ;
131131
132- :: check_for_rustc_errors_attr ( tcx) ;
133- :: symbol_names_test:: report_symbol_names ( tcx) ;
134- :: rustc_incremental:: assert_dep_graph ( tcx) ;
135- :: rustc_incremental:: assert_module_sources:: assert_module_sources ( tcx) ;
132+ crate :: check_for_rustc_errors_attr ( tcx) ;
133+ crate :: symbol_names_test:: report_symbol_names ( tcx) ;
134+ rustc_incremental:: assert_dep_graph ( tcx) ;
135+ rustc_incremental:: assert_module_sources:: assert_module_sources ( tcx) ;
136136 // FIXME: Fix this
137- // :: rustc::middle::dependency_format::calculate(tcx);
137+ // rustc::middle::dependency_format::calculate(tcx);
138138 let _ = tcx. link_args ( LOCAL_CRATE ) ;
139139 let _ = tcx. native_libraries ( LOCAL_CRATE ) ;
140140 let ( _, cgus) = tcx. collect_and_partition_mono_items ( LOCAL_CRATE ) ;
0 commit comments