]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #872 - RalfJung:retag-shallow, r=oli-obk
authorbors <bors@rust-lang.org>
Fri, 2 Aug 2019 07:40:02 +0000 (07:40 +0000)
committerbors <bors@rust-lang.org>
Fri, 2 Aug 2019 07:40:02 +0000 (07:40 +0000)
Make Retag shallow

A shallow retag does not traverse into fields of compound typed to search for references to retag. It only retags "top-level"/"bare" references (and boxes).

This helps with https://github.com/rust-lang/unsafe-code-guidelines/issues/125 because it also means that we do not add protectors for references passed in fields of a struct (or other compound types). Until we know what the rules should be for protectors, I prefer to be less aggressive about what we are rejecting.
This also matches our work-in-progress Coq formalization.


Trivial merge