Skip to content

Commit cde3857

Browse files
committed
Add comment
1 parent ebdfc93 commit cde3857

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/hir_ty/src/builder.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ use crate::{
1616
TyDefId, TyKind, TypeWalk, ValueTyDefId,
1717
};
1818

19+
/// This is a builder for `Ty` or anything that needs a `Substitution`.
1920
pub struct TyBuilder<D> {
21+
/// The `data` field is used to keep track of what we're building (e.g. an
22+
/// ADT, a `TraitRef`, ...).
2023
data: D,
2124
vec: SmallVec<[GenericArg; 2]>,
2225
param_count: usize,

0 commit comments

Comments
 (0)