Workaround rustc bug

There's an assert getting tripped in the metadata encoder