Skip to content

Commit

Permalink
consistent lower-case error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Sep 26, 2023
1 parent a9ee76a commit c816d89
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/status_emitter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ fn print_error(error: &Error, path: &Path) {
.collect::<Vec<_>>();
// This will print a suitable error header.
create_error(
format!("There were {} unmatched diagnostics", msgs.len()),
format!("there were {} unmatched diagnostics", msgs.len()),
&[(
&msgs
.iter()
Expand Down
12 changes: 6 additions & 6 deletions tests/integrations/basic-fail/Cargo.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ error: `miesmätsched types` not found in diagnostics on line 4
| ^^^^^^^^^^^^^^^^^^ expected because of this pattern
|

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


error: There were 1 unmatched diagnostics
error: there were 1 unmatched diagnostics
--> tests/actual_tests/executable_compile_err.rs:4:1
|
4 |
Expand Down Expand Up @@ -241,7 +241,7 @@ error: `mismatched types` not found in diagnostics on line 10
| ^^^^^^^^^^^^^^^^ expected because of this pattern
|

error: There were 1 unmatched diagnostics
error: there were 1 unmatched diagnostics
--> tests/actual_tests/rustc_ice.rs:10:5
|
10 | add("42", 3);
Expand Down Expand Up @@ -358,7 +358,7 @@ full stdout:
FAILED TEST: tests/actual_tests_bless/aux_proc_macro_no_main.rs
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"

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

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

error: There were 1 unmatched diagnostics
error: there were 1 unmatched diagnostics
--> tests/actual_tests_bless/revisions_bad.rs:10:2
|
10 | }
Expand Down

0 comments on commit c816d89

Please sign in to comment.