mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
fix: Honor ref expressions for compute_ref_match completions
This commit is contained in:
parent
6c379b9f4b
commit
1f8daa180f
4 changed files with 75 additions and 23 deletions
|
@ -2769,6 +2769,10 @@ impl Type {
|
|||
self.derived(self.ty.strip_references().clone())
|
||||
}
|
||||
|
||||
pub fn strip_reference(&self) -> Type {
|
||||
self.derived(self.ty.strip_reference().clone())
|
||||
}
|
||||
|
||||
pub fn is_unknown(&self) -> bool {
|
||||
self.ty.is_unknown()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue