Open waywardmonkeys opened 5 years ago
The Rust backend generates too many boxes.
It generates things like Box<Option<Box<ChiangMaiGoose>>> where it should only be Option<ChiangMaiGoose.
Box<Option<Box<ChiangMaiGoose>>>
Option<ChiangMaiGoose
An Option needn't be boxed. And I don't think that an enum needs to be boxed either. (ChiangMaiGoose is an enum in this case.)
Option
enum
ChiangMaiGoose
Could you help to provide an example of an input file that causes this situation ?
The Rust backend generates too many boxes.
It generates things like
Box<Option<Box<ChiangMaiGoose>>>
where it should only beOption<ChiangMaiGoose
.An
Option
needn't be boxed. And I don't think that anenum
needs to be boxed either. (ChiangMaiGoose
is anenum
in this case.)