@@ -587,7 +587,7 @@ impl<'a, 'tcx> CastCheck<'tcx> {
587587 } ;
588588 let expr_ty = fcx. resolve_vars_if_possible ( self . expr_ty ) ;
589589 let cast_ty = fcx. resolve_vars_if_possible ( self . cast_ty ) ;
590- fcx. tcx . emit_spanned_lint (
590+ fcx. tcx . emit_node_span_lint (
591591 lint,
592592 self . expr . hir_id ,
593593 self . span ,
@@ -900,7 +900,7 @@ impl<'a, 'tcx> CastCheck<'tcx> {
900900 let expr_ty = fcx. resolve_vars_if_possible ( self . expr_ty ) ;
901901 let cast_ty = fcx. resolve_vars_if_possible ( self . cast_ty ) ;
902902
903- fcx. tcx . emit_spanned_lint (
903+ fcx. tcx . emit_node_span_lint (
904904 lint:: builtin:: CENUM_IMPL_DROP_CAST ,
905905 self . expr . hir_id ,
906906 self . span ,
@@ -934,7 +934,7 @@ impl<'a, 'tcx> CastCheck<'tcx> {
934934 } ;
935935
936936 let lint = errors:: LossyProvenancePtr2Int { expr_ty, cast_ty, sugg } ;
937- fcx. tcx . emit_spanned_lint (
937+ fcx. tcx . emit_node_span_lint (
938938 lint:: builtin:: LOSSY_PROVENANCE_CASTS ,
939939 self . expr . hir_id ,
940940 self . span ,
@@ -950,7 +950,7 @@ impl<'a, 'tcx> CastCheck<'tcx> {
950950 let expr_ty = fcx. resolve_vars_if_possible ( self . expr_ty ) ;
951951 let cast_ty = fcx. resolve_vars_if_possible ( self . cast_ty ) ;
952952 let lint = errors:: LossyProvenanceInt2Ptr { expr_ty, cast_ty, sugg } ;
953- fcx. tcx . emit_spanned_lint (
953+ fcx. tcx . emit_node_span_lint (
954954 lint:: builtin:: FUZZY_PROVENANCE_CASTS ,
955955 self . expr . hir_id ,
956956 self . span ,
0 commit comments