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.
Bug
compiler/rustc_symbol_mangling/src/v0.rshitstodo!()when printingty::UnsafeBinderfor v0 symbol names. Unstableunsafe_bindertypes reaching symbol naming therefore ICE.Origin
Introduced with unsafe binder type system work:
rust-lang@9a1c5eb5b38
Impact
ICE if an
UnsafeBindertype 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 onUnsafeBinder.