diff options
| author | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2018-01-21 12:47:58 +0100 |
|---|---|---|
| committer | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2018-01-26 04:52:30 +0100 |
| commit | 9a8d6b8bb5dd7dd2d378849f0c2fa586e3a5b48b (patch) | |
| tree | ee04624362f08eb705597831fbc197b68c8d20a7 /src/libsyntax/feature_gate.rs | |
| parent | 9fd7da904b46ff7aa78c2e2cc1986c4975aeccc6 (diff) | |
| download | rust-9a8d6b8bb5dd7dd2d378849f0c2fa586e3a5b48b.tar.gz rust-9a8d6b8bb5dd7dd2d378849f0c2fa586e3a5b48b.zip | |
Do not capture stderr in the compiler. Instead just panic silently for fatal errors
Diffstat (limited to 'src/libsyntax/feature_gate.rs')
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index 5a7b53153fd..8512e215ca7 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -1954,7 +1954,7 @@ impl FeatureChecker { .span_note(ca_span, "`#![feature(custom_attribute)]` declared here") .emit(); - panic!(FatalError); + FatalError.raise(); } if let (Some(span), None) = (self.copy_closures, self.clone_closures) { @@ -1963,7 +1963,7 @@ impl FeatureChecker { .span_note(span, "`#![feature(copy_closures)]` declared here") .emit(); - panic!(FatalError); + FatalError.raise(); } } } |
