We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7d4b6dc + 0705ea2 commit 873ae7aCopy full SHA for 873ae7a
src/librustdoc/lib.rs
@@ -865,11 +865,11 @@ fn main_args(
865
}
866
867
let krate = rustc_interface::passes::parse(sess);
868
- if sess.dcx().has_errors().is_some() {
869
- sess.dcx().fatal("Compilation failed, aborting rustdoc");
870
- }
871
-
872
rustc_interface::create_and_enter_global_ctxt(compiler, krate, |tcx| {
+ if sess.dcx().has_errors().is_some() {
+ sess.dcx().fatal("Compilation failed, aborting rustdoc");
+ }
+
873
let (krate, render_opts, mut cache) = sess.time("run_global_ctxt", || {
874
core::run_global_ctxt(tcx, show_coverage, render_options, output_format)
875
});
0 commit comments