From 014774764a2a9bd029046e01c757c9892572c0b0 Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Thu, 8 Apr 2021 18:49:30 +0200 Subject: Track recursion limit when expanding custom derive --- crates/hir_def/src/nameres/collector.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/hir_def') 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<'_> { self.resolve_derive_macro(directive.module_id, &path) }) { Ok(call_id) => { - resolved.push((directive.module_id, call_id, 0)); + resolved.push((directive.module_id, call_id, directive.depth)); res = ReachedFixedPoint::No; return false; } -- cgit v1.2.3