Skip to content

Commit

Permalink
Fix span_use_eq_ctxt test
Browse files Browse the repository at this point in the history
The stage0 compiler does not know about the lint yet, so ignore the test on stage1.
  • Loading branch information
Kobzol committed Oct 19, 2023
1 parent 8ff2954 commit c2524bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions tests/ui-fulldeps/internal-lints/span_use_eq_ctxt.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Test the `rustc::span_use_eq_ctxt` internal lint
// #[cfg(bootstrap)]
// ignore-stage1
// compile-flags: -Z unstable-options

#![feature(rustc_private)]
Expand Down
4 changes: 2 additions & 2 deletions tests/ui-fulldeps/internal-lints/span_use_eq_ctxt.stderr
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
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()
| ^^^^^^^^^^^^^^^^^^^^
|
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)]
| ^^^^^^^^^^^^^^^^^^^^^^^
Expand Down

0 comments on commit c2524bc

Please sign in to comment.