Skip to content

Commit ee0ff08

Browse files
committed
fixup! allow fieldcount(T) == 0
1 parent 9a12a46 commit ee0ff08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/array.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function explain_eltype(@nospecialize(T), depth=0; maxdepth=10)
2222
msg *= explain_eltype(U, depth+1)
2323
end
2424
end
25-
elseif Base.ismutabletype(T)
25+
elseif Base.ismutabletype(T) && Base.datatype_fieldcount(T) != 0
2626
msg = " "^depth * "$T is a mutable type\n"
2727
elseif hasfieldcount(T)
2828
msg = " "^depth * "$T is a struct that's not allocated inline\n"

0 commit comments

Comments
 (0)