diff options
Diffstat (limited to 'crates/ra_ide_api/src/references.rs')
-rw-r--r-- | crates/ra_ide_api/src/references.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ra_ide_api/src/references.rs b/crates/ra_ide_api/src/references.rs index ca145f3e4..e7ebf9f6e 100644 --- a/crates/ra_ide_api/src/references.rs +++ b/crates/ra_ide_api/src/references.rs | |||
@@ -100,6 +100,7 @@ fn rename_mod( | |||
100 | if let Some(module) = source_binder::module_from_declaration(db, position.file_id, &ast_module) | 100 | if let Some(module) = source_binder::module_from_declaration(db, position.file_id, &ast_module) |
101 | { | 101 | { |
102 | let (file_id, module_source) = module.definition_source(db); | 102 | let (file_id, module_source) = module.definition_source(db); |
103 | let file_id = file_id.as_original_file(); | ||
103 | match module_source { | 104 | match module_source { |
104 | ModuleSource::SourceFile(..) => { | 105 | ModuleSource::SourceFile(..) => { |
105 | let mod_path: RelativePathBuf = db.file_relative_path(file_id); | 106 | let mod_path: RelativePathBuf = db.file_relative_path(file_id); |