Skip to content

Commit c46c4d7

Browse files
committed
rustc/driver: remove explicit return, add explicit None
1 parent 292cc1e commit c46c4d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustc_driver/driver.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1548,7 +1548,7 @@ pub fn collect_crate_types(session: &Session, attrs: &[ast::Attribute]) -> Vec<c
15481548
}
15491549
None
15501550
}
1551-
_ => {
1551+
None => {
15521552
session
15531553
.struct_span_err(a.span, "`crate_type` requires a value")
15541554
.note("for example: `#![crate_type=\"lib\"]`")

src/librustc_driver/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -997,7 +997,7 @@ impl RustcDefaultCalls {
997997
return Compilation::Stop;
998998
}
999999

1000-
return Compilation::Continue;
1000+
Compilation::Continue
10011001
}
10021002

10031003

0 commit comments

Comments
 (0)