Skip to content

Conversation

@RalfJung
Copy link
Contributor

When #796 was added, int_to_ptr_with_provenance was a new idea and looked like a hack. Now that strict provenance is stable, this is called with_addr and looks like a very normal API. ;) And in fact, there's an even nicer API on top of it, map_addr. We can't use it here yet since the MSRV of Rust 1.61 does not have the strict provenance API, but we can still update code and comments to match the state of the art and to make it easier to eventually use the standard APIs.

Copy link
Member

@taiki-e taiki-e left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@RalfJung
Copy link
Contributor Author

RalfJung commented Mar 12, 2025

That clippy failure is in a file I did not even change... seems like clippy isn't pinned so PRs can fail for unrelated reasons?

@taiki-e taiki-e merged commit e5a1061 into crossbeam-rs:master Mar 20, 2025
26 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants