about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorAriel Ben-Yehuda <ariel.byd@gmail.com>2018-09-22 21:53:58 +0300
committerAriel Ben-Yehuda <ariel.byd@gmail.com>2018-09-22 21:55:43 +0300
commit2c28c4ed69fd99eea1972e7d796435b9bb0e171d (patch)
tree74451dda6b70a39c82a83feca92fc9864511d1ac /src/test/incremental/thinlto
parentaf50e3822c4ceda60445c4a2adbb3bfa480ebd39 (diff)
downloadrust-2c28c4ed69fd99eea1972e7d796435b9bb0e171d.tar.gz
rust-2c28c4ed69fd99eea1972e7d796435b9bb0e171d.zip
avoid loading constructor attributes in AdtDef decoding
During metadata loading, the AdtDefs for every ADT in the universe need
to be loaded (for example, for coherence of builtin traits). For that,
the attributes of the AdtDef need to be loaded too.

The attributes of a struct are duplicated between 2 def ids - the
constructor def-id, and the "type" def id. Loading attributes for both
def-ids, which was done in #53721, slowed the compilation of small
crates by 2-3%. This PR makes sure we only load the attributes for the
"type" def-id, avoiding the slowdown.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions