Skip to content

Commit 00226fc

Browse files
Pacify make tidy.
1 parent 3a47103 commit 00226fc

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/librustc_trans/back/write.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -812,12 +812,10 @@ pub fn run_passes(sess: &Session,
812812
copy_if_one_unit(OutputType::LlvmAssembly, false);
813813
}
814814
OutputType::Assembly => {
815-
// TODO: These are probably wrong
816815
copy_if_one_unit(OutputType::Assembly, false);
817816
}
818817
OutputType::Object => {
819818
user_wants_objects = true;
820-
// TODO: These are probably wrong
821819
copy_if_one_unit(OutputType::Object, true);
822820
}
823821
OutputType::Exe |

src/librustc_trans/collector.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,8 +456,11 @@ impl<'a, 'tcx> MirVisitor<'tcx> for MirNeighborCollector<'a, 'tcx> {
456456
match *rvalue {
457457
mir::Rvalue::Aggregate(mir::AggregateKind::Closure(def_id,
458458
ref substs), _) => {
459-
let mir = errors::expect(self.scx.sess().diagnostic(), self.scx.get_mir(def_id),
460-
|| format!("Could not find MIR for closure: {:?}", def_id));
459+
let mir = errors::expect(self.scx.sess().diagnostic(),
460+
self.scx.get_mir(def_id),
461+
|| {
462+
format!("Could not find MIR for closure: {:?}", def_id)
463+
});
461464

462465
let concrete_substs = monomorphize::apply_param_substs(self.scx.tcx(),
463466
self.param_substs,

0 commit comments

Comments
 (0)