Closed JSAbrahams closed 1 year ago
Clippy complains that the error variant of ParseResult is very large (and of a few others possibly). This means that the compiler has to reserve a lot of memory each time even if the value is Ok. See here.
ParseResult
Ok
Box the error variant.
parse
TypeResult
check
GenResult
generate
TypeErr is already in a vector, so it's on the heap.
TypeErr
Summary of current issue
Clippy complains that the error variant of
ParseResult
is very large (and of a few others possibly). This means that the compiler has to reserve a lot of memory each time even if the value isOk
. See here.Proposed change
Box the error variant.
ParseResult
inparse
stageTypeResult
incheck
stageGenResult
ingenerate
stage