Initialize `macro_depth` to the file's macro depth in docs.rs and assoc.rs
diff --git a/crates/hir-def/src/attrs/docs.rs b/crates/hir-def/src/attrs/docs.rs index 876de36..0dd20c1 100644 --- a/crates/hir-def/src/attrs/docs.rs +++ b/crates/hir-def/src/attrs/docs.rs
@@ -449,7 +449,7 @@ DocMacroExpander { db, krate, - macro_depth: 0, + macro_depth: file_id.macro_expansion_depth(db), recursion_limit, resolver, file_id,
diff --git a/crates/hir-def/src/nameres/assoc.rs b/crates/hir-def/src/nameres/assoc.rs index 3f65829..8dea9a4 100644 --- a/crates/hir-def/src/nameres/assoc.rs +++ b/crates/hir-def/src/nameres/assoc.rs
@@ -169,7 +169,7 @@ container, items: Vec::new(), - macro_depth: 0, + macro_depth: file_id.macro_expansion_depth(db), macro_calls: ThinVec::new(), diagnostics: Vec::new(), }