2022-06-10 15:50:06 +01:00
|
|
|
error: diagnostics should be created using translatable messages
|
2024-08-10 19:29:20 +03:00
|
|
|
--> $DIR/diagnostics.rs:43:31
|
2022-06-10 15:50:06 +01:00
|
|
|
|
|
2024-02-23 10:20:45 +11:00
|
|
|
LL | Diag::new(dcx, level, "untranslatable diagnostic")
|
2024-08-10 19:29:20 +03:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-06-10 15:50:06 +01:00
|
|
|
|
|
|
|
|
note: the lint level is defined here
|
2024-03-05 11:54:37 +11:00
|
|
|
--> $DIR/diagnostics.rs:7:9
|
2022-06-10 15:50:06 +01:00
|
|
|
|
|
|
|
|
LL | #![deny(rustc::untranslatable_diagnostic)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: diagnostics should be created using translatable messages
|
2024-08-10 19:29:20 +03:00
|
|
|
--> $DIR/diagnostics.rs:64:19
|
2022-06-10 15:50:06 +01:00
|
|
|
|
|
|
|
|
LL | diag.note("untranslatable diagnostic");
|
2024-08-10 19:29:20 +03:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-06-10 15:50:06 +01:00
|
|
|
|
2024-02-20 14:12:50 +11:00
|
|
|
error: diagnostics should be created using translatable messages
|
2024-08-10 19:29:20 +03:00
|
|
|
--> $DIR/diagnostics.rs:85:19
|
2024-02-20 14:12:50 +11:00
|
|
|
|
|
|
|
|
LL | diag.note("untranslatable diagnostic");
|
2024-08-10 19:29:20 +03:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2024-02-20 14:12:50 +11:00
|
|
|
|
2024-03-08 12:03:51 +11:00
|
|
|
error: diagnostics should only be created in `Diagnostic`/`Subdiagnostic`/`LintDiagnostic` impls
|
2024-05-22 16:46:05 +02:00
|
|
|
--> $DIR/diagnostics.rs:99:21
|
2022-06-10 15:50:06 +01:00
|
|
|
|
|
2023-12-18 14:13:53 +11:00
|
|
|
LL | let _diag = dcx.struct_err(crate::fluent_generated::no_crate_example);
|
|
|
|
| ^^^^^^^^^^
|
2022-06-10 15:50:06 +01:00
|
|
|
|
|
|
|
|
note: the lint level is defined here
|
2024-03-05 11:54:37 +11:00
|
|
|
--> $DIR/diagnostics.rs:8:9
|
2022-06-10 15:50:06 +01:00
|
|
|
|
|
|
|
|
LL | #![deny(rustc::diagnostic_outside_of_impl)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2024-03-08 12:03:51 +11:00
|
|
|
error: diagnostics should only be created in `Diagnostic`/`Subdiagnostic`/`LintDiagnostic` impls
|
2024-05-22 16:46:05 +02:00
|
|
|
--> $DIR/diagnostics.rs:102:21
|
2022-06-10 15:50:06 +01:00
|
|
|
|
|
2023-12-18 14:13:53 +11:00
|
|
|
LL | let _diag = dcx.struct_err("untranslatable diagnostic");
|
|
|
|
| ^^^^^^^^^^
|
2022-06-10 15:50:06 +01:00
|
|
|
|
|
|
|
error: diagnostics should be created using translatable messages
|
2024-08-10 19:29:20 +03:00
|
|
|
--> $DIR/diagnostics.rs:102:32
|
2022-06-10 15:50:06 +01:00
|
|
|
|
|
2023-12-18 14:13:53 +11:00
|
|
|
LL | let _diag = dcx.struct_err("untranslatable diagnostic");
|
2024-08-10 19:29:20 +03:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-06-10 15:50:06 +01:00
|
|
|
|
2024-08-10 20:15:52 +03:00
|
|
|
error: diagnostics should be created using translatable messages
|
2024-08-10 19:29:20 +03:00
|
|
|
--> $DIR/diagnostics.rs:120:7
|
2024-08-10 20:15:52 +03:00
|
|
|
|
|
|
|
|
LL | f("untranslatable diagnostic", crate::fluent_generated::no_crate_example);
|
2024-08-10 19:29:20 +03:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2024-08-10 20:15:52 +03:00
|
|
|
|
|
|
|
error: diagnostics should be created using translatable messages
|
2024-08-10 19:29:20 +03:00
|
|
|
--> $DIR/diagnostics.rs:122:50
|
2024-08-10 20:15:52 +03:00
|
|
|
|
|
|
|
|
LL | f(crate::fluent_generated::no_crate_example, "untranslatable diagnostic");
|
2024-08-10 19:29:20 +03:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2024-08-10 20:15:52 +03:00
|
|
|
|
|
|
|
error: diagnostics should be created using translatable messages
|
2024-08-10 19:29:20 +03:00
|
|
|
--> $DIR/diagnostics.rs:124:7
|
2024-08-10 20:15:52 +03:00
|
|
|
|
|
|
|
|
LL | f("untranslatable diagnostic", "untranslatable diagnostic");
|
2024-08-10 19:29:20 +03:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2024-08-10 20:15:52 +03:00
|
|
|
|
|
|
|
error: diagnostics should be created using translatable messages
|
2024-08-10 19:29:20 +03:00
|
|
|
--> $DIR/diagnostics.rs:124:36
|
2024-08-10 20:15:52 +03:00
|
|
|
|
|
|
|
|
LL | f("untranslatable diagnostic", "untranslatable diagnostic");
|
2024-08-10 19:29:20 +03:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2024-08-10 20:15:52 +03:00
|
|
|
|
|
|
|
error: aborting due to 10 previous errors
|
2022-06-10 15:50:06 +01:00
|
|
|
|