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