@@ -31,7 +31,7 @@ use rustc::middle::cstore::EncodedMetadata;
31
31
use rustc:: middle:: cstore:: MetadataLoader ;
32
32
use rustc:: dep_graph:: DepGraph ;
33
33
use rustc_target:: spec:: Target ;
34
- use link:: out_filename;
34
+ use crate :: link:: out_filename;
35
35
36
36
pub use rustc_data_structures:: sync:: MetadataRef ;
37
37
@@ -44,8 +44,8 @@ pub trait CodegenBackend {
44
44
fn diagnostics ( & self ) -> & [ ( & ' static str , & ' static str ) ] { & [ ] }
45
45
46
46
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 < ' _ > ) ;
49
49
fn codegen_crate < ' a , ' tcx > (
50
50
& self ,
51
51
tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
@@ -111,16 +111,16 @@ impl CodegenBackend for MetadataOnlyCodegenBackend {
111
111
box NoLlvmMetadataLoader
112
112
}
113
113
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) ;
116
116
117
117
providers. target_features_whitelist = |_tcx, _cnum| {
118
118
Default :: default ( ) // Just a dummy
119
119
} ;
120
120
providers. is_reachable_non_generic = |_tcx, _defid| true ;
121
121
providers. exported_symbols = |_tcx, _crate| Arc :: new ( Vec :: new ( ) ) ;
122
122
}
123
- fn provide_extern ( & self , providers : & mut Providers ) {
123
+ fn provide_extern ( & self , providers : & mut Providers < ' _ > ) {
124
124
providers. is_reachable_non_generic = |_tcx, _defid| true ;
125
125
}
126
126
@@ -131,12 +131,12 @@ impl CodegenBackend for MetadataOnlyCodegenBackend {
131
131
) -> Box < dyn Any > {
132
132
use rustc_mir:: monomorphize:: item:: MonoItem ;
133
133
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) ;
138
138
// FIXME: Fix this
139
- // :: rustc::middle::dependency_format::calculate(tcx);
139
+ // rustc::middle::dependency_format::calculate(tcx);
140
140
let _ = tcx. link_args ( LOCAL_CRATE ) ;
141
141
let _ = tcx. native_libraries ( LOCAL_CRATE ) ;
142
142
let ( _, cgus) = tcx. collect_and_partition_mono_items ( LOCAL_CRATE ) ;
0 commit comments