Skip to content

Commit 0147747

Browse files
Track recursion limit when expanding custom derive
1 parent 94d9fc2 commit 0147747

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/hir_def/src/nameres/collector.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ impl DefCollector<'_> {
836836
self.resolve_derive_macro(directive.module_id, &path)
837837
}) {
838838
Ok(call_id) => {
839-
resolved.push((directive.module_id, call_id, 0));
839+
resolved.push((directive.module_id, call_id, directive.depth));
840840
res = ReachedFixedPoint::No;
841841
return false;
842842
}

0 commit comments

Comments
 (0)