diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2014-12-09 12:17:24 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2014-12-13 20:04:40 -0500 |
| commit | c434954b272318d8fdceca01de7d005c8cce2118 (patch) | |
| tree | f74cad07a2383cc29fab6429c7826b48c5658f4c /src/libsyntax/parse/parser.rs | |
| parent | 4fd6a99851509cffbeeb7e4275dc35702e632c33 (diff) | |
| download | rust-c434954b272318d8fdceca01de7d005c8cce2118.tar.gz rust-c434954b272318d8fdceca01de7d005c8cce2118.zip | |
libsyntax: use tuple indexing
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 8c44f9fdf26..e9cc91d9415 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -1740,8 +1740,8 @@ impl<'a> Parser<'a> { } token::Literal(lit, suf) => { let (suffix_illegal, out) = match lit { - token::Byte(i) => (true, LitByte(parse::byte_lit(i.as_str()).val0())), - token::Char(i) => (true, LitChar(parse::char_lit(i.as_str()).val0())), + token::Byte(i) => (true, LitByte(parse::byte_lit(i.as_str()).0)), + token::Char(i) => (true, LitChar(parse::char_lit(i.as_str()).0)), // there are some valid suffixes for integer and // float literals, so all the handling is done |
