11error: diagnostics should be created using translatable messages
2- --> $DIR/diagnostics.rs:37:14
2+ --> $DIR/diagnostics.rs:37:17
33 |
4- LL | sess .struct_err("untranslatable diagnostic")
5- | ^^^^^^^^^^
4+ LL | handler .struct_err("untranslatable diagnostic")
5+ | ^^^^^^^^^^
66 |
77note: the lint level is defined here
88 --> $DIR/diagnostics.rs:6:9
@@ -17,10 +17,10 @@ LL | diag.note("untranslatable diagnostic");
1717 | ^^^^
1818
1919error: diagnostics should only be created in `SessionDiagnostic`/`AddSubdiagnostic` impls
20- --> $DIR/diagnostics.rs:68:22
20+ --> $DIR/diagnostics.rs:68:25
2121 |
22- LL | let _diag = sess .struct_err(fluent::parser::expect_path);
23- | ^^^^^^^^^^
22+ LL | let _diag = handler .struct_err(fluent::parser::expect_path);
23+ | ^^^^^^^^^^
2424 |
2525note: the lint level is defined here
2626 --> $DIR/diagnostics.rs:7:9
@@ -29,16 +29,16 @@ LL | #![deny(rustc::diagnostic_outside_of_impl)]
2929 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3030
3131error: diagnostics should only be created in `SessionDiagnostic`/`AddSubdiagnostic` impls
32- --> $DIR/diagnostics.rs:71:22
32+ --> $DIR/diagnostics.rs:71:25
3333 |
34- LL | let _diag = sess .struct_err("untranslatable diagnostic");
35- | ^^^^^^^^^^
34+ LL | let _diag = handler .struct_err("untranslatable diagnostic");
35+ | ^^^^^^^^^^
3636
3737error: diagnostics should be created using translatable messages
38- --> $DIR/diagnostics.rs:71:22
38+ --> $DIR/diagnostics.rs:71:25
3939 |
40- LL | let _diag = sess .struct_err("untranslatable diagnostic");
41- | ^^^^^^^^^^
40+ LL | let _diag = handler .struct_err("untranslatable diagnostic");
41+ | ^^^^^^^^^^
4242
4343error: aborting due to 5 previous errors
4444
0 commit comments