diff options
| author | bors <bors@rust-lang.org> | 2018-09-22 20:38:19 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-09-22 20:38:19 +0000 |
| commit | 4591a245c7eec9f70d668982b1383cd2a6854af5 (patch) | |
| tree | 182aea300e2792c6f042da22b652a972bf600563 /src/librustc_codegen_llvm | |
| parent | af50e3822c4ceda60445c4a2adbb3bfa480ebd39 (diff) | |
| parent | 3bdba74ed3f8a859331ff658a6c0235855331095 (diff) | |
| download | rust-4591a245c7eec9f70d668982b1383cd2a6854af5.tar.gz rust-4591a245c7eec9f70d668982b1383cd2a6854af5.zip | |
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)
Diffstat (limited to 'src/librustc_codegen_llvm')
| -rw-r--r-- | src/librustc_codegen_llvm/mir/statement.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_codegen_llvm/mir/statement.rs b/src/librustc_codegen_llvm/mir/statement.rs index 0cb8f99efc3..b4eb7615f98 100644 --- a/src/librustc_codegen_llvm/mir/statement.rs +++ b/src/librustc_codegen_llvm/mir/statement.rs @@ -89,7 +89,7 @@ impl FunctionCx<'a, 'll, 'tcx> { asm::codegen_inline_asm(&bx, asm, outputs, input_vals); bx } - mir::StatementKind::ReadForMatch(_) | + mir::StatementKind::FakeRead(..) | mir::StatementKind::EndRegion(_) | mir::StatementKind::Validate(..) | mir::StatementKind::AscribeUserType(..) | |
