diff options
| author | bors <bors@rust-lang.org> | 2013-11-25 11:56:40 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-11-25 11:56:40 -0800 |
| commit | 6fe6a6f9dfffe0de08fefb78787c178e2f89a8a4 (patch) | |
| tree | 00356ef83a9644f0d2fd2eb782b95d706e2f5c70 /src/libsyntax/ast_map.rs | |
| parent | 679a2c042fb2541f55f1192ca97672907b258337 (diff) | |
| parent | 9028330f39d28a8719b0b63dc5edcc1a70a69f02 (diff) | |
| download | rust-6fe6a6f9dfffe0de08fefb78787c178e2f89a8a4.tar.gz rust-6fe6a6f9dfffe0de08fefb78787c178e2f89a8a4.zip | |
auto merge of #10657 : sanxiyn/rust/pat, r=cmr
Diffstat (limited to 'src/libsyntax/ast_map.rs')
| -rw-r--r-- | src/libsyntax/ast_map.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/ast_map.rs b/src/libsyntax/ast_map.rs index 218aead6f52..f0be7057c70 100644 --- a/src/libsyntax/ast_map.rs +++ b/src/libsyntax/ast_map.rs @@ -242,7 +242,7 @@ impl Ctx { visit::walk_block(self, b, ()); } - fn map_pat(&mut self, pat: @Pat) { + fn map_pat(&mut self, pat: &Pat) { match pat.node { PatIdent(_, ref path, _) => { // Note: this is at least *potentially* a pattern... @@ -345,7 +345,7 @@ impl Visitor<()> for Ctx { self.path.pop(); } - fn visit_pat(&mut self, pat: @Pat, _: ()) { + fn visit_pat(&mut self, pat: &Pat, _: ()) { self.map_pat(pat); visit::walk_pat(self, pat, ()) } |
