register snapshots
fix build with the new snapshot compiler
auto merge of #8476 : thestinger/rust/snapshot, r=brson