Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-def/src/attrs/docs.rs')
-rw-r--r--crates/hir-def/src/attrs/docs.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/hir-def/src/attrs/docs.rs b/crates/hir-def/src/attrs/docs.rs
index 0d01d54786..69eac7b3c9 100644
--- a/crates/hir-def/src/attrs/docs.rs
+++ b/crates/hir-def/src/attrs/docs.rs
@@ -390,7 +390,7 @@ fn expand_doc_macro_call<'db>(
.value?;
expander.recursion_depth += 1;
- let parse = expander.db.parse_macro_expansion(call_id).value.0.clone();
+ let parse = call_id.parse_macro_expansion(expander.db).value.0.clone();
let expr = parse.cast::<ast::Expr>().map(|parse| parse.tree())?;
expander.recursion_depth -= 1;
@@ -401,7 +401,7 @@ fn expand_doc_macro_call<'db>(
let new_source_ctx = DocExprSourceCtx {
resolver: source_ctx.resolver.clone(),
file_id: expansion_file_id,
- ast_id_map: expander.db.ast_id_map(expansion_file_id),
+ ast_id_map: expansion_file_id.ast_id_map(expander.db),
span_map: expander.db.span_map(expansion_file_id),
};
Some((expr, new_source_ctx))
@@ -456,7 +456,7 @@ fn extend_with_attrs<'a, 'db>(
DocExprSourceCtx {
resolver,
file_id,
- ast_id_map: db.ast_id_map(file_id),
+ ast_id_map: file_id.ast_id_map(db),
span_map: db.span_map(file_id),
},
)