summary refs log tree commit diff
path: root/src/libsyntax/ast.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-04-18 14:44:54 +0000
committerbors <bors@rust-lang.org>2018-04-18 14:44:54 +0000
commit3dfda165259bf6beefab31bf8708bdf3ec505fe0 (patch)
treefc39639749811c041d34696e7117d83dfc7642ed /src/libsyntax/ast.rs
parent65d201f7d682ad921ac6e67ac07f922aa63a8ce4 (diff)
parent4d34bfd00a57f8a8bdb60ec3f908c5d4256f8a9a (diff)
downloadrust-3dfda165259bf6beefab31bf8708bdf3ec505fe0.tar.gz
rust-3dfda165259bf6beefab31bf8708bdf3ec505fe0.zip
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.
Diffstat (limited to 'src/libsyntax/ast.rs')
-rw-r--r--src/libsyntax/ast.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs
index 91c9a1524e1..4e3ee241468 100644
--- a/src/libsyntax/ast.rs
+++ b/src/libsyntax/ast.rs
@@ -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