Register snapshots.
auto merge of #18646 : eddyb/rust/snapshots, r=alexcrichton