about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-05-11 16:56:17 +0000
committerbors <bors@rust-lang.org>2017-05-11 16:56:17 +0000
commite40beb3af162e676e40704854dd6547ee8d4cf60 (patch)
treeead43ed861f59e71d04e44018e1458506dc366a1 /src/rustllvm/RustWrapper.cpp
parent2cc3358e4f1c4a79685745a461a1be1ce784b88a (diff)
parentd22d1feae19d4709d0031264ab0eddec4b309905 (diff)
downloadrust-e40beb3af162e676e40704854dd6547ee8d4cf60.tar.gz
rust-e40beb3af162e676e40704854dd6547ee8d4cf60.zip
Auto merge of #41913 - nikomatsakis:issue-41849-variance-cycle, r=eddyb
do not fetch variance for items when equating

Fixes #41849. Problem was that evaluating the constant expression
required evaluating a trait, which would equate types, which would
request variance information, which it would then discard. However,
computing the variance information would require determining the type of
a field, which would evaluate the constant expression.

(This problem will potentially arise *later* as we move to more sophisticated
constants, however, where we need to check subtyping. We can tackle that
when we come to it.)

r? @eddyb
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions