]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/middle/def.rs
rustc: remove DefArg and DefBinding in favor of DefLocal.
[rust.git] / src / librustc / middle / def.rs
index ae45d827def50b66a6c90293421bbce5ab8a9d58..075efdf0725c7ca69b9136e296c75dc32e07f837 100644 (file)
@@ -22,7 +22,6 @@ pub enum Def {
     DefMod(ast::DefId),
     DefForeignMod(ast::DefId),
     DefStatic(ast::DefId, bool /* is_mutbl */),
-    DefArg(ast::NodeId, ast::BindingMode),
     DefLocal(ast::NodeId, ast::BindingMode),
     DefVariant(ast::DefId /* enum */, ast::DefId /* variant */, bool /* is_structure */),
     DefTy(ast::DefId, bool /* is_enum */),
@@ -30,7 +29,6 @@ pub enum Def {
     DefTrait(ast::DefId),
     DefPrimTy(ast::PrimTy),
     DefTyParam(ParamSpace, ast::DefId, uint),
-    DefBinding(ast::NodeId, ast::BindingMode),
     DefUse(ast::DefId),
     DefUpvar(ast::NodeId,  // id of closed over var
              Gc<Def>,     // closed over def
@@ -68,11 +66,9 @@ pub fn def_id(&self) -> ast::DefId {
             DefMethod(id, _) => {
                 id
             }
-            DefArg(id, _) |
             DefLocal(id, _) |
             DefSelfTy(id) |
             DefUpvar(id, _, _, _) |
-            DefBinding(id, _) |
             DefRegion(id) |
             DefTyParamBinder(id) |
             DefLabel(id) => {