Skip to content

Commit 31e9f40

Browse files
committed
FIX - broken translatable diagnostics tests
1 parent d14b3af commit 31e9f40

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/test/ui-fulldeps/internal-lints/diagnostics.stderr

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: diagnostics should be created using translatable messages
2-
--> $DIR/diagnostics.rs:37:17
2+
--> $DIR/diagnostics.rs:39:17
33
|
44
LL | handler.struct_err("untranslatable diagnostic")
55
| ^^^^^^^^^^
@@ -11,13 +11,13 @@ LL | #![deny(rustc::untranslatable_diagnostic)]
1111
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1212

1313
error: diagnostics should be created using translatable messages
14-
--> $DIR/diagnostics.rs:54:14
14+
--> $DIR/diagnostics.rs:56:14
1515
|
1616
LL | diag.note("untranslatable diagnostic");
1717
| ^^^^
1818

1919
error: diagnostics should only be created in `SessionDiagnostic`/`AddSubdiagnostic` impls
20-
--> $DIR/diagnostics.rs:68:25
20+
--> $DIR/diagnostics.rs:70:25
2121
|
2222
LL | let _diag = handler.struct_err(fluent::parser::expect_path);
2323
| ^^^^^^^^^^
@@ -29,13 +29,13 @@ LL | #![deny(rustc::diagnostic_outside_of_impl)]
2929
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3030

3131
error: diagnostics should only be created in `SessionDiagnostic`/`AddSubdiagnostic` impls
32-
--> $DIR/diagnostics.rs:71:25
32+
--> $DIR/diagnostics.rs:73:25
3333
|
3434
LL | let _diag = handler.struct_err("untranslatable diagnostic");
3535
| ^^^^^^^^^^
3636

3737
error: diagnostics should be created using translatable messages
38-
--> $DIR/diagnostics.rs:71:25
38+
--> $DIR/diagnostics.rs:73:25
3939
|
4040
LL | let _diag = handler.struct_err("untranslatable diagnostic");
4141
| ^^^^^^^^^^

0 commit comments

Comments
 (0)