about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2018-03-28 12:03:28 +0200
committerFelix S. Klock II <pnkfelix@pnkfx.org>2018-03-28 12:03:28 +0200
commit347cf21290c80c528363cc33d9cade6cd1e77888 (patch)
treebaf13c4485ac07d364017b8555e130942cfae869 /src/rustllvm/RustWrapper.cpp
parent3efe61c825e1d49dc6febeb252954b9532c0c677 (diff)
downloadrust-347cf21290c80c528363cc33d9cade6cd1e77888.tar.gz
rust-347cf21290c80c528363cc33d9cade6cd1e77888.zip
Remove adjacent all-const match arm hack.
An old fix for moves-in-guards had a hack for adjacent all-const match arms.

The hack was explained in a comment, which you can see here:
https://github.com/rust-lang/rust/pull/22580/files#diff-402a0fa4b3c6755c5650027c6d4cf1efR497

But hack was incomplete (and thus unsound), as pointed out here:
https://github.com/rust-lang/rust/issues/47295#issuecomment-357108458

Plus, it is likely to be at least tricky to reimplement this hack in
the new NLL borrowck.

So rather than try to preserve the hack, we want to try to just remove
it outright. (At least to see the results of a crater run.)

[breaking-change]

This is a breaking-change, but our hope is that no one is actually
relying on such an extreme special case. (We hypothesize the hack was
originally added to accommodate a file in our own test suite, not code
in the wild.)
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions