From 3f796fea9fab0222913f9f895af78b80c4c7660b Mon Sep 17 00:00:00 2001 From: Lukas Tobias Wirth Date: Wed, 5 May 2021 22:55:12 +0200 Subject: simplify --- crates/hir/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crates/hir') diff --git a/crates/hir/src/lib.rs b/crates/hir/src/lib.rs index d8ccfde0c..6fcc58f61 100644 --- a/crates/hir/src/lib.rs +++ b/crates/hir/src/lib.rs @@ -1744,6 +1744,10 @@ impl Type { } } + pub fn strip_references(&self) -> Type { + self.derived(self.ty.strip_references().clone()) + } + pub fn is_unknown(&self) -> bool { self.ty.is_unknown() } -- cgit v1.2.3