about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-01-08 15:51:49 +0000
committerbors <bors@rust-lang.org>2017-01-08 15:51:49 +0000
commitd2c795932b58d910c179236d1070e04e8cb54faf (patch)
treeb6e09e957bea9b7fb87d1e467903f123e8542148 /src/rustllvm/RustWrapper.cpp
parente350c44e0c43d9c7981d502e27cf149287d924cb (diff)
parent8f84e955e006dd9e116f69eaba6efbbcd2e3ca8a (diff)
downloadrust-d2c795932b58d910c179236d1070e04e8cb54faf.tar.gz
rust-d2c795932b58d910c179236d1070e04e8cb54faf.zip
Auto merge of #38837 - eddyb:issue-38074, r=nikomatsakis
Allow projections to be promoted to constants in MIR.

This employs the `LvalueContext` additions by @pcwalton to properly extend the MIR promotion of temporaries to allow projections (field accesses, indexing and dereferences) on said temporaries.

It's needed both parity with the old constant qualification logic (for current borrowck) and it fixes #38074.
The former is *required for soundness* if we accept the RFC for promoting rvalues to `'static` constants.
That is, until we get MIR borrowck and the same source of truth will be used for both checks and codegen.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions