]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_codegen_ssa/src/back/write.rs
Rollup merge of #83353 - m-ou-se:io-error-avoid-alloc, r=nagisa
[rust.git] / compiler / rustc_codegen_ssa / src / back / write.rs
index 854aaac757fb013a32b17c1cbe73ffd8314bdc31..490b3d33112840aba9f70e96a588d61cb4122866 100644 (file)
@@ -1958,7 +1958,7 @@ pub fn submit_pre_lto_module_to_llvm<B: ExtraBackendMethods>(
         .unwrap_or_else(|e| panic!("failed to open bitcode file `{}`: {}", bc_path.display(), e));
 
     let mmap = unsafe {
-        memmap::Mmap::map(&file).unwrap_or_else(|e| {
+        memmap2::Mmap::map(&file).unwrap_or_else(|e| {
             panic!("failed to mmap bitcode file `{}`: {}", bc_path.display(), e)
         })
     };