mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
simplify
This commit is contained in:
parent
d26fb188c1
commit
3f796fea9f
6 changed files with 38 additions and 39 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue