2022-06-10 09:50:06 -05:00
|
|
|
error: diagnostics should be created using translatable messages
|
2022-09-05 11:59:56 -05:00
|
|
|
--> $DIR/diagnostics.rs:39: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
|
2022-10-03 08:09:05 -05:00
|
|
|
--> $DIR/diagnostics.rs:59: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
|
2022-10-03 08:09:05 -05:00
|
|
|
--> $DIR/diagnostics.rs:76:25
|
2022-06-10 09:50:06 -05:00
|
|
|
|
|
2022-10-22 04:08:09 -05:00
|
|
|
LL | let _diag = handler.struct_err(fluent::compiletest_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
|
2022-10-03 08:09:05 -05:00
|
|
|
--> $DIR/diagnostics.rs:79: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
|
2022-10-03 08:09:05 -05:00
|
|
|
--> $DIR/diagnostics.rs:79: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
|
|
|
|
|