Pacify make tidy.
This commit is contained in:
parent
3a47103f1d
commit
00226fc0c8
|
@ -812,12 +812,10 @@ pub fn run_passes(sess: &Session,
|
||||||
copy_if_one_unit(OutputType::LlvmAssembly, false);
|
copy_if_one_unit(OutputType::LlvmAssembly, false);
|
||||||
}
|
}
|
||||||
OutputType::Assembly => {
|
OutputType::Assembly => {
|
||||||
// TODO: These are probably wrong
|
|
||||||
copy_if_one_unit(OutputType::Assembly, false);
|
copy_if_one_unit(OutputType::Assembly, false);
|
||||||
}
|
}
|
||||||
OutputType::Object => {
|
OutputType::Object => {
|
||||||
user_wants_objects = true;
|
user_wants_objects = true;
|
||||||
// TODO: These are probably wrong
|
|
||||||
copy_if_one_unit(OutputType::Object, true);
|
copy_if_one_unit(OutputType::Object, true);
|
||||||
}
|
}
|
||||||
OutputType::Exe |
|
OutputType::Exe |
|
||||||
|
|
|
@ -456,8 +456,11 @@ impl<'a, 'tcx> MirVisitor<'tcx> for MirNeighborCollector<'a, 'tcx> {
|
||||||
match *rvalue {
|
match *rvalue {
|
||||||
mir::Rvalue::Aggregate(mir::AggregateKind::Closure(def_id,
|
mir::Rvalue::Aggregate(mir::AggregateKind::Closure(def_id,
|
||||||
ref substs), _) => {
|
ref substs), _) => {
|
||||||
let mir = errors::expect(self.scx.sess().diagnostic(), self.scx.get_mir(def_id),
|
let mir = errors::expect(self.scx.sess().diagnostic(),
|
||||||
|| format!("Could not find MIR for closure: {:?}", def_id));
|
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(),
|
let concrete_substs = monomorphize::apply_param_substs(self.scx.tcx(),
|
||||||
self.param_substs,
|
self.param_substs,
|
||||||
|
|
Loading…
Reference in New Issue