Adopted to purely namespaced enums (rust-lang/rust#18973)