Stream: t-compiler

Topic: match_guard_mutable_borrow


oli (Apr 20 2019 at 14:33, on Zulip):

Could we offload all the checks that are done on match guards wrt them mutably borrowing their surroundings onto mir-borrowck? There's some weird interactions between the two (https://github.com/rust-lang/rust/pull/60125#discussion_r277136282) and aren't match guards essentially Fn closures that are called immediately?

nikomatsakis (Apr 24 2019 at 19:38, on Zulip):

We can't do that -- at minimum -- until the NLL transition is complete, @oli, but I do believe we plan to do that

nikomatsakis (Apr 24 2019 at 19:39, on Zulip):

(cc @pnkfelix and @Matthew Jasper)

Last update: Nov 22 2019 at 05:45UTC