rustc_driver: Catch ICEs on the main thread too
This commit is contained in:
parent
a9975254ee
commit
64bcbca81b
1 changed files with 2 additions and 1 deletions
|
@ -1526,7 +1526,8 @@ pub fn in_rustc_thread<F, R>(f: F) -> Result<R, Box<Any + Send>>
|
|||
let thread = cfg.spawn(f);
|
||||
thread.unwrap().join()
|
||||
} else {
|
||||
Ok(f())
|
||||
let f = panic::AssertUnwindSafe(f);
|
||||
panic::catch_unwind(f)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue