Simplify NameClass::classify

This commit is contained in:
Lukas Wirth 2021-12-20 13:47:06 +01:00
parent 37a87708ae
commit a574434c3f
3 changed files with 102 additions and 116 deletions

View file

@ -1130,6 +1130,7 @@ to_def_impls![
(crate::TypeParam, ast::TypeParam, type_param_to_def),
(crate::LifetimeParam, ast::LifetimeParam, lifetime_param_to_def),
(crate::ConstParam, ast::ConstParam, const_param_to_def),
(crate::GenericParam, ast::GenericParam, generic_param_to_def),
(crate::MacroDef, ast::Macro, macro_to_def),
(crate::Local, ast::IdentPat, bind_pat_to_def),
(crate::Local, ast::SelfParam, self_param_to_def),