X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_expand%2Fsrc%2Fproc_macro_server.rs;h=341ae18541b3796a5c58c2a89cfe9c1051fc181b;hb=d6f0642827e21a088b0130c84857d84f5433301d;hp=af38077b08060b43d350994a2be5e158a220f113;hpb=fc9e2c1081354753346ab63ceebb3f44c7e384ae;p=rust.git diff --git a/compiler/rustc_expand/src/proc_macro_server.rs b/compiler/rustc_expand/src/proc_macro_server.rs index af38077b080..341ae18541b 100644 --- a/compiler/rustc_expand/src/proc_macro_server.rs +++ b/compiler/rustc_expand/src/proc_macro_server.rs @@ -597,8 +597,8 @@ fn eq(&mut self, file1: &Self::SourceFile, file2: &Self::SourceFile) -> bool { } fn path(&mut self, file: &Self::SourceFile) -> String { - match file.name { - FileName::Real(ref name) => name + match &file.name { + FileName::Real(name) => name .local_path() .expect("attempting to get a file path in an imported file in `proc_macro::SourceFile::path`") .to_str()