Add comment

This commit is contained in:
Florian Diebold 2021-04-04 13:23:22 +02:00
parent ebdfc932e7
commit cde3857897

View file

@ -16,7 +16,10 @@ use crate::{
TyDefId, TyKind, TypeWalk, ValueTyDefId, TyDefId, TyKind, TypeWalk, ValueTyDefId,
}; };
/// This is a builder for `Ty` or anything that needs a `Substitution`.
pub struct TyBuilder<D> { pub struct TyBuilder<D> {
/// The `data` field is used to keep track of what we're building (e.g. an
/// ADT, a `TraitRef`, ...).
data: D, data: D,
vec: SmallVec<[GenericArg; 2]>, vec: SmallVec<[GenericArg; 2]>,
param_count: usize, param_count: usize,