1
Fork 0

libsyntax: use tuple indexing

This commit is contained in:
Jorge Aparicio 2014-12-09 12:17:24 -05:00
parent 4fd6a99851
commit c434954b27
2 changed files with 10 additions and 10 deletions

View file

@ -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