2022-06-10 15:50:06 +01:00
|
|
|
error: diagnostics should be created using translatable messages
|
2023-12-18 14:12:39 +11:00
|
|
|
--> $DIR/diagnostics.rs:42:9
|
2022-06-10 15:50:06 +01:00
|
|
|
|
|
2023-12-18 14:12:39 +11:00
|
|
|
LL | DiagnosticBuilder::new(dcx, level, "untranslatable diagnostic")
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
2022-06-10 15:50:06 +01:00
|
|
|
|
|
|
|
|
note: the lint level is defined here
|
2022-08-31 12:06:22 +01:00
|
|
|
--> $DIR/diagnostics.rs:6:9
|
2022-06-10 15:50:06 +01:00
|
|
|
|
|
|
|
|
LL | #![deny(rustc::untranslatable_diagnostic)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: diagnostics should be created using translatable messages
|
2024-02-06 16:35:19 +11:00
|
|
|
--> $DIR/diagnostics.rs:60:14
|
2022-06-10 15:50:06 +01:00
|
|
|
|
|
|
|
|
LL | diag.note("untranslatable diagnostic");
|
|
|
|
| ^^^^
|
|
|
|
|
2022-09-18 11:46:16 -04:00
|
|
|
error: diagnostics should only be created in `IntoDiagnostic`/`AddToDiagnostic` impls
|
2024-02-06 16:35:19 +11:00
|
|
|
--> $DIR/diagnostics.rs:74: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
|
2022-08-31 12:06:22 +01:00
|
|
|
--> $DIR/diagnostics.rs:7:9
|
2022-06-10 15:50:06 +01:00
|
|
|
|
|
|
|
|
LL | #![deny(rustc::diagnostic_outside_of_impl)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2022-09-18 11:46:16 -04:00
|
|
|
error: diagnostics should only be created in `IntoDiagnostic`/`AddToDiagnostic` impls
|
2024-02-06 16:35:19 +11:00
|
|
|
--> $DIR/diagnostics.rs:77: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-02-06 16:35:19 +11:00
|
|
|
--> $DIR/diagnostics.rs:77: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: aborting due to 5 previous errors
|
|
|
|
|