mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-10 21:58:37 +00:00
Re-implement InFile wrappers as type aliases over generic InFileWrapper
This commit is contained in:
parent
30093a6d81
commit
c43078f99d
13 changed files with 151 additions and 107 deletions
|
@ -533,7 +533,7 @@ fn source_edit_from_def(
|
|||
}
|
||||
},
|
||||
};
|
||||
file_id = source.file_id.file_id();
|
||||
file_id = Some(source.file_id);
|
||||
if let Either::Left(pat) = source.value {
|
||||
let name_range = pat.name().unwrap().syntax().text_range();
|
||||
// special cases required for renaming fields/locals in Record patterns
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue