diff options
author | Florian Diebold <[email protected]> | 2021-04-03 19:14:21 +0100 |
---|---|---|
committer | Florian Diebold <[email protected]> | 2021-04-04 12:16:38 +0100 |
commit | b15152c430237d6850ec709ac75aab269c4b7dee (patch) | |
tree | 0f5d88055a8890e0f5a10081e016724f6cdd57cc | |
parent | c9bcbf9a43eb0bf1a5255f704080305e568f0a36 (diff) |
Add TyBuilder
-rw-r--r-- | crates/hir_ty/src/lib.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/hir_ty/src/lib.rs b/crates/hir_ty/src/lib.rs index 4c3d904bf..a8ddb43f5 100644 --- a/crates/hir_ty/src/lib.rs +++ b/crates/hir_ty/src/lib.rs | |||
@@ -810,6 +810,12 @@ impl TypeWalk for CallableSig { | |||
810 | } | 810 | } |
811 | } | 811 | } |
812 | 812 | ||
813 | struct TyBuilder {} | ||
814 | |||
815 | impl TyBuilder { | ||
816 | |||
817 | } | ||
818 | |||
813 | impl Ty { | 819 | impl Ty { |
814 | pub fn unit() -> Self { | 820 | pub fn unit() -> Self { |
815 | TyKind::Tuple(0, Substitution::empty(&Interner)).intern(&Interner) | 821 | TyKind::Tuple(0, Substitution::empty(&Interner)).intern(&Interner) |