@@ -41,7 +41,7 @@ fn emit_module(
41
41
42
42
unwind_context. emit ( & mut product) ;
43
43
44
- let tmp_file = tcx. output_filenames ( LOCAL_CRATE ) . temp_path ( OutputType :: Object , Some ( & name) ) ;
44
+ let tmp_file = tcx. output_filenames ( ( ) ) . temp_path ( OutputType :: Object , Some ( & name) ) ;
45
45
let obj = product. object . write ( ) . unwrap ( ) ;
46
46
if let Err ( err) = std:: fs:: write ( & tmp_file, obj) {
47
47
tcx. sess . fatal ( & format ! ( "error writing object file: {}" , err) ) ;
@@ -73,7 +73,7 @@ fn reuse_workproduct_for_cgu(
73
73
let work_product = cgu. work_product ( tcx) ;
74
74
if let Some ( saved_file) = & work_product. saved_file {
75
75
let obj_out = tcx
76
- . output_filenames ( LOCAL_CRATE )
76
+ . output_filenames ( ( ) )
77
77
. temp_path ( OutputType :: Object , Some ( & cgu. name ( ) . as_str ( ) ) ) ;
78
78
object = Some ( obj_out. clone ( ) ) ;
79
79
let source_file = rustc_incremental:: in_incr_comp_dir ( & incr_comp_session_dir, & saved_file) ;
@@ -179,7 +179,7 @@ pub(crate) fn run_aot(
179
179
let mut work_products = FxHashMap :: default ( ) ;
180
180
181
181
let cgus = if tcx. sess . opts . output_types . should_codegen ( ) {
182
- tcx. collect_and_partition_mono_items ( LOCAL_CRATE ) . 1
182
+ tcx. collect_and_partition_mono_items ( ( ) ) . 1
183
183
} else {
184
184
// If only `--emit metadata` is used, we shouldn't perform any codegen.
185
185
// Also `tcx.collect_and_partition_mono_items` may panic in that case.
@@ -265,7 +265,7 @@ pub(crate) fn run_aot(
265
265
. to_string ( ) ;
266
266
267
267
let tmp_file = tcx
268
- . output_filenames ( LOCAL_CRATE )
268
+ . output_filenames ( ( ) )
269
269
. temp_path ( OutputType :: Metadata , Some ( & metadata_cgu_name) ) ;
270
270
271
271
let obj = crate :: backend:: with_object ( tcx. sess , & metadata_cgu_name, |object| {
@@ -342,7 +342,7 @@ fn codegen_global_asm(tcx: TyCtxt<'_>, cgu_name: &str, global_asm: &str) {
342
342
. join ( "\n " ) ;
343
343
344
344
let output_object_file =
345
- tcx. output_filenames ( LOCAL_CRATE ) . temp_path ( OutputType :: Object , Some ( cgu_name) ) ;
345
+ tcx. output_filenames ( ( ) ) . temp_path ( OutputType :: Object , Some ( cgu_name) ) ;
346
346
347
347
// Assemble `global_asm`
348
348
let global_asm_object_file = add_file_stem_postfix ( output_object_file. clone ( ) , ".asm" ) ;
0 commit comments