]> git.lizzy.rs Git - rust.git/commitdiff
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)
[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.

1  2 
src/librustc/ich/impls_mir.rs
src/librustc/mir/mod.rs

Simple merge
Simple merge