Rename PalceholderPat -> WildcardPat

This commit is contained in:
Aleksey Kladov 2020-07-31 20:07:21 +02:00
parent d7f75db90d
commit 6791eb9685
50 changed files with 132 additions and 135 deletions

View file

@ -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 {