Remove the unused obsolete enum_discrim type.
auto merge of #10677 : jld/rust/type-enum-discrim-rm, r=alexcrichton