aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/hir_ty/src/builder.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/hir_ty/src/builder.rs b/crates/hir_ty/src/builder.rs
index 4d3b4eade..4a9a8058f 100644
--- a/crates/hir_ty/src/builder.rs
+++ b/crates/hir_ty/src/builder.rs
@@ -16,7 +16,10 @@ use crate::{
16 TyDefId, TyKind, TypeWalk, ValueTyDefId, 16 TyDefId, TyKind, TypeWalk, ValueTyDefId,
17}; 17};
18 18
19/// This is a builder for `Ty` or anything that needs a `Substitution`.
19pub struct TyBuilder<D> { 20pub struct TyBuilder<D> {
21 /// The `data` field is used to keep track of what we're building (e.g. an
22 /// ADT, a `TraitRef`, ...).
20 data: D, 23 data: D,
21 vec: SmallVec<[GenericArg; 2]>, 24 vec: SmallVec<[GenericArg; 2]>,
22 param_count: usize, 25 param_count: usize,