mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Add comment
This commit is contained in:
parent
ebdfc932e7
commit
cde3857897
1 changed files with 3 additions and 0 deletions
|
@ -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,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue