Skip to content

Commit a549c3a

Browse files
committed
Use underscores instead of spaces
1 parent 2934fd0 commit a549c3a

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/librustdoc/core.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ pub fn run_core(
409409
let hir = tcx.hir();
410410
let body = hir.body(hir.body_owned_by(hir.local_def_id_to_hir_id(def_id)));
411411
debug!("visiting body for {:?}", def_id);
412-
tcx.sess.time("emit ignored resolution errors", || {
412+
tcx.sess.time("emit_ignored_resolution_errors", || {
413413
EmitIgnoredResolutionErrors::new(tcx).visit_body(body);
414414
});
415415
(rustc_interface::DEFAULT_QUERY_PROVIDERS.typeck)(tcx, def_id)
@@ -433,7 +433,7 @@ pub fn run_core(
433433
// actually be loaded, just in case they're only referred to inside
434434
// intra-doc-links
435435
resolver.borrow_mut().access(|resolver| {
436-
sess.time("load extern crates", || {
436+
sess.time("load_extern_crates", || {
437437
for extern_name in &extern_names {
438438
resolver
439439
.resolve_str_path_error(
@@ -551,7 +551,7 @@ fn run_global_ctxt(
551551
};
552552
debug!("crate: {:?}", tcx.hir().krate());
553553

554-
let mut krate = tcx.sess.time("clean crate", || clean::krate(&mut ctxt));
554+
let mut krate = tcx.sess.time("clean_crate", || clean::krate(&mut ctxt));
555555

556556
if let Some(ref m) = krate.module {
557557
if let None | Some("") = m.doc_value() {

src/librustdoc/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -524,10 +524,10 @@ fn main_options(options: config::Options) -> MainResult {
524524
let (error_format, edition, debugging_options) = diag_opts;
525525
let diag = core::new_handler(error_format, None, &debugging_options);
526526
match output_format {
527-
None | Some(config::OutputFormat::Html) => sess.time("render html", || {
527+
None | Some(config::OutputFormat::Html) => sess.time("render_html", || {
528528
run_renderer::<html::render::Context>(krate, renderopts, renderinfo, &diag, edition)
529529
}),
530-
Some(config::OutputFormat::Json) => sess.time("render json", || {
530+
Some(config::OutputFormat::Json) => sess.time("render_json", || {
531531
run_renderer::<json::JsonRenderer>(krate, renderopts, renderinfo, &diag, edition)
532532
}),
533533
}

src/librustdoc/passes/collect_trait_impls.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub fn collect_trait_impls(krate: Crate, cx: &DocContext<'_>) -> Crate {
2929

3030
for &cnum in cx.tcx.crates().iter() {
3131
for &(did, _) in cx.tcx.all_trait_implementations(cnum).iter() {
32-
cx.tcx.sess.time("build extern trait impl", || {
32+
cx.tcx.sess.time("build_extern_trait_impl", || {
3333
inline::build_impl(cx, did, None, &mut new_items);
3434
});
3535
}
@@ -89,7 +89,7 @@ pub fn collect_trait_impls(krate: Crate, cx: &DocContext<'_>) -> Crate {
8989
for &trait_did in cx.tcx.all_traits(LOCAL_CRATE).iter() {
9090
for &impl_node in cx.tcx.hir().trait_impls(trait_did) {
9191
let impl_did = cx.tcx.hir().local_def_id(impl_node);
92-
cx.tcx.sess.time("build local trait impl", || {
92+
cx.tcx.sess.time("build_local_trait_impl", || {
9393
inline::build_impl(cx, impl_did.to_def_id(), None, &mut new_items);
9494
});
9595
}

0 commit comments

Comments
 (0)