diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-05-18 17:36:30 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-05-23 12:44:05 +0300 |
| commit | fcc2f92f454d9ce1e66713e28edb136d6948dd5a (patch) | |
| tree | 1a5893ca61d737492851dfba7d3831949333071e /src/libsyntax/parse/parser.rs | |
| parent | 85334c50921a1c90707c9d0fb344c63bd373e1b8 (diff) | |
| download | rust-fcc2f92f454d9ce1e66713e28edb136d6948dd5a.tar.gz rust-fcc2f92f454d9ce1e66713e28edb136d6948dd5a.zip | |
syntax: Return named errors from literal parsing functions
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 7600d6078a1..3d82344ac1e 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -1054,7 +1054,7 @@ impl<'a> Parser<'a> { } fn expect_no_suffix(&self, sp: Span, kind: &str, suffix: Option<ast::Name>) { - literal::expect_no_suffix(sp, &self.sess.span_diagnostic, kind, suffix) + literal::expect_no_suffix(&self.sess.span_diagnostic, sp, kind, suffix) } /// Attempts to consume a `<`. If `<<` is seen, replaces it with a single |
