about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-12-20 17:22:16 +0100
committerGitHub <noreply@github.com>2019-12-20 17:22:16 +0100
commitef013308876f28d13d835808892740f2e7f1a37c (patch)
tree304633c7038d4bf194ce18887f224ee3d66ecdf3 /src/rustllvm/RustWrapper.cpp
parent6b561b4917e803c4be4ca44d8e552b680cb9e380 (diff)
parenta74911662e8de2c024ea188e4dcac6a494c74455 (diff)
downloadrust-ef013308876f28d13d835808892740f2e7f1a37c.tar.gz
rust-ef013308876f28d13d835808892740f2e7f1a37c.zip
Rollup merge of #64588 - matthewjasper:mir-address-of, r=oli-obk
Add a raw "address of" operator

* Parse and feature gate `&raw [const | mut] expr` (feature gate name is `raw_address_of`)
* Add `mir::Rvalue::AddressOf`
* Use the new `Rvalue` for:
    * the new syntax
    * reference to pointer casts
    * drop shims for slices and arrays
* Stop using `mir::Rvalue::Cast` with a reference as the operand
* Correctly evaluate `mir::Rvalue::{Ref, AddressOf}` in constant propagation

cc @Centril @RalfJung @oli-obk @eddyb
cc #64490
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions