2022-06-10 09:50:06 -05:00
|
|
|
error: diagnostics should be created using translatable messages
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostics.rs:43:17
|
2022-06-10 09:50:06 -05:00
|
|
|
|
|
2022-09-05 11:05:14 -05:00
|
|
|
LL | handler.struct_err("untranslatable diagnostic")
|
|
|
|
| ^^^^^^^^^^
|
2022-06-10 09:50:06 -05:00
|
|
|
|
|
|
|
|
note: the lint level is defined here
|
2022-08-31 06:06:22 -05:00
|
|
|
--> $DIR/diagnostics.rs:6:9
|
2022-06-10 09:50:06 -05:00
|
|
|
|
|
|
|
|
LL | #![deny(rustc::untranslatable_diagnostic)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: diagnostics should be created using translatable messages
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostics.rs:63:14
|
2022-06-10 09:50:06 -05:00
|
|
|
|
|
|
|
|
LL | diag.note("untranslatable diagnostic");
|
|
|
|
| ^^^^
|
|
|
|
|
2022-09-18 10:46:16 -05:00
|
|
|
error: diagnostics should only be created in `IntoDiagnostic`/`AddToDiagnostic` impls
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostics.rs:80:25
|
2022-06-10 09:50:06 -05:00
|
|
|
|
|
2022-10-13 04:13:02 -05:00
|
|
|
LL | let _diag = handler.struct_err(crate::fluent_generated::no_crate_example);
|
2022-09-05 11:05:14 -05:00
|
|
|
| ^^^^^^^^^^
|
2022-06-10 09:50:06 -05:00
|
|
|
|
|
|
|
|
note: the lint level is defined here
|
2022-08-31 06:06:22 -05:00
|
|
|
--> $DIR/diagnostics.rs:7:9
|
2022-06-10 09:50:06 -05:00
|
|
|
|
|
|
|
|
LL | #![deny(rustc::diagnostic_outside_of_impl)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2022-09-18 10:46:16 -05:00
|
|
|
error: diagnostics should only be created in `IntoDiagnostic`/`AddToDiagnostic` impls
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostics.rs:83:25
|
2022-06-10 09:50:06 -05:00
|
|
|
|
|
2022-09-05 11:05:14 -05:00
|
|
|
LL | let _diag = handler.struct_err("untranslatable diagnostic");
|
|
|
|
| ^^^^^^^^^^
|
2022-06-10 09:50:06 -05:00
|
|
|
|
|
|
|
error: diagnostics should be created using translatable messages
|
2023-04-16 07:33:00 -05:00
|
|
|
--> $DIR/diagnostics.rs:83:25
|
2022-06-10 09:50:06 -05:00
|
|
|
|
|
2022-09-05 11:05:14 -05:00
|
|
|
LL | let _diag = handler.struct_err("untranslatable diagnostic");
|
|
|
|
| ^^^^^^^^^^
|
2022-06-10 09:50:06 -05:00
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
|
|
|
|