File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ extern crate lazy_static;
44extern crate rustc_driver;
55extern crate rustc_errors;
66extern crate rustc_interface;
7+ extern crate rustc_session;
78
89#[ macro_use]
910extern crate log;
@@ -14,6 +15,7 @@ use creusot::callbacks::*;
1415use rustc_driver:: { RunCompiler , DEFAULT_LOCALE_RESOURCES } ;
1516use rustc_errors:: { emitter:: EmitterWriter , TerminalUrl } ;
1617use rustc_interface:: interface:: try_print_query_stack;
18+ use rustc_session:: { config:: ErrorOutputType , EarlyErrorHandler } ;
1719use std:: { env, panic, panic:: PanicInfo , process:: Command } ;
1820
1921const BUG_REPORT_URL : & ' static str = & "https://github.com/xldenis/creusot/issues/new" ;
@@ -67,7 +69,8 @@ struct DefaultCallbacks;
6769impl rustc_driver:: Callbacks for DefaultCallbacks { }
6870
6971fn main ( ) {
70- rustc_driver:: init_rustc_env_logger ( ) ;
72+ let handler = EarlyErrorHandler :: new ( ErrorOutputType :: default ( ) ) ;
73+ rustc_driver:: init_rustc_env_logger ( & handler) ;
7174 env_logger:: init ( ) ;
7275 lazy_static:: initialize ( & ICE_HOOK ) ;
7376
You can’t perform that action at this time.
0 commit comments