diff options
Diffstat (limited to 'crates/hir/src')
-rw-r--r-- | crates/hir/src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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 { | |||
1744 | } | 1744 | } |
1745 | } | 1745 | } |
1746 | 1746 | ||
1747 | pub fn strip_references(&self) -> Type { | ||
1748 | self.derived(self.ty.strip_references().clone()) | ||
1749 | } | ||
1750 | |||
1747 | pub fn is_unknown(&self) -> bool { | 1751 | pub fn is_unknown(&self) -> bool { |
1748 | self.ty.is_unknown() | 1752 | self.ty.is_unknown() |
1749 | } | 1753 | } |