Skip to content

Commit 5e465d5

Browse files
committed
Inspect now does not force on-stack Lvalue
1 parent d3f704a commit 5e465d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_trans/mir/analyze.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,10 @@ impl<'mir, 'a, 'tcx> Visitor<'tcx> for LocalAnalyzer<'mir, 'a, 'tcx> {
156156

157157
LvalueContext::StorageLive |
158158
LvalueContext::StorageDead |
159+
LvalueContext::Inspect |
159160
LvalueContext::Consume => {}
160161

161162
LvalueContext::Store |
162-
LvalueContext::Inspect |
163163
LvalueContext::Borrow { .. } |
164164
LvalueContext::Projection(..) => {
165165
self.mark_as_lvalue(index);

0 commit comments

Comments
 (0)