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>2017-03-01 02:29:57 +0200
committerAriel Ben-Yehuda <ariel.byd@gmail.com>2017-03-01 16:56:13 +0200
commit34ff9aa83fa014f77ffe8fa5a12268a033c95694 (patch)
tree0a320a50f2e1b3b9904bbe4aee2125ceaeed7ae0 /src/test/incremental/thinlto
parentca8708273b6d7ee506e7d03051778d520cfaa50f (diff)
downloadrust-34ff9aa83fa014f77ffe8fa5a12268a033c95694.tar.gz
rust-34ff9aa83fa014f77ffe8fa5a12268a033c95694.zip
store the normalized types of statics in MIR Lvalues
The types of statics, like all other items, are stored in the tcx
unnormalized. This is necessarily so, because
    a) Item types other than statics have generics, which can't be
normalized.
    b) Eager normalization causes undesirable on-demand dependencies.

Keeping with the principle that MIR lvalues require no normalization in
order to interpret, this patch stores the normalized type of the statics
in the Lvalue and reads it to get the lvalue type.

Fixes #39367.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions