@@ -321,7 +321,7 @@ fn need_pre_lto_bitcode_for_incr_comp(sess: &Session) -> bool {
321
321
322
322
pub fn start_async_codegen < B : ExtraBackendMethods > (
323
323
backend : B ,
324
- tcx : TyCtxt ,
324
+ tcx : TyCtxt < ' _ , ' _ , ' _ > ,
325
325
time_graph : Option < TimeGraph > ,
326
326
metadata : EncodedMetadata ,
327
327
coordinator_receive : Receiver < Box < dyn Any + Send > > ,
@@ -947,7 +947,7 @@ enum MainThreadWorkerState {
947
947
948
948
fn start_executing_work < B : ExtraBackendMethods > (
949
949
backend : B ,
950
- tcx : TyCtxt ,
950
+ tcx : TyCtxt < ' _ , ' _ , ' _ > ,
951
951
crate_info : & CrateInfo ,
952
952
shared_emitter : SharedEmitter ,
953
953
codegen_worker_send : Sender < Message < B > > ,
@@ -1683,7 +1683,7 @@ impl SharedEmitter {
1683
1683
}
1684
1684
1685
1685
impl Emitter for SharedEmitter {
1686
- fn emit ( & mut self , db : & DiagnosticBuilder ) {
1686
+ fn emit ( & mut self , db : & DiagnosticBuilder < ' _ > ) {
1687
1687
drop ( self . sender . send ( SharedEmitterMessage :: Diagnostic ( Diagnostic {
1688
1688
msg : db. message ( ) ,
1689
1689
code : db. code . clone ( ) ,
@@ -1822,7 +1822,7 @@ impl<B: ExtraBackendMethods> OngoingCodegen<B> {
1822
1822
}
1823
1823
1824
1824
pub fn submit_pre_codegened_module_to_llvm ( & self ,
1825
- tcx : TyCtxt ,
1825
+ tcx : TyCtxt < ' _ , ' _ , ' _ > ,
1826
1826
module : ModuleCodegen < B :: Module > ) {
1827
1827
self . wait_for_signal_to_codegen_item ( ) ;
1828
1828
self . check_for_errors ( tcx. sess ) ;
@@ -1832,7 +1832,7 @@ impl<B: ExtraBackendMethods> OngoingCodegen<B> {
1832
1832
submit_codegened_module_to_llvm ( & self . backend , tcx, module, cost) ;
1833
1833
}
1834
1834
1835
- pub fn codegen_finished ( & self , tcx : TyCtxt ) {
1835
+ pub fn codegen_finished ( & self , tcx : TyCtxt < ' _ , ' _ , ' _ > ) {
1836
1836
self . wait_for_signal_to_codegen_item ( ) ;
1837
1837
self . check_for_errors ( tcx. sess ) ;
1838
1838
drop ( self . coordinator_send . send ( Box :: new ( Message :: CodegenComplete :: < B > ) ) ) ;
@@ -1871,7 +1871,7 @@ impl<B: ExtraBackendMethods> OngoingCodegen<B> {
1871
1871
1872
1872
pub fn submit_codegened_module_to_llvm < B : ExtraBackendMethods > (
1873
1873
_backend : & B ,
1874
- tcx : TyCtxt ,
1874
+ tcx : TyCtxt < ' _ , ' _ , ' _ > ,
1875
1875
module : ModuleCodegen < B :: Module > ,
1876
1876
cost : u64
1877
1877
) {
@@ -1884,7 +1884,7 @@ pub fn submit_codegened_module_to_llvm<B: ExtraBackendMethods>(
1884
1884
1885
1885
pub fn submit_post_lto_module_to_llvm < B : ExtraBackendMethods > (
1886
1886
_backend : & B ,
1887
- tcx : TyCtxt ,
1887
+ tcx : TyCtxt < ' _ , ' _ , ' _ > ,
1888
1888
module : CachedModuleCodegen
1889
1889
) {
1890
1890
let llvm_work_item = WorkItem :: CopyPostLtoArtifacts ( module) ;
@@ -1896,7 +1896,7 @@ pub fn submit_post_lto_module_to_llvm<B: ExtraBackendMethods>(
1896
1896
1897
1897
pub fn submit_pre_lto_module_to_llvm < B : ExtraBackendMethods > (
1898
1898
_backend : & B ,
1899
- tcx : TyCtxt ,
1899
+ tcx : TyCtxt < ' _ , ' _ , ' _ > ,
1900
1900
module : CachedModuleCodegen
1901
1901
) {
1902
1902
let filename = pre_lto_bitcode_filename ( & module. name ) ;
@@ -1921,7 +1921,7 @@ pub fn pre_lto_bitcode_filename(module_name: &str) -> String {
1921
1921
format ! ( "{}.{}" , module_name, PRE_LTO_BC_EXT )
1922
1922
}
1923
1923
1924
- fn msvc_imps_needed ( tcx : TyCtxt ) -> bool {
1924
+ fn msvc_imps_needed ( tcx : TyCtxt < ' _ , ' _ , ' _ > ) -> bool {
1925
1925
// This should never be true (because it's not supported). If it is true,
1926
1926
// something is wrong with commandline arg validation.
1927
1927
assert ! ( !( tcx. sess. opts. cg. linker_plugin_lto. enabled( ) &&
0 commit comments