Pacify make tidy.
This commit is contained in:
parent
3a47103f1d
commit
00226fc0c8
src/librustc_trans
@ -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 |
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user