Auto merge of #53314 - nikomatsakis:nll-invert-liveness, r=pnkfelix
NLL: experiment with inverting liveness I got inspired to see what would happen here. Fixes #52460 r? @pnkfelix
This commit is contained in:
commit
83ddc33347
21 changed files with 999 additions and 606 deletions
|
|
@ -8,10 +8,8 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
//compile-flags: -Z emit-end-regions -Zborrowck=mir
|
||||
|
||||
|
||||
#![allow(warnings)]
|
||||
#![feature(nll)]
|
||||
|
||||
struct Wrap<'p> { p: &'p mut i32 }
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
error[E0506]: cannot assign to `x` because it is borrowed
|
||||
--> $DIR/maybe-initialized-drop-implicit-fragment-drop.rs:32:5
|
||||
--> $DIR/maybe-initialized-drop-implicit-fragment-drop.rs:30:5
|
||||
|
|
||||
LL | let wrap = Wrap { p: &mut x };
|
||||
| ------ borrow of `x` occurs here
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue