diff options
| author | Seo Sanghyeon <sanxiyn@gmail.com> | 2013-05-03 02:36:24 +0900 |
|---|---|---|
| committer | Seo Sanghyeon <sanxiyn@gmail.com> | 2013-05-03 02:36:24 +0900 |
| commit | a0d8873097a587163887e701c08373a1571f8973 (patch) | |
| tree | 5b28b1ec6b6f61824bed81ed804a2838843476ce /src/libsyntax/parse/common.rs | |
| parent | b42ea7f9ef06be9a623a8a007ae3aecbb7d961a3 (diff) | |
| download | rust-a0d8873097a587163887e701c08373a1571f8973.tar.gz rust-a0d8873097a587163887e701c08373a1571f8973.zip | |
More accurate spans
Diffstat (limited to 'src/libsyntax/parse/common.rs')
| -rw-r--r-- | src/libsyntax/parse/common.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/common.rs b/src/libsyntax/parse/common.rs index 01f80c032e9..1df6860fede 100644 --- a/src/libsyntax/parse/common.rs +++ b/src/libsyntax/parse/common.rs @@ -122,7 +122,7 @@ pub impl Parser { fn parse_path_list_ident(&self) -> ast::path_list_ident { let lo = self.span.lo; let ident = self.parse_ident(); - let hi = self.span.hi; + let hi = self.last_span.hi; spanned(lo, hi, ast::path_list_ident_ { name: ident, id: self.get_id() }) } |
