Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Allow uses of #[unsafe_destructor_blind_to_params]. Should be porte…
…d to `#[may_dangle]`.

See #34761.
  • Loading branch information
pnkfelix committed Sep 6, 2018
1 parent 4a9e55e commit 18a77ae
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/issues/issue28498-ugeh-ex1.rs
Expand Up @@ -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
Expand Down
Expand Up @@ -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.
//
Expand Down
Expand Up @@ -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.
//
Expand Down
Expand Up @@ -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.
//
Expand Down

0 comments on commit 18a77ae

Please sign in to comment.