Skip to content

rustc_public: add MIR Wrap/UnwrapUnsafeBinder to SMIR#586

Open
SebTardif wants to merge 1 commit into
mainfrom
fix-r73-smir-unsafe-binder-mir
Open

rustc_public: add MIR Wrap/UnwrapUnsafeBinder to SMIR#586
SebTardif wants to merge 1 commit into
mainfrom
fix-r73-smir-unsafe-binder-mir

Conversation

@SebTardif

Copy link
Copy Markdown
Owner

Summary

Add Rvalue::WrapUnsafeBinder and ProjectionElem::UnwrapUnsafeBinder to rustc_public MIR and implement stable/internal conversion, pretty-print, and visitor support.

Closes #583

Related: #567, #575, #578

Origin

rust-lang@fc1a9186dcd

Test plan

  • Mirrors rustc_middle MIR variants and existing stable convert patterns (Cast/OpaqueCast style)
  • Code review

Expose unsafe binder rvalue/projection in rustc_public MIR and implement
stable/internal conversion, pretty-print, and visitor support. Removes
todo! ICE when SMIR lowers feature-gated unsafe binder MIR.

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.

rustc_public: MIR WrapUnsafeBinder/UnwrapUnsafeBinder todo! in SMIR convert

1 participant