Skip to content
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

update PR matklad#185 to 1.13.0 #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

hawkw
Copy link

@hawkw hawkw commented Jul 30, 2022

This branch merges upstream's master branch into PR matklad#185.

I need to patch a dependency on once_cell that needs at least 1.13.0 to pick
up the provenance fix, but you may want to actually merge this into the PR as
well.

Sorry for opening two PRs, the first one (created in the GitHub UI) didn't
create an actual branch I could point a cargo patch at... :\

saethlin and others added 3 commits July 2, 2022 02:20
once_cell is an extremely widely-used crate, so it would be very nice if
it conformed to the stricted/simplest/checkable model we have for
aliasing in Rust. To do this, we need to avoid creating a pointer from
an integer by cast or transmute. Pointers created this way can be valid,
but are a nightmare for a checker like Miri. The situation is generally
explained by these docs: https://doc.rust-lang.org/nightly/std/ptr/fn.from_exposed_addr.html

This implementation is mostly gross because all the APIs that would make
this ergonomic are behind #![feature(strict_provenance)]
…enance

This branch merges upstream's `master` branch into PR matklad#185.

I need to patch a dependency on `once_cell` that needs at least 1.13.0
to pick up the provenance fix, but you may want to actually merge this
into the PR as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants