Merge def_mod and def_ty maybe
Might simplify some code now that they're in one namespace.
non-critical for 0.6, de-milestoning
#6501 is in the queue, should land shortly
Why should they be merged?
Visiting for triage.
Paging @pcwalton for clarification.
This isn't user visible so not nominating.
I don't think this has happened, but all the names have been changed so it's bit hard to figure out exactly what was meant here.
steve@computer:~/src/rust$ git grep def_mod
steve@computer:~/src/rust$ git grep def_ty
src/librustc/middle/resolve.rs: // (The pattern matching def_tys
src/librustc/middle/ty.rs:macro_rules! def_type_content_sets(
src/librustc/middle/ty.rs:def_type_content_sets!(
steve@computer:~/src/rust$
Yup. These names are now totally gone. @pcwalton do you know what they changed into, and if this is relevant still?
They changed to DefMod and DefTy
This can be closed now, I believe.
def_mod and def_ty are now Def::{Mod, Enum, TyAlias and maybe Struct} and they are often used after resolve, when types and modules are treated very differently.
I think this was fixed.