Inspect now does not force on-stack Lvalue
This commit is contained in:
parent
76d9a4e646
commit
362eb7ea07
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue