mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Support destructuring patterns
This commit is contained in:
parent
de278d1649
commit
b8f95f42e1
3 changed files with 314 additions and 50 deletions
|
@ -900,6 +900,9 @@ pub fn handle_inlay_hints(
|
|||
ra_ide_api::InlayKind::ForExpressionBindingType => {
|
||||
InlayKind::ForExpressionBindingType
|
||||
}
|
||||
ra_ide_api::InlayKind::IfExpressionType => InlayKind::IfExpressionType,
|
||||
ra_ide_api::InlayKind::WhileLetExpressionType => InlayKind::WhileLetExpressionType,
|
||||
ra_ide_api::InlayKind::MatchArmType => InlayKind::MatchArmType,
|
||||
},
|
||||
})
|
||||
.collect())
|
||||
|
|
|
@ -216,6 +216,9 @@ pub enum InlayKind {
|
|||
LetBindingType,
|
||||
ClosureParameterType,
|
||||
ForExpressionBindingType,
|
||||
IfExpressionType,
|
||||
WhileLetExpressionType,
|
||||
MatchArmType,
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize, Serialize)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue