Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix tidy
  • Loading branch information
jonas-schievink committed Sep 26, 2016
1 parent 9ccac2a commit e0249ad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/librustc_mir/transform/promote_consts.rs
Expand Up @@ -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
Expand Down

0 comments on commit e0249ad

Please sign in to comment.