Rename ast::Pat_ and its variants
This commit is contained in:
parent
5801991b5d
commit
14adc9bb63
16 changed files with 145 additions and 145 deletions
|
@ -675,7 +675,7 @@ mod tests {
|
|||
use super::*;
|
||||
use std::rc::Rc;
|
||||
use codemap::{Span, BytePos, Pos, Spanned, NO_EXPANSION};
|
||||
use ast::{self, TokenTree};
|
||||
use ast::{self, TokenTree, PatKind};
|
||||
use abi::Abi;
|
||||
use attr::{first_attr_value_str_by_name, AttrMetaMethods};
|
||||
use parse;
|
||||
|
@ -896,7 +896,7 @@ mod tests {
|
|||
assert!(panictry!(parser.parse_pat())
|
||||
== P(ast::Pat{
|
||||
id: ast::DUMMY_NODE_ID,
|
||||
node: ast::PatIdent(ast::BindingMode::ByValue(ast::Mutability::Immutable),
|
||||
node: PatKind::Ident(ast::BindingMode::ByValue(ast::Mutability::Immutable),
|
||||
Spanned{ span:sp(0, 1),
|
||||
node: str_to_ident("b")
|
||||
},
|
||||
|
@ -931,7 +931,7 @@ mod tests {
|
|||
}),
|
||||
pat: P(ast::Pat {
|
||||
id: ast::DUMMY_NODE_ID,
|
||||
node: ast::PatIdent(
|
||||
node: PatKind::Ident(
|
||||
ast::BindingMode::ByValue(ast::Mutability::Immutable),
|
||||
Spanned{
|
||||
span: sp(6,7),
|
||||
|
@ -1020,7 +1020,7 @@ mod tests {
|
|||
impl<'v> ::visit::Visitor<'v> for PatIdentVisitor {
|
||||
fn visit_pat(&mut self, p: &'v ast::Pat) {
|
||||
match p.node {
|
||||
ast::PatIdent(_ , ref spannedident, _) => {
|
||||
PatKind::Ident(_ , ref spannedident, _) => {
|
||||
self.spans.push(spannedident.span.clone());
|
||||
}
|
||||
_ => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue