Skip to content

Commit fbfef40

Browse files
committed
Fix fulldeps tests.
1 parent 9d8f833 commit fbfef40

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/ui-fulldeps/auxiliary/lint-for-crate-rpass.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ macro_rules! fake_lint_pass {
3333
if !cx.sess().contains_name(attrs, $attr) {
3434
cx.lint(CRATE_NOT_OKAY, |lint| {
3535
let msg = format!("crate is not marked with #![{}]", $attr);
36-
lint.build(&msg).set_span(krate.item.span).emit()
36+
lint.build(&msg).set_span(krate.item.inner).emit()
3737
});
3838
}
3939
)*

src/test/ui-fulldeps/auxiliary/lint-for-crate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ impl<'tcx> LateLintPass<'tcx> for Pass {
3131
if !cx.sess().contains_name(attrs, Symbol::intern("crate_okay")) {
3232
cx.lint(CRATE_NOT_OKAY, |lint| {
3333
lint.build("crate is not marked with #![crate_okay]")
34-
.set_span(krate.item.span)
34+
.set_span(krate.item.inner)
3535
.emit()
3636
});
3737
}

0 commit comments

Comments
 (0)