2022-06-10 09:50:06 -05:00
|
|
|
error: diagnostics should be created using translatable messages
|
2023-12-17 21:13:53 -06:00
|
|
|
--> $DIR/diagnostics.rs:42:13
|
2022-06-10 09:50:06 -05:00
|
|
|
|
|
2023-12-17 21:13:53 -06:00
|
|
|
LL | dcx.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-11-21 16:53:07 -06:00
|
|
|
--> $DIR/diagnostics.rs:62: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-12-17 21:13:53 -06:00
|
|
|
--> $DIR/diagnostics.rs:79: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
|
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-12-17 21:13:53 -06:00
|
|
|
--> $DIR/diagnostics.rs:82: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
|
2023-12-17 21:13:53 -06:00
|
|
|
--> $DIR/diagnostics.rs:82: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: aborting due to 5 previous errors
|
|
|
|
|