]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #54666 - matthewjasper:mir-function-spans, r=pnkfelix
authorbors <bors@rust-lang.org>
Thu, 4 Oct 2018 16:34:27 +0000 (16:34 +0000)
committerbors <bors@rust-lang.org>
Thu, 4 Oct 2018 16:34:27 +0000 (16:34 +0000)
[NLL] Improve "borrow later used here" messages

* In the case of two conflicting borrows, the later used message says which borrow it's referring to
* If the later use is a function call (from the users point of view) say that the later use is for the call. Point just to the function.

r? @pnkfelix
Closes #48643

1  2 
src/librustc/mir/mod.rs
src/librustc_mir/build/expr/into.rs
src/librustc_mir/hair/cx/expr.rs
src/librustc_mir/hair/mod.rs

Simple merge
Simple merge
Simple merge
Simple merge