aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_ty/src/lower.rs
diff options
context:
space:
mode:
authorFlorian Diebold <[email protected]>2021-04-03 20:32:22 +0100
committerFlorian Diebold <[email protected]>2021-04-04 12:16:38 +0100
commit2ead65190ecaf1096a998d88d4aab8505ce88afa (patch)
treedd6aa27a384dfc08d4cf65da4207bc518d162ebc /crates/hir_ty/src/lower.rs
parent620769f32276bb7e8c580eae2c91ee535a06d9f8 (diff)
Move Ty::builtin to TyBuilder
Diffstat (limited to 'crates/hir_ty/src/lower.rs')
-rw-r--r--crates/hir_ty/src/lower.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir_ty/src/lower.rs b/crates/hir_ty/src/lower.rs
index 5e2024f0a..762b226e6 100644
--- a/crates/hir_ty/src/lower.rs
+++ b/crates/hir_ty/src/lower.rs
@@ -1216,7 +1216,7 @@ impl_from!(FunctionId, StructId, UnionId, EnumVariantId, ConstId, StaticId for V
1216/// namespace. 1216/// namespace.
1217pub(crate) fn ty_query(db: &dyn HirDatabase, def: TyDefId) -> Binders<Ty> { 1217pub(crate) fn ty_query(db: &dyn HirDatabase, def: TyDefId) -> Binders<Ty> {
1218 match def { 1218 match def {
1219 TyDefId::BuiltinType(it) => Binders::new(0, Ty::builtin(it)), 1219 TyDefId::BuiltinType(it) => Binders::new(0, TyBuilder::builtin(it)),
1220 TyDefId::AdtId(it) => type_for_adt(db, it), 1220 TyDefId::AdtId(it) => type_for_adt(db, it),
1221 TyDefId::TypeAliasId(it) => type_for_type_alias(db, it), 1221 TyDefId::TypeAliasId(it) => type_for_type_alias(db, it),
1222 } 1222 }