Add TyBuilder

This commit is contained in:
Florian Diebold 2021-04-03 20:14:21 +02:00
parent c9bcbf9a43
commit b15152c430

View file

@ -810,6 +810,12 @@ impl TypeWalk for CallableSig {
} }
} }
struct TyBuilder {}
impl TyBuilder {
}
impl Ty { impl Ty {
pub fn unit() -> Self { pub fn unit() -> Self {
TyKind::Tuple(0, Substitution::empty(&Interner)).intern(&Interner) TyKind::Tuple(0, Substitution::empty(&Interner)).intern(&Interner)