1
Fork 0

Allow uses of #[unsafe_destructor_blind_to_params]. Should be ported to #[may_dangle].

See rust-lang/rust#34761.
This commit is contained in:
Felix S. Klock II 2018-08-31 15:29:46 +02:00
parent 4a9e55e05a
commit 18a77ae4ab
4 changed files with 8 additions and 0 deletions

View file

@ -9,6 +9,8 @@
// except according to those terms.
// run-pass
#![allow(deprecated)] // FIXME: switch to `#[may_dangle]` below.
// Example taken from RFC 1238 text
// https://github.com/rust-lang/rfcs/blob/master/text/1238-nonparametric-dropck.md

View file

@ -9,6 +9,8 @@
// except according to those terms.
// run-pass
#![allow(deprecated)] // FIXME: switch to `#[may_dangle]` below.
// Demonstrate the use of the unguarded escape hatch with a lifetime param
// to assert that destructor will not access any dead data.
//

View file

@ -9,6 +9,8 @@
// except according to those terms.
// run-pass
#![allow(deprecated)] // FIXME: switch to `#[may_dangle]` below.
// Demonstrate the use of the unguarded escape hatch with a type param in negative position
// to assert that destructor will not access any dead data.
//

View file

@ -9,6 +9,8 @@
// except according to those terms.
// run-pass
#![allow(deprecated)] // FIXME: switch to `#[may_dangle]` below.
// Demonstrate the use of the unguarded escape hatch with a trait bound
// to assert that destructor will not access any dead data.
//