Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
floriangru committed Jul 6, 2023
1 parent 56096e4 commit a4c90a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cargo-creusot/src/bin/creusot-rustc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ extern crate lazy_static;
extern crate rustc_driver;
extern crate rustc_errors;
extern crate rustc_interface;
extern crate rustc_session;

#[macro_use]
extern crate log;
Expand All @@ -14,6 +15,7 @@ use creusot::callbacks::*;
use rustc_driver::{RunCompiler, DEFAULT_LOCALE_RESOURCES};
use rustc_errors::{emitter::EmitterWriter, TerminalUrl};
use rustc_interface::interface::try_print_query_stack;
use rustc_session::{config::ErrorOutputType, EarlyErrorHandler};
use std::{env, panic, panic::PanicInfo, process::Command};

const BUG_REPORT_URL: &'static str = &"https://github.com/xldenis/creusot/issues/new";
Expand Down Expand Up @@ -67,7 +69,8 @@ struct DefaultCallbacks;
impl rustc_driver::Callbacks for DefaultCallbacks {}

fn main() {
rustc_driver::init_rustc_env_logger();
let handler = EarlyErrorHandler::new(ErrorOutputType::default());
rustc_driver::init_rustc_env_logger(&handler);
env_logger::init();
lazy_static::initialize(&ICE_HOOK);

Expand Down

0 comments on commit a4c90a6

Please sign in to comment.