diff options
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index e9f55c62b6c..4d3c762338d 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -338,7 +338,7 @@ pub struct Parser { /// Used to determine the path to externally loaded source files mod_path_stack: @mut ~[@str], /// Stack of spans of open delimiters. Used for error message. - open_braces: @mut ~[@Span] + open_braces: @mut ~[Span] } #[unsafe_destructor] @@ -2026,7 +2026,7 @@ impl Parser { match *self.token { token::EOF => { for sp in self.open_braces.iter() { - self.span_note(**sp, "Did you mean to close this delimiter?"); + self.span_note(*sp, "Did you mean to close this delimiter?"); } // There shouldn't really be a span, but it's easier for the test runner // if we give it one @@ -2036,7 +2036,7 @@ impl Parser { let close_delim = token::flip_delimiter(&*self.token); // Parse the open delimiter. - (*self.open_braces).push(@*self.span); + (*self.open_braces).push(*self.span); let mut result = ~[parse_any_tt_tok(self)]; let trees = |
