Skip to content

Commit c816d89

Browse files
committed
consistent lower-case error messages
1 parent a9ee76a commit c816d89

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/status_emitter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ fn print_error(error: &Error, path: &Path) {
492492
.collect::<Vec<_>>();
493493
// This will print a suitable error header.
494494
create_error(
495-
format!("There were {} unmatched diagnostics", msgs.len()),
495+
format!("there were {} unmatched diagnostics", msgs.len()),
496496
&[(
497497
&msgs
498498
.iter()

tests/integrations/basic-fail/Cargo.stdout

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ error: `miesmätsched types` not found in diagnostics on line 4
2424
| ^^^^^^^^^^^^^^^^^^ expected because of this pattern
2525
|
2626

27-
error: There were 1 unmatched diagnostics
27+
error: there were 1 unmatched diagnostics
2828
--> tests/actual_tests/bad_pattern.rs:4:9
2929
|
3030
4 | add("42", 3);
@@ -92,7 +92,7 @@ Execute `DO NOT BLESS. These are meant to fail` to update `tests/actual_tests/ex
9292
+
9393

9494

95-
error: There were 1 unmatched diagnostics
95+
error: there were 1 unmatched diagnostics
9696
--> tests/actual_tests/executable_compile_err.rs:4:1
9797
|
9898
4 |
@@ -241,7 +241,7 @@ error: `mismatched types` not found in diagnostics on line 10
241241
| ^^^^^^^^^^^^^^^^ expected because of this pattern
242242
|
243243

244-
error: There were 1 unmatched diagnostics
244+
error: there were 1 unmatched diagnostics
245245
--> tests/actual_tests/rustc_ice.rs:10:5
246246
|
247247
10 | add("42", 3);
@@ -358,7 +358,7 @@ full stdout:
358358
FAILED TEST: tests/actual_tests_bless/aux_proc_macro_no_main.rs
359359
command: "rustc" "--error-format=json" "--crate-type=lib" "--extern" "basic_fail=$DIR/$DIR/../../../target/$TMP/$TRIPLE/debug/libbasic_fail.rlib" "--extern" "basic_fail=$DIR/$DIR/../../../target/$TMP/$TRIPLE/debug/libbasic_fail-$HASH.rmeta" "-L" "$DIR/$DIR/../../../target/$TMP/$TRIPLE/debug" "-L" "$DIR/$DIR/../../../target/$TMP/$TRIPLE/debug" "--out-dir" "$TMP "tests/actual_tests_bless/aux_proc_macro_no_main.rs" "--edition" "2021" "--extern" "the_proc_macro=$DIR/$DIR/../../../target/$TMP/tests/actual_tests_bless/auxiliary/libthe_proc_macro.so" "-L" "$DIR/$DIR/../../../target/$TMP/tests/actual_tests_bless/auxiliary"
360360

361-
error: There were 1 unmatched diagnostics
361+
error: there were 1 unmatched diagnostics
362362
--> tests/actual_tests_bless/aux_proc_macro_no_main.rs:7:8
363363
|
364364
7 | thing!(cake);
@@ -470,7 +470,7 @@ command: "rustc" "--error-format=json" "--crate-type=lib" "--extern" "basic_fail
470470
error: there were 1 unmatched diagnostics that occurred outside the testfile and had no pattern
471471
Error: cannot mix `bin` crate type with others
472472

473-
error: There were 1 unmatched diagnostics
473+
error: there were 1 unmatched diagnostics
474474
--> tests/actual_tests_bless/no_main_manual.rs:3:16
475475
|
476476
3 | pub fn foo() {}
@@ -612,7 +612,7 @@ error: ``main` function not found in crate `revisions_bad`` not found in diagnos
612612
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected because of this pattern
613613
|
614614

615-
error: There were 1 unmatched diagnostics
615+
error: there were 1 unmatched diagnostics
616616
--> tests/actual_tests_bless/revisions_bad.rs:10:2
617617
|
618618
10 | }

0 commit comments

Comments
 (0)