about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-06-29 17:59:37 +0530
committerGitHub <noreply@github.com>2022-06-29 17:59:37 +0530
commit68228be56062eb62f09088663e93ea66109156f8 (patch)
tree17006f074d35aff9787abc12ac80094d53a436b2 /compiler/rustc_codegen_llvm/src
parentfcbb2e8009e440987060bb6c669d052326416c28 (diff)
parent5fc1dd11a93b57d795e352e6c8718d5ffbb74dbb (diff)
downloadrust-68228be56062eb62f09088663e93ea66109156f8.tar.gz
rust-68228be56062eb62f09088663e93ea66109156f8.zip
Rollup merge of #98625 - RalfJung:retag, r=oli-obk
emit Retag for compound types with reference fields

I want to add an option to Miri to do retagging inside reference fields. But that means we first have to even emit `Retag` for types that *contain* references (rather than being of reference types). :)

Stacked Borrows originally did that, but we stopped doing it when hitting bunch of issues in the standard library. However I have since realized that we actually do emit `noalias` for newtypes references, which means for soundness we should recurse into fields. Also it'd probably be bad news if newtypes lose out on optimizations (and they don't, for anything else). I want to add an option for that to Miri so that we can start experimenting with those semantics.

r? ``@oli-obk``
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions