diff options
| author | ljedrz <ljedrz@gmail.com> | 2018-10-12 14:32:56 +0200 |
|---|---|---|
| committer | ljedrz <ljedrz@gmail.com> | 2018-10-13 10:09:42 +0200 |
| commit | c46c4d7135a32cb8c5609ac1042858a4151fbd43 (patch) | |
| tree | 0077f3f119e20735b0bb5a2ba3d0b4d8f02a34a7 | |
| parent | 292cc1e36fcace60fac19c35b61bb20ab145b057 (diff) | |
| download | rust-c46c4d7135a32cb8c5609ac1042858a4151fbd43.tar.gz rust-c46c4d7135a32cb8c5609ac1042858a4151fbd43.zip | |
rustc/driver: remove explicit return, add explicit None
| -rw-r--r-- | src/librustc_driver/driver.rs | 2 | ||||
| -rw-r--r-- | src/librustc_driver/lib.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_driver/driver.rs b/src/librustc_driver/driver.rs index 688e083ac47..040f835bf5e 100644 --- a/src/librustc_driver/driver.rs +++ b/src/librustc_driver/driver.rs @@ -1548,7 +1548,7 @@ pub fn collect_crate_types(session: &Session, attrs: &[ast::Attribute]) -> Vec<c } None } - _ => { + None => { session .struct_span_err(a.span, "`crate_type` requires a value") .note("for example: `#![crate_type=\"lib\"]`") diff --git a/src/librustc_driver/lib.rs b/src/librustc_driver/lib.rs index e56ffb20a90..8ec88c9d8f6 100644 --- a/src/librustc_driver/lib.rs +++ b/src/librustc_driver/lib.rs @@ -997,7 +997,7 @@ impl RustcDefaultCalls { return Compilation::Stop; } - return Compilation::Continue; + Compilation::Continue } |
