Skip to content

Commit 0c6cee5

Browse files
committed
libsyntax: De-@mut Parser::span
1 parent 758d854 commit 0c6cee5

File tree

3 files changed

+54
-52
lines changed

3 files changed

+54
-52
lines changed

src/libsyntax/ext/format.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ impl<'a> Context<'a> {
8686
i
8787
}
8888
_ if named => {
89-
self.ecx.span_err(*p.span,
89+
self.ecx.span_err(p.span,
9090
"expected ident, positional arguments \
9191
cannot follow named arguments");
9292
return (extra, None);
9393
}
9494
_ => {
95-
self.ecx.span_err(*p.span,
95+
self.ecx.span_err(p.span,
9696
format!("expected ident for named \
9797
argument, but found `{}`",
9898
p.this_token_to_str()));

src/libsyntax/ext/tt/macro_rules.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ impl ParserAnyMacro {
4848
let msg = format!("macro expansion ignores token `{}` and any \
4949
following",
5050
token_str);
51-
let span = *parser.get().span;
51+
let span = parser.get().span;
5252
parser.get().span_err(span, msg);
5353
}
5454
}

0 commit comments

Comments
 (0)