diff options
author | Lukas Tobias Wirth <[email protected]> | 2021-05-05 21:55:12 +0100 |
---|---|---|
committer | Lukas Tobias Wirth <[email protected]> | 2021-05-05 21:55:12 +0100 |
commit | 3f796fea9fab0222913f9f895af78b80c4c7660b (patch) | |
tree | b8ced23c567c160f9207d52c30e0f08e1aead992 /crates/hir | |
parent | d26fb188c14e38f5795d1be359defd257c464f37 (diff) |
simplify
Diffstat (limited to 'crates/hir')
-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 | } |