@@ -85,7 +85,7 @@ struct AssociatedTyLookup {
85
85
}
86
86
87
87
enum ApplyTypeLookup < ' k > {
88
- Param ( & ' k chalk_ir:: WithKind < ChalkIr , BoundVar > ) ,
88
+ Parameter ( & ' k chalk_ir:: WithKind < ChalkIr , BoundVar > ) ,
89
89
Adt ( AdtId < ChalkIr > ) ,
90
90
FnDef ( FnDefId < ChalkIr > ) ,
91
91
Closure ( ClosureId < ChalkIr > ) ,
@@ -117,7 +117,7 @@ impl Env<'_> {
117
117
} ;
118
118
119
119
match self . lookup_apply_type ( name) {
120
- Ok ( ApplyTypeLookup :: Param ( p) ) => {
120
+ Ok ( ApplyTypeLookup :: Parameter ( p) ) => {
121
121
let b = p. skip_kind ( ) ;
122
122
match & p. kind {
123
123
chalk_ir:: VariableKind :: Ty ( _) => Ok ( chalk_ir:: TyData :: BoundVar ( * b)
@@ -165,7 +165,7 @@ impl Env<'_> {
165
165
166
166
fn lookup_apply_type ( & self , name : & Identifier ) -> LowerResult < ApplyTypeLookup > {
167
167
if let Some ( id) = self . parameter_map . get ( & name. str ) {
168
- return Ok ( ApplyTypeLookup :: Param ( id) ) ;
168
+ return Ok ( ApplyTypeLookup :: Parameter ( id) ) ;
169
169
}
170
170
171
171
if let Some ( id) = self . adt_ids . get ( & name. str ) {
@@ -1357,7 +1357,7 @@ impl LowerWithEnv for Ty {
1357
1357
1358
1358
Ty :: Apply { name, ref args } => {
1359
1359
let ( apply_name, k) = match env. lookup_apply_type ( & name) ? {
1360
- ApplyTypeLookup :: Param ( _) => {
1360
+ ApplyTypeLookup :: Parameter ( _) => {
1361
1361
return Err ( RustIrError :: CannotApplyTypeParameter ( name. clone ( ) ) )
1362
1362
}
1363
1363
0 commit comments