diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-05-05 21:56:42 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-05-05 21:56:42 +0100 |
commit | ecc722de40aaa15a20482759e1f2baf3f745b688 (patch) | |
tree | b8ced23c567c160f9207d52c30e0f08e1aead992 /crates/hir/src | |
parent | 957760a47f0d0d3275fc2e606f3b204694dc6f21 (diff) | |
parent | 3f796fea9fab0222913f9f895af78b80c4c7660b (diff) |
Merge #8735
8735: simplify r=Veykril a=Veykril
bors r+
Co-authored-by: Lukas Tobias Wirth <[email protected]>
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 | } |