File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ extern crate rustc_session;
16
16
extern crate rustc_span;
17
17
18
18
use rustc_interface:: interface;
19
+ use rustc_session:: EarlyErrorHandler ;
20
+ use rustc_session:: config:: ErrorOutputType ;
19
21
use rustc_session:: parse:: ParseSess ;
20
22
use rustc_span:: symbol:: Symbol ;
21
23
@@ -187,7 +189,9 @@ const BUG_REPORT_URL: &str = "https://github.com/rust-lang/rust-clippy/issues/ne
187
189
188
190
#[ allow( clippy:: too_many_lines) ]
189
191
pub fn main ( ) {
190
- rustc_driver:: init_rustc_env_logger ( ) ;
192
+ let handler = EarlyErrorHandler :: new ( ErrorOutputType :: default ( ) ) ;
193
+
194
+ rustc_driver:: init_rustc_env_logger ( & handler) ;
191
195
192
196
rustc_driver:: install_ice_hook ( BUG_REPORT_URL , |handler| {
193
197
// FIXME: this macro calls unwrap internally but is called in a panicking context! It's not
You can’t perform that action at this time.
0 commit comments