Auto merge of #49993 - nnethercote:shrink-Token, r=alexcrichton

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:
bors
2018-04-18 14:44:54 +00:00
7 changed files with 19 additions and 14 deletions

View File

@@ -1255,8 +1255,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