// we found a pat_ident!
ast::Pat {
id: _,
- node: ast::PatIdent(_, ref path, ref inner),
+ node: ast::PatIdent(_, ref path1, ref inner),
span: _
} => {
- match path {
- // a path of length one:
- &ast::Path {
- global: false,
- span: _,
- segments: ref segments
- } if segments.len() == 1 => {
- self.ident_accumulator.push(segments.get(0)
- .identifier)
- }
- // I believe these must be enums...
- _ => ()
- }
+ self.ident_accumulator.push(path1.node);
// visit optional subpattern of pat_ident:
for subpat in inner.iter() {
self.visit_pat(&**subpat, ())