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

View File

@ -33,7 +33,7 @@ macro_rules! fake_lint_pass {
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()
});
}
)*

View File

@ -31,7 +31,7 @@ impl<'tcx> LateLintPass<'tcx> for Pass {
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()
});
}