It would be nice if Builder deref'd to CodegenCx to avoid typing bx.cx() everywhere.
Also, since Builder now has to implement all the layout traits itself, we could start writing e.g. layout.field(bx, i) instead of layout.field(bx.cx(), i).
There are probably a few more ergonomics / cleanup things we could do here as well.
cc @nikomatsakis @sunfishcode @denismerigoux @bjorn3
It would be nice if
Builderderef'd toCodegenCxto avoid typingbx.cx()everywhere.Also, since
Buildernow has to implement all the layout traits itself, we could start writing e.g.layout.field(bx, i)instead oflayout.field(bx.cx(), i).There are probably a few more ergonomics / cleanup things we could do here as well.
cc @nikomatsakis @sunfishcode @denismerigoux @bjorn3