1
Fork 0

Refactor run_global_ctxt.

It currently is infallible and uses `abort_if_errors` and
`FatalError.raise()` to signal errors. It's easy to instead return a
`Result<_, ErrorGuaranteed>`, which is the more usual way of doing
things.
This commit is contained in:
Nicholas Nethercote 2024-02-19 10:27:23 +11:00
parent c2512a130f
commit 44006444c8
2 changed files with 10 additions and 7 deletions

View file

@ -787,7 +787,7 @@ fn main_args(
gcx.enter(|tcx| {
let (krate, render_opts, mut cache) = sess.time("run_global_ctxt", || {
core::run_global_ctxt(tcx, show_coverage, render_options, output_format)
});
})?;
info!("finished with rustc");
if let Some(options) = scrape_examples_options {