Skip to content
This repository was archived by the owner on May 27, 2021. It is now read-only.

Commit a3b5e6c

Browse files
committed
Limit deptch of nonisbits-explanation tree and work around JuliaLang/julia#33347.
Fixes (the original issue from) #408.
1 parent 3e41242 commit a3b5e6c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/compiler/validation.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ function hasfieldcount(@nospecialize(dt))
3838
return true
3939
end
4040

41-
function explain_nonisbits(@nospecialize(dt), depth=1)
41+
function explain_nonisbits(@nospecialize(dt), depth=1; maxdepth=10)
42+
dt===Module && return "" # work around JuliaLang/julia#33347
43+
depth > maxdepth && return ""
4244
hasfieldcount(dt) || return ""
4345
msg = ""
4446
for (ft, fn) in zip(fieldtypes(dt), fieldnames(dt))

0 commit comments

Comments
 (0)