about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2018-12-16 14:08:29 +0100
committerGitHub <noreply@github.com>2018-12-16 14:08:29 +0100
commitd91032a9efab1f552ce5a50d0f213d185b06129d (patch)
tree83042c1bd0c1b08d24c1417e0264cb81326aa12d /src/test/incremental/thinlto
parentf1fa9d42611cd8c75ae14436ddaca4d06e8a11a5 (diff)
parentcdd537339eb9fe009f75f285a99aa8257775e656 (diff)
downloadrust-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