Make lookup non recursive and instead move the recursion just to
find_final_def. Use the fact that the recursion is in a simpler function to detected import loops and exit.
This commit is contained in:
parent
f3c3fc0353
commit
bdcb9d9b53
2 changed files with 90 additions and 60 deletions
|
|
@ -405,6 +405,7 @@ TEST_XFAILS_BOOT := $(TASK_XFAILS) \
|
|||
test/compile-fail/import.rs \
|
||||
test/compile-fail/import2.rs \
|
||||
test/compile-fail/import3.rs \
|
||||
test/compile-fail/import4.rs \
|
||||
test/compile-fail/bad-recv.rs \
|
||||
test/compile-fail/bad-send.rs \
|
||||
test/compile-fail/infinite-vec-type-recursion.rs \
|
||||
|
|
@ -485,6 +486,7 @@ TEST_XFAILS_RUSTC := $(filter-out \
|
|||
import.rs \
|
||||
import2.rs \
|
||||
import3.rs \
|
||||
import4.rs \
|
||||
while-type-error.rs \
|
||||
), \
|
||||
$(wildcard test/*/*.rs test/*/*.rc))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue