diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2018-12-16 14:08:29 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-16 14:08:29 +0100 |
| commit | d91032a9efab1f552ce5a50d0f213d185b06129d (patch) | |
| tree | 83042c1bd0c1b08d24c1417e0264cb81326aa12d /src/test/incremental/thinlto | |
| parent | f1fa9d42611cd8c75ae14436ddaca4d06e8a11a5 (diff) | |
| parent | cdd537339eb9fe009f75f285a99aa8257775e656 (diff) | |
| download | rust-d91032a9efab1f552ce5a50d0f213d185b06129d.tar.gz rust-d91032a9efab1f552ce5a50d0f213d185b06129d.zip | |
Rollup merge of #56790 - rust-lang:borrowck-niche-discriminants, r=nikomatsakis
Make RValue::Discriminant a normal Shallow read Enum layout optimizations mean that the discriminant of an enum may not be stored in a tag disjoint from the rest of the fields of the enum. Stop borrow checking as though they are. Run with MIRI to see why this is needed: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=09a3236685a06b6096e2e2e3968b852c. This issue exists with the lexical borrow checker as well (see #45045) so migrate mode should prevent this from being immediately breaking. r? @nikomatsakis Fixes #56797
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
