mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
Fix fulldeps tests.
This commit is contained in:
parent
9d8f833e05
commit
fbfef40e32
@ -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()
|
||||
});
|
||||
}
|
||||
)*
|
||||
|
@ -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()
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user