summary refs log tree commit diff
path: root/src/test/ui/dropck
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2018-02-23 03:42:32 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2018-02-26 20:24:02 +0300
commitfa2d9fc4b9e578d95fbf65613d1bf732fbdfb0d4 (patch)
tree1eb1a49b4750e2704d3d724fb4a12ea4e2237eff /src/test/ui/dropck
parentcdbd8c2f2aa69c4b8fe6f004449440e87c4ab87e (diff)
downloadrust-fa2d9fc4b9e578d95fbf65613d1bf732fbdfb0d4.tar.gz
rust-fa2d9fc4b9e578d95fbf65613d1bf732fbdfb0d4.zip
Update UI tests
Diffstat (limited to 'src/test/ui/dropck')
-rw-r--r--src/test/ui/dropck/dropck-eyepatch-extern-crate.stderr16
-rw-r--r--src/test/ui/dropck/dropck-eyepatch-implies-unsafe-impl.stderr20
-rw-r--r--src/test/ui/dropck/dropck-eyepatch-reorder.stderr16
-rw-r--r--src/test/ui/dropck/dropck-eyepatch.stderr64
4 files changed, 58 insertions, 58 deletions
diff --git a/src/test/ui/dropck/dropck-eyepatch-extern-crate.stderr b/src/test/ui/dropck/dropck-eyepatch-extern-crate.stderr
index bd7580ca751..454ee6afe24 100644
--- a/src/test/ui/dropck/dropck-eyepatch-extern-crate.stderr
+++ b/src/test/ui/dropck/dropck-eyepatch-extern-crate.stderr
@@ -1,10 +1,10 @@
 error[E0597]: `c` does not live long enough
   --> $DIR/dropck-eyepatch-extern-crate.rs:39:20
    |
-39 |     dt = Dt("dt", &c);
+LL |     dt = Dt("dt", &c);
    |                    ^ borrowed value does not live long enough
 ...
-59 | }
+LL | }
    | - `c` dropped here while still borrowed
    |
    = note: values in a scope are dropped in the opposite order they are created
@@ -12,10 +12,10 @@ error[E0597]: `c` does not live long enough
 error[E0597]: `c` does not live long enough
   --> $DIR/dropck-eyepatch-extern-crate.rs:41:20
    |
-41 |     dr = Dr("dr", &c);
+LL |     dr = Dr("dr", &c);
    |                    ^ borrowed value does not live long enough
 ...
-59 | }
+LL | }
    | - `c` dropped here while still borrowed
    |
    = note: values in a scope are dropped in the opposite order they are created
@@ -23,10 +23,10 @@ error[E0597]: `c` does not live long enough
 error[E0597]: `c` does not live long enough
   --> $DIR/dropck-eyepatch-extern-crate.rs:49:29
    |
-49 |     pt = Pt("pt", &c_long, &c);
+LL |     pt = Pt("pt", &c_long, &c);
    |                             ^ borrowed value does not live long enough
 ...
-59 | }
+LL | }
    | - `c` dropped here while still borrowed
    |
    = note: values in a scope are dropped in the opposite order they are created
@@ -34,10 +34,10 @@ error[E0597]: `c` does not live long enough
 error[E0597]: `c` does not live long enough
   --> $DIR/dropck-eyepatch-extern-crate.rs:51:29
    |
-51 |     pr = Pr("pr", &c_long, &c);
+LL |     pr = Pr("pr", &c_long, &c);
    |                             ^ borrowed value does not live long enough
 ...
-59 | }
+LL | }
    | - `c` dropped here while still borrowed
    |
    = note: values in a scope are dropped in the opposite order they are created
