Skip to content

Commit 68cec9c

Browse files
committed
fix nits from jackh726
1 parent 234b855 commit 68cec9c

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

chalk-ir/src/debug.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,14 @@ impl<TF: TypeFamily> Debug for SeparatorTraitRef<'_, TF> {
165165

166166
impl<TF: TypeFamily> Debug for ProjectionTy<TF> {
167167
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error> {
168-
TF::debug_projection(self, fmt)
169-
.unwrap_or_else(|| write!(fmt, "({:?}){:?}", self.associated_ty_id, &self.substitution))
168+
TF::debug_projection(self, fmt).unwrap_or_else(|| {
169+
write!(
170+
fmt,
171+
"({:?}){:?}",
172+
self.associated_ty_id,
173+
self.substitution.with_angle()
174+
)
175+
})
170176
}
171177
}
172178

chalk-ir/src/family.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ pub trait TypeFamily: Debug + Copy + Eq + Ord + Hash {
155155
/// method).
156156
fn intern_goal(data: GoalData<Self>) -> Self::InternedGoal;
157157

158-
/// Lookup the `LifetimeData` that was interned to create a `InternedLifetime`.
159-
fn goal_data(lifetime: &Self::InternedGoal) -> &GoalData<Self>;
158+
/// Lookup the `GoalData` that was interned to create a `InternedGoal`.
159+
fn goal_data(goal: &Self::InternedGoal) -> &GoalData<Self>;
160160

161161
/// Create an "interned" substitution from `data`. This is not
162162
/// normally invoked directly; instead, you invoke
@@ -167,7 +167,7 @@ pub trait TypeFamily: Debug + Copy + Eq + Ord + Hash {
167167
) -> Result<Self::InternedSubstitution, E>;
168168

169169
/// Lookup the `SubstitutionData` that was interned to create a `InternedSubstitution`.
170-
fn substitution_data(lifetime: &Self::InternedSubstitution) -> &[Parameter<Self>];
170+
fn substitution_data(substitution: &Self::InternedSubstitution) -> &[Parameter<Self>];
171171
}
172172

173173
pub trait TargetTypeFamily<TF: TypeFamily>: TypeFamily {

0 commit comments

Comments
 (0)