Change the hashcounts in raw Lit variants from usize to u16.

This reduces the size of `Token` from 32 bytes to 24 bytes on 64-bit
platforms.
This commit is contained in:
Nicholas Nethercote
2018-04-12 19:50:53 +10:00
parent d26f9e42df
commit 4d34bfd00a
7 changed files with 19 additions and 14 deletions

View File

@@ -1260,8 +1260,8 @@ pub enum StrStyle {
Cooked,
/// A raw string, like `r##"foo"##`
///
/// The uint is the number of `#` symbols used
Raw(usize)
/// The value is the number of `#` symbols used.
Raw(u16)
}
/// A literal