Skip to content

symbol_mangling: mangle UnsafeBinder via erased inner type#581

Open
SebTardif wants to merge 1 commit into
mainfrom
fix-r72-mangling-unsafe-binder
Open

symbol_mangling: mangle UnsafeBinder via erased inner type#581
SebTardif wants to merge 1 commit into
mainfrom
fix-r72-mangling-unsafe-binder

Conversation

@SebTardif

Copy link
Copy Markdown
Owner

Summary

Replace todo!() for ty::UnsafeBinder in v0 symbol mangling by printing the inner type with regions erased. Avoids ICE if an unstable unsafe-binder type reaches symbol naming; no dedicated v0 letter yet.

Closes #579

Related: #567, #565

Origin

rust-lang@9a1c5eb5b38

Test plan

  • Pattern matches other UnsafeBinder query fixes (erase regions, delegate to inner)
  • Code review (feature-gated path; conservative transparent mangling)

Avoid todo! ICE when an unstable unsafe-binder type reaches v0 symbol
naming. Treat the binder as transparent and mangle the inner type with
regions erased, consistent with other ty queries on UnsafeBinder.

Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

symbol_mangling v0: todo! ICE on ty::UnsafeBinder

1 participant