Commit 12a3d01
committed
Auto merge of rust-lang#17833 - edevil:fix_expansion_limit, r=Veykril
Reuse recursion limit as expansion limit
A configurable recursion limit was introduced by looking at the recursion_limit crate attribute. Instead of relying on a global constant we will reuse this value for expansion limit as well.
Addresses: rust-lang/rust-analyzer#8640 (comment)File tree
1 file changed
+8
-2
lines changed- src/tools/rust-analyzer/crates/hir-def/src/nameres
1 file changed
+8
-2
lines changedLines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | 59 | | |
61 | 60 | | |
62 | 61 | | |
| |||
1440 | 1439 | | |
1441 | 1440 | | |
1442 | 1441 | | |
1443 | | - | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
| 1449 | + | |
1444 | 1450 | | |
1445 | 1451 | | |
1446 | 1452 | | |
| |||
0 commit comments