Rename TyCtxt::struct_span_lint_hir
as TyCtxt::node_span_lint
.
This commit is contained in:
parent
681b9aa363
commit
cfdea760f5
34 changed files with 56 additions and 68 deletions
|
@ -676,7 +676,7 @@ impl<'tcx> LintContext for LateContext<'tcx> {
|
|||
let hir_id = self.last_node_with_lint_attrs;
|
||||
|
||||
match span {
|
||||
Some(s) => self.tcx.struct_span_lint_hir(lint, hir_id, s, msg, decorate),
|
||||
Some(s) => self.tcx.node_span_lint(lint, hir_id, s, msg, decorate),
|
||||
None => self.tcx.node_lint(lint, hir_id, msg, decorate),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue