build_unsafe_binder_type_di_node in rustc_codegen_llvm::debuginfo::metadata - Rust
Description: Creates the debuginfo node for `unsafe<'a> T` binder types.

Skip to main content

## build_unsafe_binder_type_di_node

# Function build_unsafe_binder_type_di_node

Source

    fn build_unsafe_binder_type_di_node<'ll, 'tcx>(
        cx: &GenericCx<'ll, FullCx<'ll, 'tcx>>,
        binder_type: Ty<'tcx>,
        unique_type_id: UniqueTypeId<'tcx>,
    ) -> DINodeCreationResult<'ll>

Expand description

Creates the debuginfo node for `unsafe<'a> T` binder types.

We treat an unsafe binder like a struct with a single field named `inner` rather than delegating to the inner type’s DI node directly. This way the debugger shows the binder’s own type name, and the wrapped value is still accessible through the `inner` field.