fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: diagnostics should be created using translatable messages 2 --> $DIR/diagnostics.rs:43:17 3 | 4LL | handler.struct_err("untranslatable diagnostic") 5 | ^^^^^^^^^^ 6 | 7note: the lint level is defined here 8 --> $DIR/diagnostics.rs:6:9 9 | 10LL | #![deny(rustc::untranslatable_diagnostic)] 11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12 13error: diagnostics should be created using translatable messages 14 --> $DIR/diagnostics.rs:63:14 15 | 16LL | diag.note("untranslatable diagnostic"); 17 | ^^^^ 18 19error: diagnostics should only be created in `IntoDiagnostic`/`AddToDiagnostic` impls 20 --> $DIR/diagnostics.rs:80:25 21 | 22LL | let _diag = handler.struct_err(crate::fluent_generated::no_crate_example); 23 | ^^^^^^^^^^ 24 | 25note: the lint level is defined here 26 --> $DIR/diagnostics.rs:7:9 27 | 28LL | #![deny(rustc::diagnostic_outside_of_impl)] 29 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 30 31error: diagnostics should only be created in `IntoDiagnostic`/`AddToDiagnostic` impls 32 --> $DIR/diagnostics.rs:83:25 33 | 34LL | let _diag = handler.struct_err("untranslatable diagnostic"); 35 | ^^^^^^^^^^ 36 37error: diagnostics should be created using translatable messages 38 --> $DIR/diagnostics.rs:83:25 39 | 40LL | let _diag = handler.struct_err("untranslatable diagnostic"); 41 | ^^^^^^^^^^ 42 43error: aborting due to 5 previous errors 44