This commit is contained in:
flip1995 2020-05-17 01:18:43 +02:00
parent 404ae5b211
commit 7f317b708f
No known key found for this signature in database
GPG key ID: 2CEFCDB27ED0BE79

View file

@ -295,8 +295,7 @@ fn toolchain_path(home: Option<String>, toolchain: Option<String>) -> Option<Pat
pub fn main() {
rustc_driver::init_rustc_env_logger();
lazy_static::initialize(&ICE_HOOK);
exit(
rustc_driver::catch_with_exit_code(move || {
exit(rustc_driver::catch_with_exit_code(move || {
let mut orig_args: Vec<String> = env::args().collect();
if orig_args.iter().any(|a| a == "--version" || a == "-V") {
@ -410,6 +409,5 @@ pub fn main() {
let callbacks: &mut (dyn rustc_driver::Callbacks + Send) =
if clippy_enabled { &mut clippy } else { &mut default };
rustc_driver::run_compiler(&args, callbacks, None, None)
})
)
}))
}