Skip to content

Commit ca0ae08

Browse files
committed
Write placeholder with type parameters in docs
1 parent 3ba7587 commit ca0ae08

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

chalk-solve/src/clauses/program_clauses.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,12 @@ impl<I: Interner> ToProgramClauses<I> for OpaqueTyDatum<I> {
123123
///
124124
/// ```notrust
125125
/// AliasEq(T<..> = HiddenTy) :- Reveal.
126-
/// AliasEq(T<..> = !T).
127-
/// Implemented(!T: A).
128-
/// Implemented(!T: B).
129-
/// Implemented(!T: Send) :- Implemented(HiddenTy: Send). // For all auto traits
126+
/// AliasEq(T<..> = !T<..>).
127+
/// Implemented(!T<..>: A).
128+
/// Implemented(!T<..>: B).
129+
/// Implemented(!T<..>: Send) :- Implemented(HiddenTy: Send). // For all auto traits
130130
/// ```
131-
/// where `!T` is the placeholder for the unnormalized type `T<..>`.
131+
/// where `!T<..>` is the placeholder for the unnormalized type `T<..>`.
132132
fn to_program_clauses(&self, builder: &mut ClauseBuilder<'_, I>) {
133133
let interner = builder.interner();
134134
let alias = AliasTy::Opaque(OpaqueTy {
@@ -151,7 +151,7 @@ impl<I: Interner> ToProgramClauses<I> for OpaqueTyDatum<I> {
151151
iter::once(DomainGoal::Reveal(())),
152152
);
153153

154-
// AliasEq(T<..> = !T).
154+
// AliasEq(T<..> = !T<..>).
155155
builder.push_fact(DomainGoal::Holds(
156156
AliasEq {
157157
alias: alias.clone(),
@@ -163,12 +163,12 @@ impl<I: Interner> ToProgramClauses<I> for OpaqueTyDatum<I> {
163163

164164
let opaque_ty_bound = &self.bound.skip_binders();
165165
for bound in &opaque_ty_bound.bounds {
166-
// Implemented(!T: Bound).
166+
// Implemented(!T<..>: Bound).
167167
builder.push_fact(bound.skip_binders().clone().into_well_formed_goal(interner));
168168
}
169169

170170
for auto_trait_id in builder.db.auto_traits() {
171-
// Implemented(!T: AutoTrait) :- Implemented(HiddenTy: AutoTrait).
171+
// Implemented(!T<..>: AutoTrait) :- Implemented(HiddenTy: AutoTrait).
172172
builder.push_clause(
173173
TraitRef {
174174
trait_id: auto_trait_id,

0 commit comments

Comments
 (0)