rust icon indicating copy to clipboard operation
rust copied to clipboard

Merge def_mod and def_ty maybe

Open pcwalton opened this issue 14 years ago • 10 comments

Might simplify some code now that they're in one namespace.

pcwalton avatar Oct 16 '12 19:10 pcwalton

non-critical for 0.6, de-milestoning

graydon avatar Mar 25 '13 23:03 graydon

#6501 is in the queue, should land shortly

graydon avatar May 15 '13 17:05 graydon

Why should they be merged?

june0cho avatar May 16 '13 05:05 june0cho

Visiting for triage.

Paging @pcwalton for clarification.

This isn't user visible so not nominating.

metajack avatar Jul 18 '13 16:07 metajack

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.

thestinger avatar Oct 14 '13 14:10 thestinger

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?

steveklabnik avatar Aug 12 '14 20:08 steveklabnik

They changed to DefMod and DefTy

pcwalton avatar Aug 12 '14 21:08 pcwalton

Triage: I can confirm that DefMod and DefTy still live in the codebase

DefMod

DefTy

frewsxcv avatar Feb 02 '15 14:02 frewsxcv

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.

petrochenkov avatar Feb 14 '16 09:02 petrochenkov

I think this was fixed.

arielb1 avatar Feb 14 '16 11:02 arielb1