about summary refs log tree commit diff
path: root/src/test/run-pass/thinlto
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2017-05-11 10:54:19 -0400
committerNiko Matsakis <niko@alum.mit.edu>2017-05-11 10:54:19 -0400
commitd22d1feae19d4709d0031264ab0eddec4b309905 (patch)
tree3633e8064334664920d23fc6888c5e01cbe07f5b /src/test/run-pass/thinlto
parent24ea08e9b7c206ee7a0de76b68072e46fc230cbd (diff)
downloadrust-d22d1feae19d4709d0031264ab0eddec4b309905.tar.gz
rust-d22d1feae19d4709d0031264ab0eddec4b309905.zip
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.)
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions