summaryrefslogtreecommitdiffstats
path: root/tests/ui/pin-macro
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/pin-macro/cant_access_internals.rs (renamed from src/test/ui/pin-macro/cant_access_internals.rs)1
-rw-r--r--tests/ui/pin-macro/cant_access_internals.stderr (renamed from src/test/ui/pin-macro/cant_access_internals.stderr)2
-rw-r--r--tests/ui/pin-macro/lifetime_errors_on_promotion_misusage.rs (renamed from src/test/ui/pin-macro/lifetime_errors_on_promotion_misusage.rs)1
-rw-r--r--tests/ui/pin-macro/lifetime_errors_on_promotion_misusage.stderr (renamed from src/test/ui/pin-macro/lifetime_errors_on_promotion_misusage.stderr)4
4 files changed, 3 insertions, 5 deletions
diff --git a/src/test/ui/pin-macro/cant_access_internals.rs b/tests/ui/pin-macro/cant_access_internals.rs
index 120d08894..5826a18b5 100644
--- a/src/test/ui/pin-macro/cant_access_internals.rs
+++ b/tests/ui/pin-macro/cant_access_internals.rs
@@ -1,5 +1,4 @@
// edition:2018
-#![feature(pin_macro)]
use core::{
marker::PhantomPinned,
diff --git a/src/test/ui/pin-macro/cant_access_internals.stderr b/tests/ui/pin-macro/cant_access_internals.stderr
index 060c9c48c..d43027657 100644
--- a/src/test/ui/pin-macro/cant_access_internals.stderr
+++ b/tests/ui/pin-macro/cant_access_internals.stderr
@@ -1,5 +1,5 @@
error[E0658]: use of unstable library feature 'unsafe_pin_internals'
- --> $DIR/cant_access_internals.rs:12:15
+ --> $DIR/cant_access_internals.rs:11:15
|
LL | mem::take(phantom_pinned.pointer);
| ^^^^^^^^^^^^^^^^^^^^^^
diff --git a/src/test/ui/pin-macro/lifetime_errors_on_promotion_misusage.rs b/tests/ui/pin-macro/lifetime_errors_on_promotion_misusage.rs
index ca2b6cf75..59774bc75 100644
--- a/src/test/ui/pin-macro/lifetime_errors_on_promotion_misusage.rs
+++ b/tests/ui/pin-macro/lifetime_errors_on_promotion_misusage.rs
@@ -1,5 +1,4 @@
// edition:2018
-#![feature(pin_macro)]
use core::{
convert::identity,
diff --git a/src/test/ui/pin-macro/lifetime_errors_on_promotion_misusage.stderr b/tests/ui/pin-macro/lifetime_errors_on_promotion_misusage.stderr
index fc1be052f..4ecc6370d 100644
--- a/src/test/ui/pin-macro/lifetime_errors_on_promotion_misusage.stderr
+++ b/tests/ui/pin-macro/lifetime_errors_on_promotion_misusage.stderr
@@ -1,5 +1,5 @@
error[E0716]: temporary value dropped while borrowed
- --> $DIR/lifetime_errors_on_promotion_misusage.rs:12:35
+ --> $DIR/lifetime_errors_on_promotion_misusage.rs:11:35
|
LL | let phantom_pinned = identity(pin!(PhantomPinned));
| ^^^^^^^^^^^^^^^^^^^ - temporary value is freed at the end of this statement
@@ -13,7 +13,7 @@ LL | stuff(phantom_pinned)
= note: this error originates in the macro `pin` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0716]: temporary value dropped while borrowed
- --> $DIR/lifetime_errors_on_promotion_misusage.rs:19:30
+ --> $DIR/lifetime_errors_on_promotion_misusage.rs:18:30
|
LL | let phantom_pinned = {
| -------------- borrow later stored here