Permit C-style enums in vector repeat length expressions (N.B. values only, not type signatures)
auto merge of #7827 : jdm/rust/enumlength, r=graydon

Allowing them in type signatures is a significant amount of extra work, unfortunately. This also doesn't apply to static values, which takes a different code path.