Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/load-cargo/src/lib.rs')
-rw-r--r--crates/load-cargo/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/load-cargo/src/lib.rs b/crates/load-cargo/src/lib.rs
index 96c95ec277..4a97a5f05e 100644
--- a/crates/load-cargo/src/lib.rs
+++ b/crates/load-cargo/src/lib.rs
@@ -705,8 +705,8 @@ impl ProcMacroExpander for Expander {
let call_site_ast_id = macro_call_loc.kind.erased_ast_id();
if let Some(editioned_file_id) = call_site_file.file_id() {
- let range = db
- .ast_id_map(editioned_file_id.into())
+ let range = hir_expand::HirFileId::from(editioned_file_id)
+ .ast_id_map(db)
.get_erased(call_site_ast_id)
.text_range();