about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2018-08-31 15:29:46 +0200
committerFelix S. Klock II <pnkfelix@pnkfx.org>2018-09-06 13:00:26 +0200
commit18a77ae4ab3176fdcc57f165740449ebc81a1cf2 (patch)
tree958a9eaa317ac3b38d9e84c1ef6b1802a809f18b
parent4a9e55e05a949f88cc167eef51e854ead9077d64 (diff)
downloadrust-18a77ae4ab3176fdcc57f165740449ebc81a1cf2.tar.gz
rust-18a77ae4ab3176fdcc57f165740449ebc81a1cf2.zip
Allow uses of `#[unsafe_destructor_blind_to_params]`. Should be ported to `#[may_dangle]`.
See rust-lang/rust#34761.
-rw-r--r--src/test/ui/run-pass/issues/issue28498-ugeh-ex1.rs2
-rw-r--r--src/test/ui/run-pass/issues/issue28498-ugeh-with-lifetime-param.rs2
-rw-r--r--src/test/ui/run-pass/issues/issue28498-ugeh-with-passed-to-fn.rs2
-rw-r--r--src/test/ui/run-pass/issues/issue28498-ugeh-with-trait-bound.rs2
4 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/run-pass/issues/issue28498-ugeh-ex1.rs b/src/test/ui/run-pass/issues/issue28498-ugeh-ex1.rs
index d566b2ab113..50baa2975dd 100644
--- a/src/test/ui/run-pass/issues/issue28498-ugeh-ex1.rs
+++ b/src/test/ui/run-pass/issues/issue28498-ugeh-ex1.rs
@@ -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
diff --git a/src/test/ui/run-pass/issues/issue28498-ugeh-with-lifetime-param.rs b/src/test/ui/run-pass/issues/issue28498-ugeh-with-lifetime-param.rs
index 72e1317cce9..0fff6507833 100644
--- a/src/test/ui/run-pass/issues/issue28498-ugeh-with-lifetime-param.rs
+++ b/src/test/ui/run-pass/issues/issue28498-ugeh-with-lifetime-param.rs
@@ -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.
 //
diff --git a/src/test/ui/run-pass/issues/issue28498-ugeh-with-passed-to-fn.rs b/src/test/ui/run-pass/issues/issue28498-ugeh-with-passed-to-fn.rs
index 113994227e6..28645801db2 100644
--- a/src/test/ui/run-pass/issues/issue28498-ugeh-with-passed-to-fn.rs
+++ b/src/test/ui/run-pass/issues/issue28498-ugeh-with-passed-to-fn.rs
@@ -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.
 //
diff --git a/src/test/ui/run-pass/issues/issue28498-ugeh-with-trait-bound.rs b/src/test/ui/run-pass/issues/issue28498-ugeh-with-trait-bound.rs
index c7677992833..7df3ceb7614 100644
--- a/src/test/ui/run-pass/issues/issue28498-ugeh-with-trait-bound.rs
+++ b/src/test/ui/run-pass/issues/issue28498-ugeh-with-trait-bound.rs
@@ -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.
 //