File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 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;
1616extern crate rustc_span;
1717
1818use rustc_interface:: interface;
19+ use rustc_session:: EarlyErrorHandler ;
20+ use rustc_session:: config:: ErrorOutputType ;
1921use rustc_session:: parse:: ParseSess ;
2022use rustc_span:: symbol:: Symbol ;
2123
@@ -187,7 +189,9 @@ const BUG_REPORT_URL: &str = "https://github.com/rust-lang/rust-clippy/issues/ne
187189
188190#[ allow( clippy:: too_many_lines) ]
189191pub 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) ;
191195
192196 rustc_driver:: install_ice_hook ( BUG_REPORT_URL , |handler| {
193197 // 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