]> git.lizzy.rs Git - rust.git/commit
Auto merge of #54798 - matthewjasper:free-region-closure-errors, r=nikomatsakis
authorbors <bors@rust-lang.org>
Tue, 9 Oct 2018 07:22:14 +0000 (07:22 +0000)
committerbors <bors@rust-lang.org>
Tue, 9 Oct 2018 07:22:14 +0000 (07:22 +0000)
commit607243b6f9b3890b01d5aa4bbea75be728a371be
tree4ee1966d204e9fcbb11f2ba5c29c6d6602aaa8bb
parentb1a137d0159543d5a295ce86a9b7475c486efeac
parent825810734b55ad680403655cf814c2d1312f0155
Auto merge of #54798 - matthewjasper:free-region-closure-errors, r=nikomatsakis

[NLL]  Improve closure region bound errors

Previously, we would report free region errors that originate from closure with the span of the closure and a "closure body requires ..." message. This is now updated to use a reason and span from inside the closure.
src/librustc/ich/impls_mir.rs
src/librustc/mir/mod.rs