aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_ty/src
diff options
context:
space:
mode:
authorFlorian Diebold <[email protected]>2021-04-04 12:23:22 +0100
committerFlorian Diebold <[email protected]>2021-04-04 12:23:22 +0100
commitcde3857897955558ed0e60cf8158e18d5c75d188 (patch)
treeccf4586bbb70ef9ebf429a2c79a5f409549ebf73 /crates/hir_ty/src
parentebdfc932e74ff11c8c14c513614212b7c07bf400 (diff)
Add comment
Diffstat (limited to 'crates/hir_ty/src')
-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,