]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #15190 : pcwalton/rust/proc-upvars, r=alexcrichton
authorbors <bors@rust-lang.org>
Thu, 26 Jun 2014 22:21:23 +0000 (22:21 +0000)
committerbors <bors@rust-lang.org>
Thu, 26 Jun 2014 22:21:23 +0000 (22:21 +0000)
Since procs do not have lifetime bounds, we must do this to maintain
safety.

This can break code that incorrectly captured references in procedure
types. Change such code to not do this, perhaps with a trait object
instead.

Closes #14036.

[breaking-change]

r? @alexcrichton


Trivial merge