diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2018-04-12 19:50:53 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2018-04-12 20:12:42 +1000 |
| commit | 4d34bfd00a57f8a8bdb60ec3f908c5d4256f8a9a (patch) | |
| tree | d4699fcf5af416a32e953be9b85124bb9aab7c9e /src/libsyntax/ast.rs | |
| parent | d26f9e42df76603fd21b0fe5dd1e8001caf9bf81 (diff) | |
| download | rust-4d34bfd00a57f8a8bdb60ec3f908c5d4256f8a9a.tar.gz rust-4d34bfd00a57f8a8bdb60ec3f908c5d4256f8a9a.zip | |
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.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index e7900af7f12..a5aa4ee1cf8 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -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 |
