blob: aeb68bf05e1edbc8af5c0655ca787038c9ac29ab [file] [log] [blame]
// Test the `rustc::span_use_eq_ctxt` internal lint
// #[cfg(bootstrap)]
// ignore-stage1
// compile-flags: -Z unstable-options
#![feature(rustc_private)]
#![deny(rustc::span_use_eq_ctxt)]
#![crate_type = "lib"]
extern crate rustc_span;
use rustc_span::Span;
pub fn f(s: Span, t: Span) -> bool {
s.ctxt() == t.ctxt() //~ ERROR use `.eq_ctxt()` instead of `.ctxt() == .ctxt()`
}