Skip to content

Commit aaf56d7

Browse files
committed
Fix tests
1 parent 52a2b33 commit aaf56d7

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

src/librustc_driver/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,10 @@ impl<'a> CompilerCalls<'a> for RustcDefaultCalls {
447447
.and_then(|| RustcDefaultCalls::list_metadata(sess, matches, input))
448448
}
449449

450-
fn build_controller(&mut self, sess: &Session, matches: &getopts::Matches) -> CompileController<'a> {
450+
fn build_controller(&mut self,
451+
sess: &Session,
452+
matches: &getopts::Matches)
453+
-> CompileController<'a> {
451454
let mut control = CompileController::basic();
452455

453456
if let Some((ppm, opt_uii)) = parse_pretty(sess, matches) {

src/librustc_driver/pretty.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,9 @@ fn print_with_analysis<'tcx, 'a: 'tcx>(sess: &'a Session,
949949
});
950950
match ppm {
951951
PpmMir => write_mir_pretty(tcx, iter::once((&nodeid, mir)), &mut out),
952-
PpmMirCFG => write_mir_graphviz(tcx, iter::once((&nodeid, mir)), &mut out),
952+
PpmMirCFG => {
953+
write_mir_graphviz(tcx, iter::once((&nodeid, mir)), &mut out)
954+
}
953955
_ => unreachable!(),
954956
}?;
955957
} else {

src/test/run-pass-fulldeps/compiler-calls.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ impl<'a> CompilerCalls<'a> for TestCalls {
6969
panic!("This shouldn't happen");
7070
}
7171

72-
fn build_controller(&mut self, _: &Session, _: &getopts::Matches) -> driver::CompileController<'a> {
72+
fn build_controller(&mut self,
73+
_: &Session,
74+
_: &getopts::Matches)
75+
-> driver::CompileController<'a> {
7376
panic!("This shouldn't be called");
7477
}
7578
}

0 commit comments

Comments
 (0)