1
1
error: diagnostics should be created using translatable messages
2
- --> $DIR/diagnostics.rs:37 :17
2
+ --> $DIR/diagnostics.rs:39 :17
3
3
|
4
4
LL | handler.struct_err("untranslatable diagnostic")
5
5
| ^^^^^^^^^^
@@ -11,13 +11,13 @@ LL | #![deny(rustc::untranslatable_diagnostic)]
11
11
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
12
13
13
error: diagnostics should be created using translatable messages
14
- --> $DIR/diagnostics.rs:54 :14
14
+ --> $DIR/diagnostics.rs:56 :14
15
15
|
16
16
LL | diag.note("untranslatable diagnostic");
17
17
| ^^^^
18
18
19
19
error: diagnostics should only be created in `SessionDiagnostic`/`AddSubdiagnostic` impls
20
- --> $DIR/diagnostics.rs:68 :25
20
+ --> $DIR/diagnostics.rs:70 :25
21
21
|
22
22
LL | let _diag = handler.struct_err(fluent::parser::expect_path);
23
23
| ^^^^^^^^^^
@@ -29,13 +29,13 @@ LL | #![deny(rustc::diagnostic_outside_of_impl)]
29
29
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30
30
31
31
error: diagnostics should only be created in `SessionDiagnostic`/`AddSubdiagnostic` impls
32
- --> $DIR/diagnostics.rs:71 :25
32
+ --> $DIR/diagnostics.rs:73 :25
33
33
|
34
34
LL | let _diag = handler.struct_err("untranslatable diagnostic");
35
35
| ^^^^^^^^^^
36
36
37
37
error: diagnostics should be created using translatable messages
38
- --> $DIR/diagnostics.rs:71 :25
38
+ --> $DIR/diagnostics.rs:73 :25
39
39
|
40
40
LL | let _diag = handler.struct_err("untranslatable diagnostic");
41
41
| ^^^^^^^^^^
0 commit comments