Skip to content

Commit c2524bc

Browse files
committed
Fix span_use_eq_ctxt test
The stage0 compiler does not know about the lint yet, so ignore the test on stage1.
1 parent 8ff2954 commit c2524bc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

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

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
// Test the `rustc::span_use_eq_ctxt` internal lint
2+
// #[cfg(bootstrap)]
3+
// ignore-stage1
24
// compile-flags: -Z unstable-options
35

46
#![feature(rustc_private)]

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error: use `.eq_ctxt()` instead of `.ctxt() == .ctxt()`
2-
--> $DIR/span_use_eq_ctxt.rs:12:5
2+
--> $DIR/span_use_eq_ctxt.rs:14:5
33
|
44
LL | s.ctxt() == t.ctxt()
55
| ^^^^^^^^^^^^^^^^^^^^
66
|
77
note: the lint level is defined here
8-
--> $DIR/span_use_eq_ctxt.rs:5:9
8+
--> $DIR/span_use_eq_ctxt.rs:7:9
99
|
1010
LL | #![deny(rustc::span_use_eq_ctxt)]
1111
| ^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)