]> git.lizzy.rs Git - rust.git/commit
Auto merge of #46749 - SimonSapin:exorcism, r=nikomatsakis
authorbors <bors@rust-lang.org>
Tue, 19 Dec 2017 10:50:15 +0000 (10:50 +0000)
committerbors <bors@rust-lang.org>
Tue, 19 Dec 2017 10:50:15 +0000 (10:50 +0000)
commitb39c4bc12358078f77ddd01288b24252f757f37d
tree05e8d258a5b60820993880d7483206b3b4d326dd
parenta9f047c048eac4f135dd6df5223b7195d651539d
parent60dc10492ccdf785678d475172f2653aae9606da
Auto merge of #46749 - SimonSapin:exorcism, r=nikomatsakis

Move PhantomData<T> from Shared<T> to users of both Shared and #[may_dangle]

After discussing https://github.com/rust-lang/rust/issues/27730#issuecomment-316432083 today with @pnkfelix and @Gankro, we concluded that it’s ok for drop checking not to be much smarter than the current `#[may_dangle]` design which requires an explicit unsafe opt-in.