mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
Track recursion limit when expanding custom derive
This commit is contained in:
parent
94d9fc2a28
commit
014774764a
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user