about summary refs log tree commit diff
path: root/src/librustc_errors/lib.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-05-21 01:53:20 +0000
committerbors <bors@rust-lang.org>2017-05-21 01:53:20 +0000
commit7ac844ffb850a73b98cd47cbdec909d1f03c7987 (patch)
tree45c04ee9ee8bea15018df1fc3ad800e05c057341 /src/librustc_errors/lib.rs
parent92ee08ad1c1cbd0aa6e7b9a3f8295081439403fa (diff)
parent382c0eb810b9cd9f1e944df629f14a2dae0b13f4 (diff)
downloadrust-7ac844ffb850a73b98cd47cbdec909d1f03c7987.tar.gz
rust-7ac844ffb850a73b98cd47cbdec909d1f03c7987.zip
Auto merge of #42130 - Mark-Simulacrum:rollup, r=Mark-Simulacrum
Rollup of 6 pull requests

- Successful merges: #41892, #42062, #42091, #42093, #42098, #42127
- Failed merges:
Diffstat (limited to 'src/librustc_errors/lib.rs')
-rw-r--r--src/librustc_errors/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_errors/lib.rs b/src/librustc_errors/lib.rs
index 7a561e3a970..c91dc9d8797 100644
--- a/src/librustc_errors/lib.rs
+++ b/src/librustc_errors/lib.rs
@@ -383,7 +383,7 @@ impl Handler {
     pub fn span_fatal<S: Into<MultiSpan>>(&self, sp: S, msg: &str) -> FatalError {
         self.emit(&sp.into(), msg, Fatal);
         self.panic_if_treat_err_as_bug();
-        return FatalError;
+        FatalError
     }
     pub fn span_fatal_with_code<S: Into<MultiSpan>>(&self,
                                                     sp: S,
@@ -392,7 +392,7 @@ impl Handler {
                                                     -> FatalError {
         self.emit_with_code(&sp.into(), msg, code, Fatal);
         self.panic_if_treat_err_as_bug();
-        return FatalError;
+        FatalError
     }
     pub fn span_err<S: Into<MultiSpan>>(&self, sp: S, msg: &str) {
         self.emit(&sp.into(), msg, Error);