Pacify make tidy.

This commit is contained in:
Michael Woerister 2016-05-26 14:21:08 -04:00
parent 3a47103f1d
commit 00226fc0c8
2 changed files with 5 additions and 4 deletions

View File

@ -812,12 +812,10 @@ pub fn run_passes(sess: &Session,
copy_if_one_unit(OutputType::LlvmAssembly, false);
}
OutputType::Assembly => {
// TODO: These are probably wrong
copy_if_one_unit(OutputType::Assembly, false);
}
OutputType::Object => {
user_wants_objects = true;
// TODO: These are probably wrong
copy_if_one_unit(OutputType::Object, true);
}
OutputType::Exe |

View File

@ -456,8 +456,11 @@ impl<'a, 'tcx> MirVisitor<'tcx> for MirNeighborCollector<'a, 'tcx> {
match *rvalue {
mir::Rvalue::Aggregate(mir::AggregateKind::Closure(def_id,
ref substs), _) => {
let mir = errors::expect(self.scx.sess().diagnostic(), self.scx.get_mir(def_id),
|| format!("Could not find MIR for closure: {:?}", def_id));
let mir = errors::expect(self.scx.sess().diagnostic(),
self.scx.get_mir(def_id),
|| {
format!("Could not find MIR for closure: {:?}", def_id)
});
let concrete_substs = monomorphize::apply_param_substs(self.scx.tcx(),
self.param_substs,