Skip to content

Commit d938a80

Browse files
author
Alexander Regueiro
committed
Fixed grammar for some time fn calls and a diagnostic.
1 parent 8431f26 commit d938a80

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/librustc_interface/passes.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ pub fn register_plugins<'a>(
247247
rustc_incremental::prepare_session_directory(sess, &crate_name, disambiguator);
248248

249249
if sess.opts.incremental.is_some() {
250-
time(sess, "garbage collect incremental cache directory", || {
250+
time(sess, "garbage-collect incremental cache directory", || {
251251
if let Err(e) = rustc_incremental::garbage_collect_session_directories(sess) {
252252
warn!(
253253
"Error while trying to garbage collect incremental \
@@ -318,7 +318,7 @@ fn configure_and_expand_inner<'a>(
318318
crate_loader: &'a mut CrateLoader<'a>,
319319
plugin_info: PluginInfo,
320320
) -> Result<(ast::Crate, Resolver<'a>)> {
321-
time(sess, "pre ast expansion lint checks", || {
321+
time(sess, "pre-AST-expansion lint checks", || {
322322
lint::check_ast_crate(
323323
sess,
324324
&krate,
@@ -536,8 +536,8 @@ pub fn lower_to_hir(
536536
dep_graph: &DepGraph,
537537
krate: &ast::Crate,
538538
) -> 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", || {
541541
let hir_crate = lower_crate(sess, cstore, &dep_graph, &krate, resolver);
542542

543543
if sess.opts.debugging_opts.hir_stats {
@@ -757,7 +757,7 @@ pub fn prepare_outputs(
757757
if !only_dep_info {
758758
if let Some(ref dir) = compiler.output_dir {
759759
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`");
761761
return Err(ErrorReported);
762762
}
763763
}
@@ -830,8 +830,8 @@ pub fn create_global_ctxt(
830830
let global_ctxt: Option<GlobalCtxt<'_>>;
831831
let arenas = AllArenas::new();
832832

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", || {
835835
hir::map::map_crate(sess, cstore, &mut hir_forest, &defs)
836836
});
837837

@@ -942,7 +942,7 @@ fn analysis(tcx: TyCtxt<'_>, cnum: CrateNum) -> Result<()> {
942942
tcx.par_body_owners(|def_id| tcx.ensure().mir_borrowck(def_id));
943943
});
944944

945-
time(sess, "dumping chalk-like clauses", || {
945+
time(sess, "dumping Chalk-like clauses", || {
946946
rustc_traits::lowering::dump_program_clauses(tcx);
947947
});
948948

0 commit comments

Comments
 (0)