]> git.lizzy.rs Git - rust.git/commit
Auto merge of #47353 - nikomatsakis:nll-issue-47189, r=pnkfelix+nmatsakis
authorbors <bors@rust-lang.org>
Mon, 22 Jan 2018 11:11:47 +0000 (11:11 +0000)
committerbors <bors@rust-lang.org>
Mon, 22 Jan 2018 11:11:47 +0000 (11:11 +0000)
commitfdc18b3067b5bad257ccbe7400e3c4fb617e9e18
treeebe74cccf12324474726ee5d39a3ecc19d6f70b7
parentb887317da6ba0f70b34c0439ade8508e1b525fb0
parent8f2cc02bc347aca311e6a5ce5548a62c7a896047
Auto merge of #47353 - nikomatsakis:nll-issue-47189, r=pnkfelix+nmatsakis

renumber regions in generators

This fixes #47189, but I think we still have to double check various things around how to treat generators in MIR type check + borrow check (e.g., what borrows should be invalidated by a `Suspend`? What consistency properties should type check be enforcing anyway around the "interior" type?)

Also fixes #47587 thanks to @spastorino's commit.

r? @pnkfelix
src/librustc_mir/borrow_check/nll/universal_regions.rs
src/librustc_mir/util/pretty.rs