lowRISC / manticore

Apache License 2.0
16 stars 13 forks source link

[mem] Switch all uses of Arena to be trait objects #141

Closed mcy closed 3 years ago

mcy commented 3 years ago

This change is similar in spirit to 82ef871a, which trades off using a dyn for cutting down on type parameters. Similar reasoning applies here; in practice, calling into an arena is quite rare, and we were already forced into dyn Arenas to make other, more complex traits be object-safe, too.

Signed-off-by: Miguel Young de la Sota mcyoung@google.com