mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Rename PalceholderPat -> WildcardPat
This commit is contained in:
parent
d7f75db90d
commit
6791eb9685
50 changed files with 132 additions and 135 deletions
|
@ -390,7 +390,7 @@ impl ast::MatchArmList {
|
|||
#[must_use]
|
||||
pub fn remove_placeholder(&self) -> ast::MatchArmList {
|
||||
let placeholder =
|
||||
self.arms().find(|arm| matches!(arm.pat(), Some(ast::Pat::PlaceholderPat(_))));
|
||||
self.arms().find(|arm| matches!(arm.pat(), Some(ast::Pat::WildcardPat(_))));
|
||||
if let Some(placeholder) = placeholder {
|
||||
self.remove_arm(&placeholder)
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue