diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2017-05-11 10:54:19 -0400 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2017-05-11 10:54:19 -0400 |
| commit | d22d1feae19d4709d0031264ab0eddec4b309905 (patch) | |
| tree | 3633e8064334664920d23fc6888c5e01cbe07f5b /src/test/run-pass/thinlto | |
| parent | 24ea08e9b7c206ee7a0de76b68072e46fc230cbd (diff) | |
| download | rust-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
