Fix fulldeps tests.

This commit is contained in:
Camille GILLOT
2021-03-30 23:51:15 +02:00
parent 9d8f833e05
commit fbfef40e32
2 changed files with 2 additions and 2 deletions
@@ -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()
});
}