]> git.lizzy.rs Git - rust.git/commit
Identify borrows captured by trait objects.
authorDavid Wood <david@davidtw.co>
Fri, 5 Oct 2018 15:05:33 +0000 (17:05 +0200)
committerDavid Wood <david@davidtw.co>
Sun, 7 Oct 2018 14:03:06 +0000 (16:03 +0200)
commit91b71f5e9416b570b3e4c1997056c3879e5029af
treee5150b03d15b24e6725a7d18d90ff50b77b83093
parent987a50bab3329a55d7b782da454456d5d4f4b9a1
Identify borrows captured by trait objects.

This commit enhances `LaterUseKind` detection to identify when a borrow
is captured by a trait object which helps explain why there is a borrow
error.
src/librustc_mir/borrow_check/nll/explain_borrow/mod.rs
src/test/ui/span/regions-close-over-type-parameter-2.nll.stderr