Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions compiler/rustc_symbol_mangling/src/v0.rs
Original file line number Diff line number Diff line change
Expand Up @@ -587,8 +587,14 @@ impl<'tcx> Printer<'tcx> for V0SymbolMangler<'tcx> {
})?;
}

// FIXME(unsafe_binder):
ty::UnsafeBinder(..) => todo!(),
// Unsafe binders are transparent for symbol identity: mangle the
// inner type with regions erased (same approach as other ty queries
// on `UnsafeBinder`). No dedicated v0 letter yet; this avoids ICE
// if an unstable unsafe-binder type reaches symbol naming.
ty::UnsafeBinder(bound_ty) => {
let inner = self.tcx.instantiate_bound_regions_with_erased((*bound_ty).into());
inner.print(self)?;
}

ty::Dynamic(predicates, r) => {
self.push("D");
Expand Down