@@ -587,7 +587,7 @@ impl<'a, 'tcx> CastCheck<'tcx> {
587
587
} ;
588
588
let expr_ty = fcx. resolve_vars_if_possible ( self . expr_ty ) ;
589
589
let cast_ty = fcx. resolve_vars_if_possible ( self . cast_ty ) ;
590
- fcx. tcx . emit_spanned_lint (
590
+ fcx. tcx . emit_node_span_lint (
591
591
lint,
592
592
self . expr . hir_id ,
593
593
self . span ,
@@ -900,7 +900,7 @@ impl<'a, 'tcx> CastCheck<'tcx> {
900
900
let expr_ty = fcx. resolve_vars_if_possible ( self . expr_ty ) ;
901
901
let cast_ty = fcx. resolve_vars_if_possible ( self . cast_ty ) ;
902
902
903
- fcx. tcx . emit_spanned_lint (
903
+ fcx. tcx . emit_node_span_lint (
904
904
lint:: builtin:: CENUM_IMPL_DROP_CAST ,
905
905
self . expr . hir_id ,
906
906
self . span ,
@@ -934,7 +934,7 @@ impl<'a, 'tcx> CastCheck<'tcx> {
934
934
} ;
935
935
936
936
let lint = errors:: LossyProvenancePtr2Int { expr_ty, cast_ty, sugg } ;
937
- fcx. tcx . emit_spanned_lint (
937
+ fcx. tcx . emit_node_span_lint (
938
938
lint:: builtin:: LOSSY_PROVENANCE_CASTS ,
939
939
self . expr . hir_id ,
940
940
self . span ,
@@ -950,7 +950,7 @@ impl<'a, 'tcx> CastCheck<'tcx> {
950
950
let expr_ty = fcx. resolve_vars_if_possible ( self . expr_ty ) ;
951
951
let cast_ty = fcx. resolve_vars_if_possible ( self . cast_ty ) ;
952
952
let lint = errors:: LossyProvenanceInt2Ptr { expr_ty, cast_ty, sugg } ;
953
- fcx. tcx . emit_spanned_lint (
953
+ fcx. tcx . emit_node_span_lint (
954
954
lint:: builtin:: FUZZY_PROVENANCE_CASTS ,
955
955
self . expr . hir_id ,
956
956
self . span ,
0 commit comments