Skip to content

Commit f972fbb

Browse files
Pacify make tidy.
1 parent 7b4a357 commit f972fbb

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Diff for: src/librustc_trans/back/write.rs

-2
Original file line numberDiff line numberDiff line change
@@ -804,12 +804,10 @@ pub fn run_passes(sess: &Session,
804804
copy_if_one_unit(OutputType::LlvmAssembly, false);
805805
}
806806
OutputType::Assembly => {
807-
// TODO: These are probably wrong
808807
copy_if_one_unit(OutputType::Assembly, false);
809808
}
810809
OutputType::Object => {
811810
user_wants_objects = true;
812-
// TODO: These are probably wrong
813811
copy_if_one_unit(OutputType::Object, true);
814812
}
815813
OutputType::Exe |

Diff for: src/librustc_trans/collector.rs

+5-2
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)