rustc_expand: remove ref patterns

This commit is contained in:
Maybe Waffle
2022-12-23 17:34:23 +00:00
parent fc6cda8603
commit bddbf38af2
8 changed files with 75 additions and 82 deletions

View File

@@ -597,8 +597,8 @@ impl server::SourceFile for Rustc<'_, '_> {
}
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()