Skip to content

Avoid transmutes with Context #429

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 18, 2021
Merged

Avoid transmutes with Context #429

merged 1 commit into from
Jun 18, 2021

Conversation

alexcrichton
Copy link
Member

This commit re-consolidates transmutes around Context to just one
location to ensure that this is in as few places as possible. This
reorganizes the location of the map_sup variable and places it inside
of Stash instead which is a sort of auxiliary bag for extra
information that can be referenced anyway. Afterwards with some
refactoring an a new Mapping::mk function it's back to one transmute,
yay!

This commit re-consolidates transmutes around `Context` to just one
location to ensure that this is in as few places as possible. This
reorganizes the location of the `map_sup` variable and places it inside
of `Stash` instead which is a sort of auxiliary bag for extra
information that can be referenced anyway. Afterwards with some
refactoring an a new `Mapping::mk` function it's back to one transmute,
yay!
@alexcrichton alexcrichton merged commit be161a1 into master Jun 18, 2021
@alexcrichton alexcrichton deleted the less-transmute branch June 18, 2021 15:47
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.

1 participant