]> git.lizzy.rs Git - rust.git/commit
Auto merge of #54188 - lqd:fallout-53695, r=nikomatsakis
authorbors <bors@rust-lang.org>
Sat, 22 Sep 2018 20:38:19 +0000 (20:38 +0000)
committerbors <bors@rust-lang.org>
Sat, 22 Sep 2018 20:38:19 +0000 (20:38 +0000)
commit4591a245c7eec9f70d668982b1383cd2a6854af5
tree182aea300e2792c6f042da22b652a972bf600563
parentaf50e3822c4ceda60445c4a2adbb3bfa480ebd39
parent3bdba74ed3f8a859331ff658a6c0235855331095
Auto merge of #54188 - lqd:fallout-53695, r=nikomatsakis

NLL: disallow creation of immediately unusable variables

Fix #53695

Original description follows

----

This WIP PR is for discussing the impact of fixing #53695 by injecting a fake read in let patterns.

(Travis will fail, at least the `mir-opt` suite is failing in its current state)
src/librustc/ty/context.rs
src/librustc_mir/borrow_check/error_reporting.rs
src/librustc_mir/borrow_check/mod.rs