Fix span_use_eq_ctxt test
The stage0 compiler does not know about the lint yet, so ignore the test on stage1.
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
// Test the `rustc::span_use_eq_ctxt` internal lint
|
// Test the `rustc::span_use_eq_ctxt` internal lint
|
||||||
|
// #[cfg(bootstrap)]
|
||||||
|
// ignore-stage1
|
||||||
// compile-flags: -Z unstable-options
|
// compile-flags: -Z unstable-options
|
||||||
|
|
||||||
#![feature(rustc_private)]
|
#![feature(rustc_private)]
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
error: use `.eq_ctxt()` instead of `.ctxt() == .ctxt()`
|
error: use `.eq_ctxt()` instead of `.ctxt() == .ctxt()`
|
||||||
--> $DIR/span_use_eq_ctxt.rs:12:5
|
--> $DIR/span_use_eq_ctxt.rs:14:5
|
||||||
|
|
|
|
||||||
LL | s.ctxt() == t.ctxt()
|
LL | s.ctxt() == t.ctxt()
|
||||||
| ^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
note: the lint level is defined here
|
note: the lint level is defined here
|
||||||
--> $DIR/span_use_eq_ctxt.rs:5:9
|
--> $DIR/span_use_eq_ctxt.rs:7:9
|
||||||
|
|
|
|
||||||
LL | #![deny(rustc::span_use_eq_ctxt)]
|
LL | #![deny(rustc::span_use_eq_ctxt)]
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|||||||
Reference in New Issue
Block a user