11error: diagnostics should be created using translatable messages
2- --> $DIR/diagnostics.rs:37 :17
2+ --> $DIR/diagnostics.rs:39 :17
33 |
44LL | handler.struct_err("untranslatable diagnostic")
55 | ^^^^^^^^^^
@@ -11,13 +11,13 @@ LL | #![deny(rustc::untranslatable_diagnostic)]
1111 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1212
1313error: diagnostics should be created using translatable messages
14- --> $DIR/diagnostics.rs:54 :14
14+ --> $DIR/diagnostics.rs:56 :14
1515 |
1616LL | diag.note("untranslatable diagnostic");
1717 | ^^^^
1818
1919error: diagnostics should only be created in `SessionDiagnostic`/`AddSubdiagnostic` impls
20- --> $DIR/diagnostics.rs:68 :25
20+ --> $DIR/diagnostics.rs:70 :25
2121 |
2222LL | let _diag = handler.struct_err(fluent::parser::expect_path);
2323 | ^^^^^^^^^^
@@ -29,13 +29,13 @@ LL | #![deny(rustc::diagnostic_outside_of_impl)]
2929 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3030
3131error: diagnostics should only be created in `SessionDiagnostic`/`AddSubdiagnostic` impls
32- --> $DIR/diagnostics.rs:71 :25
32+ --> $DIR/diagnostics.rs:73 :25
3333 |
3434LL | let _diag = handler.struct_err("untranslatable diagnostic");
3535 | ^^^^^^^^^^
3636
3737error: diagnostics should be created using translatable messages
38- --> $DIR/diagnostics.rs:71 :25
38+ --> $DIR/diagnostics.rs:73 :25
3939 |
4040LL | let _diag = handler.struct_err("untranslatable diagnostic");
4141 | ^^^^^^^^^^
0 commit comments