Skip to content

Commit

Permalink
Document a few fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Nadrieril committed Apr 29, 2024
1 parent 5700bff commit 363be26
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions frontend/exporter/src/types/copied.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1550,10 +1550,12 @@ pub struct Alias {
Clone, Debug, Serialize, Deserialize, JsonSchema, Hash, PartialEq, Eq, PartialOrd, Ord,
)]
pub enum AliasKind {
/// The projection of a trait type: `<Ty as Trait<...>>::N<...>`
/// The projection of a trait type: `<Ty as Trait<...>>::Type<...>`
Projection {
assoc_item: AssocItem,
/// The `impl Trait for Ty` in `Ty: Trait<..., Type = U>`.
impl_expr: ImplExpr,
/// The `Type` in `Ty: Trait<..., Type = U>`.
assoc_item: AssocItem,
},
Inherent,
Opaque,
Expand Down Expand Up @@ -3185,8 +3187,11 @@ impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, Term> for rustc_middle::ty::Term<'
Clone, Debug, Serialize, Deserialize, JsonSchema, Hash, PartialEq, Eq, PartialOrd, Ord,
)]
pub struct ProjectionPredicate {
/// The `impl Trait for Ty` in `Ty: Trait<..., Type = U>`.
pub impl_expr: ImplExpr,
/// The `Type` in `Ty: Trait<..., Type = U>`.
pub assoc_item: AssocItem,
/// The type `U` in `Ty: Trait<..., Type = U>`.
pub ty: Ty,
}

Expand Down

0 comments on commit 363be26

Please sign in to comment.