(Also, since you're just writing `*did` and `*tps` below, the `ref`'s here are not necessary: matching by-value like `ty_enum(did, substs { tps, .. })` should work fine.)