Rename TyCtxt::struct_span_lint_hir as TyCtxt::node_span_lint.
This commit is contained in:
@@ -40,12 +40,6 @@ fn check_unused_traits(tcx: TyCtxt<'_>, (): ()) {
|
||||
} else {
|
||||
"unused import".to_owned()
|
||||
};
|
||||
tcx.struct_span_lint_hir(
|
||||
lint::builtin::UNUSED_IMPORTS,
|
||||
item.hir_id(),
|
||||
path.span,
|
||||
msg,
|
||||
|_| {},
|
||||
);
|
||||
tcx.node_span_lint(lint::builtin::UNUSED_IMPORTS, item.hir_id(), path.span, msg, |_| {});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user