aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2021-04-08 17:49:30 +0100
committerJonas Schievink <[email protected]>2021-04-08 17:49:30 +0100
commit014774764a2a9bd029046e01c757c9892572c0b0 (patch)
tree29195bd210adb94fbf8d5780484c931d8ffd5d66
parent94d9fc2a28ea5d97e3a9293b9dac05bdb00304cc (diff)
Track recursion limit when expanding custom derive
-rw-r--r--crates/hir_def/src/nameres/collector.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir_def/src/nameres/collector.rs b/crates/hir_def/src/nameres/collector.rs
index 492d8c71f..6dbbe2d05 100644
--- a/crates/hir_def/src/nameres/collector.rs
+++ b/crates/hir_def/src/nameres/collector.rs
@@ -836,7 +836,7 @@ impl DefCollector<'_> {
836 self.resolve_derive_macro(directive.module_id, &path) 836 self.resolve_derive_macro(directive.module_id, &path)
837 }) { 837 }) {
838 Ok(call_id) => { 838 Ok(call_id) => {
839 resolved.push((directive.module_id, call_id, 0)); 839 resolved.push((directive.module_id, call_id, directive.depth));
840 res = ReachedFixedPoint::No; 840 res = ReachedFixedPoint::No;
841 return false; 841 return false;
842 } 842 }