]> git.lizzy.rs Git - rust.git/commit
auto merge of #13013 : huonw/rust/tytrait, r=cmr
authorbors <bors@rust-lang.org>
Thu, 20 Mar 2014 03:21:48 +0000 (20:21 -0700)
committerbors <bors@rust-lang.org>
Thu, 20 Mar 2014 03:21:48 +0000 (20:21 -0700)
commitd8590e2c9ce7fd48df03d347f591d6892c6e1599
tree75407a15b298a6aa5e16f04ddacde2ea485b9f82
parent4ca51aeea7187a63b987129d67cf7d348b6c60a9
parentddc796096be787613a291c38c076cb499dfb5857
auto merge of #13013 : huonw/rust/tytrait, r=cmr

These variants occur rarely but inflate the whole enum for the other variants, leaving a lot of wasted space. In total this reduces `ty::sty` from 160 bytes to 96 (on a 64-bit platform).

After this, `ty_struct` and `ty_enum` are the largest variants, with the 80-byte `substs` being the major contributor.
src/librustc/middle/typeck/check/vtable.rs