Register new snapshots

Also convert a number of `static mut` to just a plain old `static` and remove
some unsafe blocks.
auto merge of #17939 : alexcrichton/rust/snapshots, r=sfackler

Also convert a number of `static mut` to just a plain old `static` and remove
some unsafe blocks.