about summary refs log tree commit diff
path: root/src/rustllvm/PassWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-03-11 01:28:16 +0000
committerbors <bors@rust-lang.org>2019-03-11 01:28:16 +0000
commitc2ddf5a1dd54ebe18ffb794e096c28a4ed8e1d16 (patch)
treea660ad702e541881d16e20426197ce2ef8a69680 /src/rustllvm/PassWrapper.cpp
parent9d71ec1358ac063fe6ff1eaed0ba6ed3cedde610 (diff)
parent8c16507045a76ef616533ec29626f6ce6be40a6c (diff)
downloadrust-c2ddf5a1dd54ebe18ffb794e096c28a4ed8e1d16.tar.gz
rust-c2ddf5a1dd54ebe18ffb794e096c28a4ed8e1d16.zip
Auto merge of #58784 - oli-obk:accidental_promotion, r=eddyb
Don't promote function calls to nonpromotable things

fixes https://github.com/rust-lang/rust/issues/58767 and fixes https://github.com/rust-lang/rust/issues/58634

r? @eddyb

should we additionally check the function call return type? It might be a promotable function (or any `const fn` inside a `const fn`), but its return type might contain interior mutability.
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions