Skip to content

Commit bf00098

Browse files
magurotunaflip1995
authored andcommitted
Make check_cast private
1 parent 8a8f7b4 commit bf00098

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

clippy_lints/src/transmute/utils.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,7 @@ pub(super) fn can_be_expressed_as_pointer_cast<'tcx>(
6868
/// the cast. In certain cases, including some invalid casts from array references
6969
/// to pointers, this may cause additional errors to be emitted and/or ICE error
7070
/// messages. This function will panic if that occurs.
71-
pub(super) fn check_cast<'tcx>(
72-
cx: &LateContext<'tcx>,
73-
e: &'tcx Expr<'_>,
74-
from_ty: Ty<'tcx>,
75-
to_ty: Ty<'tcx>,
76-
) -> Option<CastKind> {
71+
fn check_cast<'tcx>(cx: &LateContext<'tcx>, e: &'tcx Expr<'_>, from_ty: Ty<'tcx>, to_ty: Ty<'tcx>) -> Option<CastKind> {
7772
let hir_id = e.hir_id;
7873
let local_def_id = hir_id.owner;
7974

0 commit comments

Comments
 (0)