diff options
| author | Jakub Beránek <berykubik@gmail.com> | 2023-10-19 09:52:29 +0200 |
|---|---|---|
| committer | Jakub Beránek <berykubik@gmail.com> | 2023-10-19 10:41:20 +0200 |
| commit | c2524bc6899a1a7feebda032dd26f751504e94e5 (patch) | |
| tree | 5c4d06e43b5063203657b71ff0e6592cfdcf3cc7 | |
| parent | 8ff2954150d96e1765cd695352948538c2ee9b3c (diff) | |
| download | rust-c2524bc6899a1a7feebda032dd26f751504e94e5.tar.gz rust-c2524bc6899a1a7feebda032dd26f751504e94e5.zip | |
Fix `span_use_eq_ctxt` test
The stage0 compiler does not know about the lint yet, so ignore the test on stage1.
| -rw-r--r-- | tests/ui-fulldeps/internal-lints/span_use_eq_ctxt.rs | 2 | ||||
| -rw-r--r-- | tests/ui-fulldeps/internal-lints/span_use_eq_ctxt.stderr | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/ui-fulldeps/internal-lints/span_use_eq_ctxt.rs b/tests/ui-fulldeps/internal-lints/span_use_eq_ctxt.rs index 39980ee7c67..aeb68bf05e1 100644 --- a/tests/ui-fulldeps/internal-lints/span_use_eq_ctxt.rs +++ b/tests/ui-fulldeps/internal-lints/span_use_eq_ctxt.rs @@ -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)] diff --git a/tests/ui-fulldeps/internal-lints/span_use_eq_ctxt.stderr b/tests/ui-fulldeps/internal-lints/span_use_eq_ctxt.stderr index b33f6212545..3d8a7dd1ec0 100644 --- a/tests/ui-fulldeps/internal-lints/span_use_eq_ctxt.stderr +++ b/tests/ui-fulldeps/internal-lints/span_use_eq_ctxt.stderr @@ -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)] | ^^^^^^^^^^^^^^^^^^^^^^^ |
