about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-06-17 20:55:55 +0200
committerGitHub <noreply@github.com>2019-06-17 20:55:55 +0200
commita2259aae7d46caaf95f5bca2ae15de48951c365f (patch)
treef5fb46ba5bd636797153e82f3707205e1b36c647 /src/test/incremental/thinlto
parentb01a257da1fbb3f5661029dd390fdccc49dff287 (diff)
parent2e9931f9333d74cbe10545978e58e38ee915998a (diff)
downloadrust-a2259aae7d46caaf95f5bca2ae15de48951c365f.tar.gz
rust-a2259aae7d46caaf95f5bca2ae15de48951c365f.zip
Rollup merge of #61702 - RalfJung:const-enum-cast, r=oli-obk
test more variants of enum-int-casting

As I learned in https://github.com/rust-lang/rust/pull/61673#issuecomment-500213506, there is a code path we are not testing yet. Looks like enum-int-casting with and without an intermediate let-binding is totally different.

EDIT: The reason for this is to get rid of the cycle in definitions such as:
```rust
enum Foo {
    A = 0,
    B = Foo::A as isize + 2,
}
```
This has historically been supported, so a hack adding special treatment to `Enum::Variant as _` was added to keep supporting it.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions