syntax: Remove unnecessary @

This commit is contained in:
Tim Chevalier 2013-10-07 18:37:36 -07:00
parent bed669cba6
commit 77d9ac37fc

View File

@ -338,7 +338,7 @@ pub struct Parser {
/// Used to determine the path to externally loaded source files /// Used to determine the path to externally loaded source files
mod_path_stack: @mut ~[@str], mod_path_stack: @mut ~[@str],
/// Stack of spans of open delimiters. Used for error message. /// Stack of spans of open delimiters. Used for error message.
open_braces: @mut ~[@Span] open_braces: @mut ~[Span]
} }
#[unsafe_destructor] #[unsafe_destructor]
@ -2026,7 +2026,7 @@ impl Parser {
match *self.token { match *self.token {
token::EOF => { token::EOF => {
for sp in self.open_braces.iter() { 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 // There shouldn't really be a span, but it's easier for the test runner
// if we give it one // if we give it one
@ -2036,7 +2036,7 @@ impl Parser {
let close_delim = token::flip_delimiter(&*self.token); let close_delim = token::flip_delimiter(&*self.token);
// Parse the open delimiter. // 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 mut result = ~[parse_any_tt_tok(self)];
let trees = let trees =