File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/tools/compiletest/src Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1384,7 +1384,9 @@ impl<'test> TestCx<'test> {
1384
1384
let actual_errors = json:: parse_output ( & diagnostic_file_name, & proc_res. stderr , proc_res) ;
1385
1385
let mut unexpected = Vec :: new ( ) ;
1386
1386
let mut found = vec ! [ false ; expected_errors. len( ) ] ;
1387
- for actual_error in & actual_errors {
1387
+ for mut actual_error in actual_errors {
1388
+ actual_error. msg = self . normalize_output ( & actual_error. msg , & [ ] ) ;
1389
+
1388
1390
let opt_index =
1389
1391
expected_errors. iter ( ) . enumerate ( ) . position ( |( index, expected_error) | {
1390
1392
!found[ index]
@@ -1403,7 +1405,8 @@ impl<'test> TestCx<'test> {
1403
1405
1404
1406
None => {
1405
1407
// If the test is a known bug, don't require that the error is annotated
1406
- if self . is_unexpected_compiler_message ( actual_error, expect_help, expect_note) {
1408
+ if self . is_unexpected_compiler_message ( & actual_error, expect_help, expect_note)
1409
+ {
1407
1410
self . error ( & format ! (
1408
1411
"{}:{}: unexpected {}: '{}'" ,
1409
1412
file_name,
You can’t perform that action at this time.
0 commit comments