]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_metadata/src/fs.rs
Rollup merge of #104182 - gabhijit:ipv6-in6addr-any-doc-fix, r=m-ou-se
[rust.git] / compiler / rustc_metadata / src / fs.rs
index 4fa440c7ca691128fa8c03012ff8c03efcdc1bab..7601f6bd3221efaae15ef9b76f4c54366cd9628c 100644 (file)
@@ -61,8 +61,7 @@ enum MetadataKind {
         .unwrap_or(MetadataKind::None);
 
     let crate_name = tcx.crate_name(LOCAL_CRATE);
-    let out_filename =
-        filename_for_metadata(tcx.sess, crate_name.as_str(), tcx.output_filenames(()));
+    let out_filename = filename_for_metadata(tcx.sess, crate_name, tcx.output_filenames(()));
     // To avoid races with another rustc process scanning the output directory,
     // we need to write the file somewhere else and atomically move it to its
     // final destination, with an `fs::rename` call. In order for the rename to