diff options
| author | bors <bors@rust-lang.org> | 2013-05-05 11:12:37 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-05-05 11:12:37 -0700 |
| commit | 6e6a4be19d8e6a2cedc66be6cc602db8a1e71acd (patch) | |
| tree | 53802b0ed10b2e711fab87d0079c180d2b8d4046 /src/libsyntax/parse/parser.rs | |
| parent | 063851ffa1b8388a0b70446c0209af16264e8181 (diff) | |
| parent | aca2a00fb4cf2ec182cb7802194813c5dd6bbf27 (diff) | |
| download | rust-6e6a4be19d8e6a2cedc66be6cc602db8a1e71acd.tar.gz rust-6e6a4be19d8e6a2cedc66be6cc602db8a1e71acd.zip | |
auto merge of #6208 : sanxiyn/rust/accurate-span, r=sanxiyn
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index a6528160398..8d52b8eea5e 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -2444,7 +2444,7 @@ pub impl Parser { } } } - hi = self.span.hi; + hi = self.last_span.hi; } } @ast::pat { id: self.get_id(), node: pat, span: mk_sp(lo, hi) } @@ -4308,7 +4308,7 @@ pub impl Parser { rp: None, types: ~[] }; return @spanned(lo, - self.span.hi, + self.last_span.hi, view_path_simple(last, path, self.get_id())); } |
