@@ -860,7 +860,7 @@ impl<'a, 'tcx> Visitor<'tcx> for Resolver<'a> {
860
860
FnKind :: ItemFn ( _, ref header, ..) =>
861
861
( FnItemRibKind , & header. asyncness . node ) ,
862
862
FnKind :: Method ( _, ref sig, _, _) =>
863
- ( TraitOrImplItemRibKind , & sig. header . asyncness . node ) ,
863
+ ( AssocItemRibKind , & sig. header . asyncness . node ) ,
864
864
FnKind :: Closure ( _) =>
865
865
// Async closures aren't resolved through `visit_fn`-- they're
866
866
// processed separately
@@ -1033,7 +1033,7 @@ enum RibKind<'a> {
1033
1033
/// methods or associated types. Allow references to ty params that impl or trait
1034
1034
/// binds. Disallow any other upvars (including other ty params that are
1035
1035
/// upvars).
1036
- TraitOrImplItemRibKind ,
1036
+ AssocItemRibKind ,
1037
1037
1038
1038
/// We passed through a function definition. Disallow upvars.
1039
1039
/// Permit only those const parameters that are specified in the function's generics.
@@ -2612,7 +2612,7 @@ impl<'a> Resolver<'a> {
2612
2612
2613
2613
for trait_item in trait_items {
2614
2614
let generic_params = HasGenericParams ( & trait_item. generics ,
2615
- TraitOrImplItemRibKind ) ;
2615
+ AssocItemRibKind ) ;
2616
2616
this. with_generic_param_rib ( generic_params, |this| {
2617
2617
match trait_item. node {
2618
2618
TraitItemKind :: Const ( ref ty, ref default) => {
@@ -2899,7 +2899,7 @@ impl<'a> Resolver<'a> {
2899
2899
2900
2900
// We also need a new scope for the impl item type parameters.
2901
2901
let generic_params = HasGenericParams ( & impl_item. generics ,
2902
- TraitOrImplItemRibKind ) ;
2902
+ AssocItemRibKind ) ;
2903
2903
this. with_generic_param_rib ( generic_params, |this| {
2904
2904
use self :: ResolutionError :: * ;
2905
2905
match impl_item. node {
@@ -4074,7 +4074,7 @@ impl<'a> Resolver<'a> {
4074
4074
seen. insert ( node_id, depth) ;
4075
4075
}
4076
4076
}
4077
- ItemRibKind | FnItemRibKind | TraitOrImplItemRibKind => {
4077
+ ItemRibKind | FnItemRibKind | AssocItemRibKind => {
4078
4078
// This was an attempt to access an upvar inside a
4079
4079
// named function item. This is not allowed, so we
4080
4080
// report an error.
@@ -4103,7 +4103,7 @@ impl<'a> Resolver<'a> {
4103
4103
Res :: Def ( DefKind :: TyParam , _) | Res :: SelfTy ( ..) => {
4104
4104
for rib in ribs {
4105
4105
match rib. kind {
4106
- NormalRibKind | TraitOrImplItemRibKind | ClosureRibKind ( ..) |
4106
+ NormalRibKind | AssocItemRibKind | ClosureRibKind ( ..) |
4107
4107
ModuleRibKind ( ..) | MacroDefinition ( ..) | ForwardTyParamBanRibKind |
4108
4108
ConstantItemRibKind | TyParamAsConstParamTy => {
4109
4109
// Nothing to do. Continue.
0 commit comments