Change enums to namespaced (rust-lang/rust#18973)