]> git.lizzy.rs Git - rust.git/blob - src/test/ui-fulldeps/internal-lints/diagnostics.stderr
rustdoc: remove unused CSS `#results > table`
[rust.git] / src / test / ui-fulldeps / internal-lints / diagnostics.stderr
1 error: diagnostics should be created using translatable messages
2   --> $DIR/diagnostics.rs:37:14
3    |
4 LL |         sess.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:54:14
15    |
16 LL |         diag.note("untranslatable diagnostic");
17    |              ^^^^
18
19 error: diagnostics should only be created in `SessionDiagnostic`/`AddSubdiagnostic` impls
20   --> $DIR/diagnostics.rs:68:22
21    |
22 LL |     let _diag = sess.struct_err(fluent::parser::expect_path);
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 `SessionDiagnostic`/`AddSubdiagnostic` impls
32   --> $DIR/diagnostics.rs:71:22
33    |
34 LL |     let _diag = sess.struct_err("untranslatable diagnostic");
35    |                      ^^^^^^^^^^
36
37 error: diagnostics should be created using translatable messages
38   --> $DIR/diagnostics.rs:71:22
39    |
40 LL |     let _diag = sess.struct_err("untranslatable diagnostic");
41    |                      ^^^^^^^^^^
42
43 error: aborting due to 5 previous errors
44