diff --git a/compiler/rustc_codegen_ssa/src/back/write.rs b/compiler/rustc_codegen_ssa/src/back/write.rs index 5ce39e88ca3..fcaae23d0b4 100644 --- a/compiler/rustc_codegen_ssa/src/back/write.rs +++ b/compiler/rustc_codegen_ssa/src/back/write.rs @@ -2057,7 +2057,7 @@ pub fn submit_pre_lto_module_to_llvm( }))); } -pub fn pre_lto_bitcode_filename(module_name: &str) -> String { +fn pre_lto_bitcode_filename(module_name: &str) -> String { format!("{module_name}.{PRE_LTO_BC_EXT}") }