diff --git a/src/test/ui/dropck/dropck-eyepatch-implies-unsafe-impl.stderr b/src/test/ui/dropck/dropck-eyepatch-implies-unsafe-impl.stderr
index cb4f3d21398..af3738d5784 100644
--- a/src/test/ui/dropck/dropck-eyepatch-implies-unsafe-impl.stderr
+++ b/src/test/ui/dropck/dropck-eyepatch-implies-unsafe-impl.stderr
@@ -1,23 +1,23 @@
 error[E0569]: requires an `unsafe impl` declaration due to `#[may_dangle]` attribute
   --> $DIR/dropck-eyepatch-implies-unsafe-impl.rs:32:1
    |
-32 | / impl<#[may_dangle] A, B: fmt::Debug> Drop for Pt<A, B> {
-33 | |     //~^ ERROR requires an `unsafe impl` declaration due to `#[may_dangle]` attribute
-34 | |
-35 | |     // (unsafe to access self.1  due to #[may_dangle] on A)
+LL | / impl<#[may_dangle] A, B: fmt::Debug> Drop for Pt<A, B> {
+LL | |     //~^ ERROR requires an `unsafe impl` declaration due to `#[may_dangle]` attribute
+LL | |
+LL | |     // (unsafe to access self.1  due to #[may_dangle] on A)
 36 | |     fn drop(&mut self) { println!("drop {} {:?}", self.0, self.2); }
-37 | | }
+LL | | }
    | |_^
 
 error[E0569]: requires an `unsafe impl` declaration due to `#[may_dangle]` attribute
   --> $DIR/dropck-eyepatch-implies-unsafe-impl.rs:38:1
    |
-38 | / impl<#[may_dangle] 'a, 'b, B: fmt::Debug> Drop for Pr<'a, 'b, B> {
-39 | |     //~^ ERROR requires an `unsafe impl` declaration due to `#[may_dangle]` attribute
-40 | |
-41 | |     // (unsafe to access self.1 due to #[may_dangle] on 'a)
+LL | / impl<#[may_dangle] 'a, 'b, B: fmt::Debug> Drop for Pr<'a, 'b, B> {
+LL | |     //~^ ERROR requires an `unsafe impl` declaration due to `#[may_dangle]` attribute
+LL | |
+LL | |     // (unsafe to access self.1 due to #[may_dangle] on 'a)
 42 | |     fn drop(&mut self) { println!("drop {} {:?}", self.0, self.2); }
-43 | | }
+LL | | }
    | |_^
 
 error: aborting due to 2 previous errors
diff --git a/src/test/ui/dropck/dropck-eyepatch-reorder.stderr b/src/test/ui/dropck/dropck-eyepatch-reorder.stderr
index 0fdedfb7cf5..6fac358e21a 100644
--- a/src/test/ui/dropck/dropck-eyepatch-reorder.stderr
+++ b/src/test/ui/dropck/dropck-eyepatch-reorder.stderr
@@ -1,10 +1,10 @@
 error[E0597]: `c` does not live long enough
   --> $DIR/dropck-eyepatch-reorder.rs:57:20
    |
-57 |     dt = Dt("dt", &c);
+LL |     dt = Dt("dt", &c);
    |                    ^ borrowed value does not live long enough
 ...
-77 | }
+LL | }
    | - `c` dropped here while still borrowed
    |
    = note: values in a scope are dropped in the opposite order they are created
@@ -12,10 +12,10 @@ error[E0597]: `c` does not live long enough
 error[E0597]: `c` does not live long enough
   --> $DIR/dropck-eyepatch-reorder.rs:59:20
    |
-59 |     dr = Dr("dr", &c);
+LL |     dr = Dr("dr", &c);
    |                    ^ borrowed value does not live long enough
 ...
-77 | }
+LL | }
    | - `c` dropped here while still borrowed
    |
    = note: values in a scope are dropped in the opposite order they are created
@@ -23,10 +23,10 @@ error[E0597]: `c` does not live long enough
 error[E0597]: `c` does not live long enough
   --> $DIR/dropck-eyepatch-reorder.rs:67:29
    |
-67 |     pt = Pt("pt", &c_long, &c);
+LL |     pt = Pt("pt", &c_long, &c);
    |                             ^ borrowed value does not live long enough
 ...
