diff options
| author | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-11-17 14:04:20 +0000 |
|---|---|---|
| committer | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-11-21 09:00:56 +0000 |
| commit | 36c8f6b0d3f38904459f40496af36d36e9cc0fac (patch) | |
| tree | 6a5efd739f6537c308d3340b6e5495ceca17413f /src/libsyntax/parse/parser.rs | |
| parent | e85a0d70b86491752eb501f73b9d2025c5991e8e (diff) | |
| download | rust-36c8f6b0d3f38904459f40496af36d36e9cc0fac.tar.gz rust-36c8f6b0d3f38904459f40496af36d36e9cc0fac.zip | |
Cleanup `InternedString`.
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index be1abf9cc83..4997e464c2b 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -2535,7 +2535,7 @@ impl<'a> Parser<'a> { let prev_span = self.prev_span; let fstr = n.as_str(); let mut err = self.diagnostic().struct_span_err(prev_span, - &format!("unexpected token: `{}`", n.as_str())); + &format!("unexpected token: `{}`", n)); if fstr.chars().all(|x| "0123456789.".contains(x)) { let float = match fstr.parse::<f64>().ok() { Some(f) => f, |
