Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit d849f5c

Browse files
committed
Disable tests/ui-fulldeps/internal-lints/diagnostics.rs on stage 1.
When you make a change to the diagnostic lints, it uses the old version of the lints with stage 1 and the new version with stage 2, which often leads to failures in stage 1. Let's just stick to stage 2.
1 parent 50e77f1 commit d849f5c

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

tests/ui-fulldeps/internal-lints/diagnostics.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//@ compile-flags: -Z unstable-options
2+
//@ ignore-stage1
23

34
#![crate_type = "lib"]
45
#![feature(rustc_attrs)]

tests/ui-fulldeps/internal-lints/diagnostics.stderr

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
11
error: diagnostics should be created using translatable messages
2-
--> $DIR/diagnostics.rs:42:9
2+
--> $DIR/diagnostics.rs:43:9
33
|
44
LL | Diag::new(dcx, level, "untranslatable diagnostic")
55
| ^^^^^^^^^
66
|
77
note: the lint level is defined here
8-
--> $DIR/diagnostics.rs:6:9
8+
--> $DIR/diagnostics.rs:7:9
99
|
1010
LL | #![deny(rustc::untranslatable_diagnostic)]
1111
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1212

1313
error: diagnostics should be created using translatable messages
14-
--> $DIR/diagnostics.rs:63:14
14+
--> $DIR/diagnostics.rs:64:14
1515
|
1616
LL | diag.note("untranslatable diagnostic");
1717
| ^^^^
1818

1919
error: diagnostics should only be created in `IntoDiagnostic`/`AddToDiagnostic` impls
20-
--> $DIR/diagnostics.rs:81:21
20+
--> $DIR/diagnostics.rs:82:21
2121
|
2222
LL | let _diag = dcx.struct_err(crate::fluent_generated::no_crate_example);
2323
| ^^^^^^^^^^
2424
|
2525
note: the lint level is defined here
26-
--> $DIR/diagnostics.rs:7:9
26+
--> $DIR/diagnostics.rs:8:9
2727
|
2828
LL | #![deny(rustc::diagnostic_outside_of_impl)]
2929
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3030

3131
error: diagnostics should only be created in `IntoDiagnostic`/`AddToDiagnostic` impls
32-
--> $DIR/diagnostics.rs:84:21
32+
--> $DIR/diagnostics.rs:85:21
3333
|
3434
LL | let _diag = dcx.struct_err("untranslatable diagnostic");
3535
| ^^^^^^^^^^
3636

3737
error: diagnostics should be created using translatable messages
38-
--> $DIR/diagnostics.rs:84:21
38+
--> $DIR/diagnostics.rs:85:21
3939
|
4040
LL | let _diag = dcx.struct_err("untranslatable diagnostic");
4141
| ^^^^^^^^^^

0 commit comments

Comments
 (0)