diff options
| author | Michael Woerister <michaelwoerister@posteo.net> | 2016-05-26 14:21:08 -0400 |
|---|---|---|
| committer | Michael Woerister <michaelwoerister@posteo.net> | 2016-07-08 10:42:47 -0400 |
| commit | 00226fc0c8f9d3579db32c6b46fe2a3e4e12cf29 (patch) | |
| tree | 8ca2a4b87553812009dec39e6cdf9cee3fa78f7c /src | |
| parent | 3a47103f1d2bbf144d3866abc9fe74a9143d2988 (diff) | |
| download | rust-00226fc0c8f9d3579db32c6b46fe2a3e4e12cf29.tar.gz rust-00226fc0c8f9d3579db32c6b46fe2a3e4e12cf29.zip | |
Pacify make tidy.
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_trans/back/write.rs | 2 | ||||
| -rw-r--r-- | src/librustc_trans/collector.rs | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/librustc_trans/back/write.rs b/src/librustc_trans/back/write.rs index 28804e4ed9e..071960f1944 100644 --- a/src/librustc_trans/back/write.rs +++ b/src/librustc_trans/back/write.rs @@ -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 | diff --git a/src/librustc_trans/collector.rs b/src/librustc_trans/collector.rs index aff50e5e1f4..048e95f31b4 100644 --- a/src/librustc_trans/collector.rs +++ b/src/librustc_trans/collector.rs @@ -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, |