-77 | }
+LL | }
    | - `c` dropped here while still borrowed
    |
    = note: values in a scope are dropped in the opposite order they are created
@@ -34,10 +34,10 @@ error[E0597]: `c` does not live long enough
 error[E0597]: `c` does not live long enough
   --> $DIR/dropck-eyepatch-reorder.rs:69:29
    |
-69 |     pr = Pr("pr", &c_long, &c);
+LL |     pr = Pr("pr", &c_long, &c);
    |                             ^ borrowed value does not live long enough
 ...
-77 | }
+LL | }
    | - `c` dropped here while still borrowed
    |
    = note: values in a scope are dropped in the opposite order they are created
diff --git a/src/test/ui/dropck/dropck-eyepatch.stderr b/src/test/ui/dropck/dropck-eyepatch.stderr
index ce3ffc034c5..d8cc5bf2373 100644
--- a/src/test/ui/dropck/dropck-eyepatch.stderr
+++ b/src/test/ui/dropck/dropck-eyepatch.stderr
@@ -1,46 +1,46 @@
 error[E0597]: `c` does not live long enough
-   --> $DIR/dropck-eyepatch.rs:80:20
-    |
-80  |     dt = Dt("dt", &c);
-    |                    ^ borrowed value does not live long enough
+  --> $DIR/dropck-eyepatch.rs:80:20
+   |
+LL |     dt = Dt("dt", &c);
+   |                    ^ borrowed value does not live long enough
 ...
-100 | }
-    | - `c` dropped here while still borrowed
-    |
-    = note: values in a scope are dropped in the opposite order they are created
+LL | }
+   | - `c` dropped here while still borrowed
+   |
+   = note: values in a scope are dropped in the opposite order they are created
 
 error[E0597]: `c` does not live long enough
-   --> $DIR/dropck-eyepatch.rs:82:20
-    |
-82  |     dr = Dr("dr", &c);
-    |                    ^ borrowed value does not live long enough
+  --> $DIR/dropck-eyepatch.rs:82:20
+   |
+LL |     dr = Dr("dr", &c);
+   |                    ^ borrowed value does not live long enough
 ...
-100 | }
-    | - `c` dropped here while still borrowed
-    |
-    = note: values in a scope are dropped in the opposite order they are created
+LL | }
+   | - `c` dropped here while still borrowed
+   |
+   = note: values in a scope are dropped in the opposite order they are created
 
 error[E0597]: `c` does not live long enough
-   --> $DIR/dropck-eyepatch.rs:90:29
-    |
-90  |     pt = Pt("pt", &c_long, &c);
-    |                             ^ borrowed value does not live long enough
+  --> $DIR/dropck-eyepatch.rs:90:29
+   |
+LL |     pt = Pt("pt", &c_long, &c);
+   |                             ^ borrowed value does not live long enough
 ...
-100 | }
-    | - `c` dropped here while still borrowed
-    |
-    = note: values in a scope are dropped in the opposite order they are created
+LL | }
+   | - `c` dropped here while still borrowed
+   |
+   = note: values in a scope are dropped in the opposite order they are created
 
 error[E0597]: `c` does not live long enough
-   --> $DIR/dropck-eyepatch.rs:92:29
-    |
-92  |     pr = Pr("pr", &c_long, &c);
-    |                             ^ borrowed value does not live long enough
+  --> $DIR/dropck-eyepatch.rs:92:29
+   |
+LL |     pr = Pr("pr", &c_long, &c);
+   |                             ^ borrowed value does not live long enough
 ...
-100 | }
-    | - `c` dropped here while still borrowed
-    |
-    = note: values in a scope are dropped in the opposite order they are created
+LL | }
+   | - `c` dropped here while still borrowed
+   |
+   = note: values in a scope are dropped in the opposite order they are created
 
 error: aborting due to 4 previous errors