We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b4a0020 + d9a58f4 commit b509262Copy full SHA for b509262
compiler/rustc_codegen_ssa/src/back/linker.rs
@@ -772,7 +772,7 @@ impl<'a> Linker for MsvcLinker<'a> {
772
// check to see if the file is there and just omit linking to it if it's
773
// not present.
774
let name = format!("{}.dll.lib", lib);
775
- if fs::metadata(&path.join(&name)).is_ok() {
+ if path.join(&name).exists() {
776
self.cmd.arg(name);
777
}
778
compiler/rustc_span/src/source_map.rs
@@ -109,7 +109,7 @@ pub struct RealFileLoader;
109
110
impl FileLoader for RealFileLoader {
111
fn file_exists(&self, path: &Path) -> bool {
112
- fs::metadata(path).is_ok()
+ path.exists()
113
114
115
fn read_file(&self, path: &Path) -> io::Result<String> {
0 commit comments