This commit is contained in:
Jonas Schievink 2016-09-26 23:00:23 +02:00
parent 9ccac2a8fb
commit e0249ad800

View File

@ -82,7 +82,10 @@ struct TempCollector<'tcx> {
}
impl<'tcx> Visitor<'tcx> for TempCollector<'tcx> {
fn visit_lvalue(&mut self, lvalue: &Lvalue<'tcx>, context: LvalueContext<'tcx>, location: Location) {
fn visit_lvalue(&mut self,
lvalue: &Lvalue<'tcx>,
context: LvalueContext<'tcx>,
location: Location) {
self.super_lvalue(lvalue, context, location);
if let Lvalue::Local(index) = *lvalue {
// We're only interested in temporaries