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
|
@ -161,7 +161,7 @@ fn lint_object_unsafe_trait(
|
|||
) {
|
||||
// Using `CRATE_NODE_ID` is wrong, but it's hard to get a more precise id.
|
||||
// It's also hard to get a use site span, so we use the method definition span.
|
||||
tcx.struct_span_lint_hir(
|
||||
tcx.node_span_lint(
|
||||
WHERE_CLAUSES_OBJECT_SAFETY,
|
||||
hir::CRATE_HIR_ID,
|
||||
span,
|
||||
|
|
|
@ -462,7 +462,7 @@ fn report_conflicting_impls<'tcx>(
|
|||
FutureCompatOverlapErrorKind::Issue33140 => ORDER_DEPENDENT_TRAIT_OBJECTS,
|
||||
FutureCompatOverlapErrorKind::LeakCheck => COHERENCE_LEAK_CHECK,
|
||||
};
|
||||
tcx.struct_span_lint_hir(
|
||||
tcx.node_span_lint(
|
||||
lint,
|
||||
tcx.local_def_id_to_hir_id(impl_def_id),
|
||||
impl_span,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue