about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-04-30 14:07:53 +0200
committerGitHub <noreply@github.com>2020-04-30 14:07:53 +0200
commit58d955e6cc84b92a6013a3e170e076f65a0c1b18 (patch)
tree311eed86e28394afb831c12b9943f32f602f7076 /src/rustllvm/RustWrapper.cpp
parent4e6772b52bc9832bb47bedba61abdcfb4ba0128e (diff)
parenta9858791134253d004971664fd7e9bd9b0983723 (diff)
downloadrust-58d955e6cc84b92a6013a3e170e076f65a0c1b18.tar.gz
rust-58d955e6cc84b92a6013a3e170e076f65a0c1b18.zip
Rollup merge of #71540 - ldm0:ref2ptr, r=oli-obk
Suggest deref when coercing `ty::Ref` to `ty::RawPtr`

Fixes #32122

Currently we do autoderef when casting `ty::Ref` ->`ty::Ref`, but we don't autoderef when casting `ty::Ref` -> `ty::RawPtr`. This PR make the compiler suggests deref when coercing `ty::Ref` to `ty::RawPtr`
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions