mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-02 00:07:42 +03:00
Fix fulldeps tests.
This commit is contained in:
@@ -33,7 +33,7 @@ fn check_crate(&mut self, cx: &LateContext, krate: &rustc_hir::Crate) {
|
||||
if !cx.sess().contains_name(attrs, $attr) {
|
||||
cx.lint(CRATE_NOT_OKAY, |lint| {
|
||||
let msg = format!("crate is not marked with #![{}]", $attr);
|
||||
lint.build(&msg).set_span(krate.item.span).emit()
|
||||
lint.build(&msg).set_span(krate.item.inner).emit()
|
||||
});
|
||||
}
|
||||
)*
|
||||
|
||||
@@ -31,7 +31,7 @@ fn check_crate(&mut self, cx: &LateContext, krate: &rustc_hir::Crate) {
|
||||
if !cx.sess().contains_name(attrs, Symbol::intern("crate_okay")) {
|
||||
cx.lint(CRATE_NOT_OKAY, |lint| {
|
||||
lint.build("crate is not marked with #![crate_okay]")
|
||||
.set_span(krate.item.span)
|
||||
.set_span(krate.item.inner)
|
||||
.emit()
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user