Rename PatKind::Lit to Expr
This commit is contained in:
parent
c9365dd09f
commit
4a8773a3af
45 changed files with 79 additions and 79 deletions
|
@ -522,7 +522,7 @@ impl MacResult for MacEager {
|
|||
return Some(P(ast::Pat {
|
||||
id: ast::DUMMY_NODE_ID,
|
||||
span: e.span,
|
||||
kind: PatKind::Lit(e),
|
||||
kind: PatKind::Expr(e),
|
||||
tokens: None,
|
||||
}));
|
||||
}
|
||||
|
|
|
@ -486,7 +486,7 @@ impl<'a> ExtCtxt<'a> {
|
|||
self.pat(span, PatKind::Wild)
|
||||
}
|
||||
pub fn pat_lit(&self, span: Span, expr: P<ast::Expr>) -> P<ast::Pat> {
|
||||
self.pat(span, PatKind::Lit(expr))
|
||||
self.pat(span, PatKind::Expr(expr))
|
||||
}
|
||||
pub fn pat_ident(&self, span: Span, ident: Ident) -> P<ast::Pat> {
|
||||
self.pat_ident_binding_mode(span, ident, ast::BindingMode::NONE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue