Remove unit

Closes https://github.com/rust-lang/rust/issues/18614.