]> git.lizzy.rs Git - rust.git/commit
Change the hashcounts in raw `Lit` variants from usize to u16.
authorNicholas Nethercote <nnethercote@mozilla.com>
Thu, 12 Apr 2018 09:50:53 +0000 (19:50 +1000)
committerNicholas Nethercote <nnethercote@mozilla.com>
Thu, 12 Apr 2018 10:12:42 +0000 (20:12 +1000)
commit4d34bfd00a57f8a8bdb60ec3f908c5d4256f8a9a
treed4699fcf5af416a32e953be9b85124bb9aab7c9e
parentd26f9e42df76603fd21b0fe5dd1e8001caf9bf81
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.
src/libproc_macro/quote.rs
src/libsyntax/ast.rs
src/libsyntax/ext/build.rs
src/libsyntax/ext/quote.rs
src/libsyntax/parse/lexer/mod.rs
src/libsyntax/parse/token.rs
src/libsyntax/print/pprust.rs