aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_ty/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/hir_ty/src/lib.rs')
-rw-r--r--crates/hir_ty/src/lib.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/crates/hir_ty/src/lib.rs b/crates/hir_ty/src/lib.rs
index 3d134453f..4c0ebcfe3 100644
--- a/crates/hir_ty/src/lib.rs
+++ b/crates/hir_ty/src/lib.rs
@@ -169,7 +169,7 @@ pub enum Ty {
169 Closure { def: DefWithBodyId, expr: ExprId, substs: Substs }, 169 Closure { def: DefWithBodyId, expr: ExprId, substs: Substs },
170 170
171 /// Represents a foreign type declared in external blocks. 171 /// Represents a foreign type declared in external blocks.
172 ForeignType(TypeAliasId, Substs), 172 ForeignType(TypeAliasId),
173 173
174 /// A pointer to a function. Written as `fn() -> i32`. 174 /// A pointer to a function. Written as `fn() -> i32`.
175 /// 175 ///
@@ -755,7 +755,6 @@ impl Ty {
755 | Ty::Tuple(_, substs) 755 | Ty::Tuple(_, substs)
756 | Ty::OpaqueType(_, substs) 756 | Ty::OpaqueType(_, substs)
757 | Ty::AssociatedType(_, substs) 757 | Ty::AssociatedType(_, substs)
758 | Ty::ForeignType(_, substs)
759 | Ty::Closure { substs, .. } => { 758 | Ty::Closure { substs, .. } => {
760 assert_eq!(substs.len(), new_substs.len()); 759 assert_eq!(substs.len(), new_substs.len());
761 *substs = new_substs; 760 *substs = new_substs;
@@ -779,7 +778,6 @@ impl Ty {
779 | Ty::Tuple(_, substs) 778 | Ty::Tuple(_, substs)
780 | Ty::OpaqueType(_, substs) 779 | Ty::OpaqueType(_, substs)
781 | Ty::AssociatedType(_, substs) 780 | Ty::AssociatedType(_, substs)
782 | Ty::ForeignType(_, substs)
783 | Ty::Closure { substs, .. } => Some(substs), 781 | Ty::Closure { substs, .. } => Some(substs),
784 _ => None, 782 _ => None,
785 } 783 }
@@ -797,7 +795,6 @@ impl Ty {
797 | Ty::Tuple(_, substs) 795 | Ty::Tuple(_, substs)
798 | Ty::OpaqueType(_, substs) 796 | Ty::OpaqueType(_, substs)
799 | Ty::AssociatedType(_, substs) 797 | Ty::AssociatedType(_, substs)
800 | Ty::ForeignType(_, substs)
801 | Ty::Closure { substs, .. } => Some(substs), 798 | Ty::Closure { substs, .. } => Some(substs),
802 _ => None, 799 _ => None,
803 } 800 }