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 d566b2ab113c1..50baa2975dd92 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 72e1317cce9d8..0fff6507833fb 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 113994227e6eb..28645801db293 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 c767799283334..7df3ceb7614d5 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. //