]> git.lizzy.rs Git - rust.git/blob - tests/ui-fulldeps/internal-lints/diagnostics.stderr
Rollup merge of #107109 - est31:thin_box_link, r=Mark-Simulacrum
[rust.git] / tests / ui-fulldeps / internal-lints / diagnostics.stderr
1 error: diagnostics should be created using translatable messages
2   --> $DIR/diagnostics.rs:39:17
3    |
4 LL |         handler.struct_err("untranslatable diagnostic")
5    |                 ^^^^^^^^^^
6    |
7 note: the lint level is defined here
8   --> $DIR/diagnostics.rs:6:9
9    |
10 LL | #![deny(rustc::untranslatable_diagnostic)]
11    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
13 error: diagnostics should be created using translatable messages
14   --> $DIR/diagnostics.rs:59:14
15    |
16 LL |         diag.note("untranslatable diagnostic");
17    |              ^^^^
18
19 error: diagnostics should only be created in `IntoDiagnostic`/`AddToDiagnostic` impls
20   --> $DIR/diagnostics.rs:76:25
21    |
22 LL |     let _diag = handler.struct_err(fluent::compiletest_example);
23    |                         ^^^^^^^^^^
24    |
25 note: the lint level is defined here
26   --> $DIR/diagnostics.rs:7:9
27    |
28 LL | #![deny(rustc::diagnostic_outside_of_impl)]
29    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30
31 error: diagnostics should only be created in `IntoDiagnostic`/`AddToDiagnostic` impls
32   --> $DIR/diagnostics.rs:79:25
33    |
34 LL |     let _diag = handler.struct_err("untranslatable diagnostic");
35    |                         ^^^^^^^^^^
36
37 error: diagnostics should be created using translatable messages
38   --> $DIR/diagnostics.rs:79:25
39    |
40 LL |     let _diag = handler.struct_err("untranslatable diagnostic");
41    |                         ^^^^^^^^^^
42
43 error: aborting due to 5 previous errors
44