check_int_to_ptr_transmute in rustc_lint::transmute - Rust
Description: Check for transmutes from integer to pointers (*const/*mut and &/&mut).

Skip to main content

## check_int_to_ptr_transmute

# Function check_int_to_ptr_transmute

Source

    fn check_int_to_ptr_transmute<'tcx>(
        cx: &LateContext<'tcx>,
        expr: &'tcx Expr<'tcx>,
        arg: &'tcx Expr<'tcx>,
        src: Ty<'tcx>,
        dst: Ty<'tcx>,
    )

Expand description

Check for transmutes from integer to pointers (*const/*mut and &/&mut).

Using the resulting pointers would be undefined behavior.