Skip to content

Commit 3dd2da6

Browse files
committed
Expose peel_casts method from reference_casting to everyone
1 parent 15ff9fa commit 3dd2da6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

compiler/rustc_lint/src/reference_casting.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,10 @@ fn is_cast_from_ref_to_mut_ptr<'tcx>(
151151
}
152152
}
153153

154-
fn peel_casts<'tcx>(cx: &LateContext<'tcx>, mut e: &'tcx Expr<'tcx>) -> (&'tcx Expr<'tcx>, bool) {
154+
pub(super) fn peel_casts<'tcx>(
155+
cx: &LateContext<'tcx>,
156+
mut e: &'tcx Expr<'tcx>,
157+
) -> (&'tcx Expr<'tcx>, bool) {
155158
let mut gone_trough_unsafe_cell_raw_get = false;
156159

157160
loop {

0 commit comments

Comments
 (0)