@@ -247,7 +247,7 @@ pub fn register_plugins<'a>(
247
247
rustc_incremental:: prepare_session_directory ( sess, & crate_name, disambiguator) ;
248
248
249
249
if sess. opts . incremental . is_some ( ) {
250
- time ( sess, "garbage collect incremental cache directory" , || {
250
+ time ( sess, "garbage- collect incremental cache directory" , || {
251
251
if let Err ( e) = rustc_incremental:: garbage_collect_session_directories ( sess) {
252
252
warn ! (
253
253
"Error while trying to garbage collect incremental \
@@ -318,7 +318,7 @@ fn configure_and_expand_inner<'a>(
318
318
crate_loader : & ' a mut CrateLoader < ' a > ,
319
319
plugin_info : PluginInfo ,
320
320
) -> Result < ( ast:: Crate , Resolver < ' a > ) > {
321
- time ( sess, "pre ast expansion lint checks" , || {
321
+ time ( sess, "pre-AST- expansion lint checks" , || {
322
322
lint:: check_ast_crate (
323
323
sess,
324
324
& krate,
@@ -536,8 +536,8 @@ pub fn lower_to_hir(
536
536
dep_graph : & DepGraph ,
537
537
krate : & ast:: Crate ,
538
538
) -> Result < hir:: map:: Forest > {
539
- // Lower ast -> hir
540
- let hir_forest = time ( sess, "lowering ast -> hir " , || {
539
+ // Lower AST to HIR.
540
+ let hir_forest = time ( sess, "lowering AST -> HIR " , || {
541
541
let hir_crate = lower_crate ( sess, cstore, & dep_graph, & krate, resolver) ;
542
542
543
543
if sess. opts . debugging_opts . hir_stats {
@@ -757,7 +757,7 @@ pub fn prepare_outputs(
757
757
if !only_dep_info {
758
758
if let Some ( ref dir) = compiler. output_dir {
759
759
if fs:: create_dir_all ( dir) . is_err ( ) {
760
- sess. err ( "failed to find or create the directory specified by --out-dir" ) ;
760
+ sess. err ( "failed to find or create the directory specified by ` --out-dir` " ) ;
761
761
return Err ( ErrorReported ) ;
762
762
}
763
763
}
@@ -830,8 +830,8 @@ pub fn create_global_ctxt(
830
830
let global_ctxt: Option < GlobalCtxt < ' _ > > ;
831
831
let arenas = AllArenas :: new ( ) ;
832
832
833
- // Construct the HIR map
834
- let hir_map = time ( sess, "indexing hir " , || {
833
+ // Construct the HIR map.
834
+ let hir_map = time ( sess, "indexing HIR " , || {
835
835
hir:: map:: map_crate ( sess, cstore, & mut hir_forest, & defs)
836
836
} ) ;
837
837
@@ -942,7 +942,7 @@ fn analysis(tcx: TyCtxt<'_>, cnum: CrateNum) -> Result<()> {
942
942
tcx. par_body_owners ( |def_id| tcx. ensure ( ) . mir_borrowck ( def_id) ) ;
943
943
} ) ;
944
944
945
- time ( sess, "dumping chalk -like clauses" , || {
945
+ time ( sess, "dumping Chalk -like clauses" , || {
946
946
rustc_traits:: lowering:: dump_program_clauses ( tcx) ;
947
947
} ) ;
948
948
0 commit comments