Skip to content

Commit

Permalink
Fix fulldeps tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjgillot committed Mar 30, 2021
1 parent 9d8f833 commit fbfef40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/test/ui-fulldeps/auxiliary/lint-for-crate-rpass.rs
Expand Up @@ -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()
});
}
)*
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui-fulldeps/auxiliary/lint-for-crate.rs
Expand Up @@ -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()
});
}
Expand Down

0 comments on commit fbfef40

Please sign in to comment.