@@ -321,7 +321,7 @@ fn need_pre_lto_bitcode_for_incr_comp(sess: &Session) -> bool {
321321
322322pub fn start_async_codegen < B : ExtraBackendMethods > (
323323 backend : B ,
324- tcx : TyCtxt ,
324+ tcx : TyCtxt < ' _ , ' _ , ' _ > ,
325325 time_graph : Option < TimeGraph > ,
326326 metadata : EncodedMetadata ,
327327 coordinator_receive : Receiver < Box < dyn Any + Send > > ,
@@ -947,7 +947,7 @@ enum MainThreadWorkerState {
947947
948948fn start_executing_work < B : ExtraBackendMethods > (
949949 backend : B ,
950- tcx : TyCtxt ,
950+ tcx : TyCtxt < ' _ , ' _ , ' _ > ,
951951 crate_info : & CrateInfo ,
952952 shared_emitter : SharedEmitter ,
953953 codegen_worker_send : Sender < Message < B > > ,
@@ -1683,7 +1683,7 @@ impl SharedEmitter {
16831683}
16841684
16851685impl Emitter for SharedEmitter {
1686- fn emit ( & mut self , db : & DiagnosticBuilder ) {
1686+ fn emit ( & mut self , db : & DiagnosticBuilder < ' _ > ) {
16871687 drop ( self . sender . send ( SharedEmitterMessage :: Diagnostic ( Diagnostic {
16881688 msg : db. message ( ) ,
16891689 code : db. code . clone ( ) ,
@@ -1822,7 +1822,7 @@ impl<B: ExtraBackendMethods> OngoingCodegen<B> {
18221822 }
18231823
18241824 pub fn submit_pre_codegened_module_to_llvm ( & self ,
1825- tcx : TyCtxt ,
1825+ tcx : TyCtxt < ' _ , ' _ , ' _ > ,
18261826 module : ModuleCodegen < B :: Module > ) {
18271827 self . wait_for_signal_to_codegen_item ( ) ;
18281828 self . check_for_errors ( tcx. sess ) ;
@@ -1832,7 +1832,7 @@ impl<B: ExtraBackendMethods> OngoingCodegen<B> {
18321832 submit_codegened_module_to_llvm ( & self . backend , tcx, module, cost) ;
18331833 }
18341834
1835- pub fn codegen_finished ( & self , tcx : TyCtxt ) {
1835+ pub fn codegen_finished ( & self , tcx : TyCtxt < ' _ , ' _ , ' _ > ) {
18361836 self . wait_for_signal_to_codegen_item ( ) ;
18371837 self . check_for_errors ( tcx. sess ) ;
18381838 drop ( self . coordinator_send . send ( Box :: new ( Message :: CodegenComplete :: < B > ) ) ) ;
@@ -1871,7 +1871,7 @@ impl<B: ExtraBackendMethods> OngoingCodegen<B> {
18711871
18721872pub fn submit_codegened_module_to_llvm < B : ExtraBackendMethods > (
18731873 _backend : & B ,
1874- tcx : TyCtxt ,
1874+ tcx : TyCtxt < ' _ , ' _ , ' _ > ,
18751875 module : ModuleCodegen < B :: Module > ,
18761876 cost : u64
18771877) {
@@ -1884,7 +1884,7 @@ pub fn submit_codegened_module_to_llvm<B: ExtraBackendMethods>(
18841884
18851885pub fn submit_post_lto_module_to_llvm < B : ExtraBackendMethods > (
18861886 _backend : & B ,
1887- tcx : TyCtxt ,
1887+ tcx : TyCtxt < ' _ , ' _ , ' _ > ,
18881888 module : CachedModuleCodegen
18891889) {
18901890 let llvm_work_item = WorkItem :: CopyPostLtoArtifacts ( module) ;
@@ -1896,7 +1896,7 @@ pub fn submit_post_lto_module_to_llvm<B: ExtraBackendMethods>(
18961896
18971897pub fn submit_pre_lto_module_to_llvm < B : ExtraBackendMethods > (
18981898 _backend : & B ,
1899- tcx : TyCtxt ,
1899+ tcx : TyCtxt < ' _ , ' _ , ' _ > ,
19001900 module : CachedModuleCodegen
19011901) {
19021902 let filename = pre_lto_bitcode_filename ( & module. name ) ;
@@ -1921,7 +1921,7 @@ pub fn pre_lto_bitcode_filename(module_name: &str) -> String {
19211921 format ! ( "{}.{}" , module_name, PRE_LTO_BC_EXT )
19221922}
19231923
1924- fn msvc_imps_needed ( tcx : TyCtxt ) -> bool {
1924+ fn msvc_imps_needed ( tcx : TyCtxt < ' _ , ' _ , ' _ > ) -> bool {
19251925 // This should never be true (because it's not supported). If it is true,
19261926 // something is wrong with commandline arg validation.
19271927 assert ! ( !( tcx. sess. opts. cg. linker_plugin_lto. enabled( ) &&
0 commit comments