Skip to content

symbol_mangling v0: todo! ICE on ty::UnsafeBinder #579

Description

@SebTardif

Bug

compiler/rustc_symbol_mangling/src/v0.rs hits todo!() when printing ty::UnsafeBinder for v0 symbol names. Unstable unsafe_binder types reaching symbol naming therefore ICE.

Origin

Introduced with unsafe binder type system work:

rust-lang@9a1c5eb5b38

Impact

ICE if an UnsafeBinder type appears in a path that needs a v0 mangled symbol (rare until feature stabilizes; blocks incremental cleanup tracked in #567).

Fix

Mangle the inner type with regions erased (transparent binder), consistent with discriminant_ty / pointer_kind patterns on UnsafeBinder.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions