1 error: diagnostics should be created using translatable messages
2 --> $DIR/diagnostics.rs:37:14
4 LL | sess.struct_err("untranslatable diagnostic")
7 note: the lint level is defined here
8 --> $DIR/diagnostics.rs:6:9
10 LL | #![deny(rustc::untranslatable_diagnostic)]
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13 error: diagnostics should be created using translatable messages
14 --> $DIR/diagnostics.rs:54:14
16 LL | diag.note("untranslatable diagnostic");
19 error: diagnostics should only be created in `SessionDiagnostic`/`AddSubdiagnostic` impls
20 --> $DIR/diagnostics.rs:68:22
22 LL | let _diag = sess.struct_err(fluent::parser::expect_path);
25 note: the lint level is defined here
26 --> $DIR/diagnostics.rs:7:9
28 LL | #![deny(rustc::diagnostic_outside_of_impl)]
29 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
31 error: diagnostics should only be created in `SessionDiagnostic`/`AddSubdiagnostic` impls
32 --> $DIR/diagnostics.rs:71:22
34 LL | let _diag = sess.struct_err("untranslatable diagnostic");
37 error: diagnostics should be created using translatable messages
38 --> $DIR/diagnostics.rs:71:22
40 LL | let _diag = sess.struct_err("untranslatable diagnostic");
43 error: aborting due to 5 previous errors