Allow uses of #[unsafe_destructor_blind_to_params]
. Should be ported to #[may_dangle]
.
See rust-lang/rust#34761.
This commit is contained in:
parent
4a9e55e05a
commit
18a77ae4ab
4 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
//
|
||||
|
|
|
@ -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.
|
||||
//
|
||||
|
|
|
@ -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.
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue