diff options
| author | Santiago Pastorino <spastorino@gmail.com> | 2018-07-01 19:43:01 -0300 |
|---|---|---|
| committer | Santiago Pastorino <spastorino@gmail.com> | 2018-07-01 20:46:07 -0300 |
| commit | 0957ede5027c0bffe208904998675a17bfd4cd59 (patch) | |
| tree | c453480ba2599e5f99cd5e4c099d4bedc112ed74 /src/test/ui/span | |
| parent | 24f91e878244990595649120f402cc13263ae54f (diff) | |
| download | rust-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.stderr | 9 | ||||
| -rw-r--r-- | src/test/ui/span/issue-23338-locals-die-before-temps-of-body.nll.stderr | 19 |
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 |
