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