We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebd5c6b commit 04a7bf5Copy full SHA for 04a7bf5
1 file changed
src/array.jl
@@ -12,6 +12,8 @@ function hasfieldcount(@nospecialize(dt))
12
return true
13
end
14
15
+explain_nonisbits(@nospecialize(T), depth=0) = " "^depth * "$T is not a bitstype\n"
16
+
17
function explain_eltype(@nospecialize(T), depth=0; maxdepth=10)
18
depth > maxdepth && return ""
19
@@ -28,7 +30,7 @@ function explain_eltype(@nospecialize(T), depth=0; maxdepth=10)
28
30
msg = " "^depth * "$T is a struct that's not allocated inline\n"
29
31
for U in fieldtypes(T)
32
if !Base.allocatedinline(U)
- msg *= explain_nonisbits(U, depth+1)
33
+ ms *= explain_nonisbits(U, depth+1)
34
35
36
else
0 commit comments