We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
FakeReadCause::ForLet
1 parent 335fb69 commit 6a2987bCopy full SHA for 6a2987b
src/librustc_mir/dataflow/impls/liveness.rs
@@ -49,6 +49,9 @@ impl GenKillAnalysis<'tcx> for MaybeLiveLocals {
49
statement: &mir::Statement<'tcx>,
50
location: Location,
51
) {
52
+ if let mir::StatementKind::FakeRead(mir::FakeReadCause::ForLet, _) = statement.kind {
53
+ return;
54
+ }
55
self.transfer_function(trans).visit_statement(statement, location);
56
}
57
0 commit comments