about summary refs log tree commit diff
path: root/src/test/ui/span
diff options
context:
space:
mode:
authorSantiago Pastorino <spastorino@gmail.com>2018-07-01 19:43:01 -0300
committerSantiago Pastorino <spastorino@gmail.com>2018-07-01 20:46:07 -0300
commit0957ede5027c0bffe208904998675a17bfd4cd59 (patch)
treec453480ba2599e5f99cd5e4c099d4bedc112ed74 /src/test/ui/span
parent24f91e878244990595649120f402cc13263ae54f (diff)
downloadrust-0957ede5027c0bffe208904998675a17bfd4cd59.tar.gz
rust-0957ede5027c0bffe208904998675a17bfd4cd59.zip
Make causal tracking lazy
Diffstat (limited to 'src/test/ui/span')
-rw-r--r--src/test/ui/span/destructor-restrictions.nll.stderr9
-rw-r--r--src/test/ui/span/issue-23338-locals-die-before-temps-of-body.nll.stderr19
2 files changed, 6 insertions, 22 deletions
diff --git a/src/test/ui/span/destructor-restrictions.nll.stderr b/src/test/ui/span/destructor-restrictions.nll.stderr
index 5de246cbb73..8be4cf445da 100644
--- a/src/test/ui/span/destructor-restrictions.nll.stderr
+++ b/src/test/ui/span/destructor-restrictions.nll.stderr
@@ -2,14 +2,9 @@ error[E0597]: `*a` does not live long enough
   --> $DIR/destructor-restrictions.rs:18:10
    |
 LL |         *a.borrow() + 1
-   |          ^---------
-   |          |
-   |          borrowed value does not live long enough
-   |          borrow may end up in a temporary, created here
+   |          ^ borrowed value does not live long enough
 LL |     }; //~^ ERROR `*a` does not live long enough
-   |     -- temporary later dropped here, potentially using the reference
-   |     |
-   |     borrowed value only lives until here
+   |     - borrowed value only lives until here
 
 error: aborting due to previous error
 
diff --git a/src/test/ui/span/issue-23338-locals-die-before-temps-of-body.nll.stderr b/src/test/ui/span/issue-23338-locals-die-before-temps-of-body.nll.stderr
index 56f2d14390e..ec2f5a25631 100644
--- a/src/test/ui/span/issue-23338-locals-die-before-temps-of-body.nll.stderr
+++ b/src/test/ui/span/issue-23338-locals-die-before-temps-of-body.nll.stderr
@@ -2,28 +2,17 @@ error[E0597]: `y` does not live long enough
   --> $DIR/issue-23338-locals-die-before-temps-of-body.rs:20:5
    |
 LL |     y.borrow().clone()
-   |     ^---------
-   |     |
-   |     borrowed value does not live long enough
-   |     borrow may end up in a temporary, created here
+   |     ^ borrowed value does not live long enough
 LL | }
-   | -
-   | |
-   | borrowed value only lives until here
-   | temporary later dropped here, potentially using the reference
+   | - borrowed value only lives until here
 
 error[E0597]: `y` does not live long enough
   --> $DIR/issue-23338-locals-die-before-temps-of-body.rs:27:9
    |
 LL |         y.borrow().clone()
-   |         ^---------
-   |         |
-   |         borrowed value does not live long enough
-   |         borrow may end up in a temporary, created here
+   |         ^ borrowed value does not live long enough
 LL |     };
-   |     -- temporary later dropped here, potentially using the reference
-   |     |
-   |     borrowed value only lives until here
+   |     - borrowed value only lives until here
 
 error: aborting due to 2 previous errors