Skip to content

Commit db471f1

Browse files
committed
Rename Param to Parameter
1 parent b1c6c4e commit db471f1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

chalk-integration/src/lowering.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ struct AssociatedTyLookup {
8585
}
8686

8787
enum ApplyTypeLookup<'k> {
88-
Param(&'k chalk_ir::WithKind<ChalkIr, BoundVar>),
88+
Parameter(&'k chalk_ir::WithKind<ChalkIr, BoundVar>),
8989
Adt(AdtId<ChalkIr>),
9090
FnDef(FnDefId<ChalkIr>),
9191
Closure(ClosureId<ChalkIr>),
@@ -117,7 +117,7 @@ impl Env<'_> {
117117
};
118118

119119
match self.lookup_apply_type(name) {
120-
Ok(ApplyTypeLookup::Param(p)) => {
120+
Ok(ApplyTypeLookup::Parameter(p)) => {
121121
let b = p.skip_kind();
122122
match &p.kind {
123123
chalk_ir::VariableKind::Ty(_) => Ok(chalk_ir::TyData::BoundVar(*b)
@@ -165,7 +165,7 @@ impl Env<'_> {
165165

166166
fn lookup_apply_type(&self, name: &Identifier) -> LowerResult<ApplyTypeLookup> {
167167
if let Some(id) = self.parameter_map.get(&name.str) {
168-
return Ok(ApplyTypeLookup::Param(id));
168+
return Ok(ApplyTypeLookup::Parameter(id));
169169
}
170170

171171
if let Some(id) = self.adt_ids.get(&name.str) {
@@ -1357,7 +1357,7 @@ impl LowerWithEnv for Ty {
13571357

13581358
Ty::Apply { name, ref args } => {
13591359
let (apply_name, k) = match env.lookup_apply_type(&name)? {
1360-
ApplyTypeLookup::Param(_) => {
1360+
ApplyTypeLookup::Parameter(_) => {
13611361
return Err(RustIrError::CannotApplyTypeParameter(name.clone()))
13621362
}
13631363

0 commit comments

Comments
 (0)