Skip to content

Commit

Permalink
Inspect now does not force on-stack Lvalue
Browse files Browse the repository at this point in the history
  • Loading branch information
nagisa committed Feb 10, 2017
1 parent 76d9a4e commit 362eb7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_trans/mir/analyze.rs
Expand Up @@ -156,10 +156,10 @@ impl<'mir, 'a, 'tcx> Visitor<'tcx> for LocalAnalyzer<'mir, 'a, 'tcx> {

LvalueContext::StorageLive |
LvalueContext::StorageDead |
LvalueContext::Inspect |
LvalueContext::Consume => {}

LvalueContext::Store |
LvalueContext::Inspect |
LvalueContext::Borrow { .. } |
LvalueContext::Projection(..) => {
self.mark_as_lvalue(index);
Expand Down

0 comments on commit 362eb7e

Please sign in to comment.