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

Fix incorrect use of unstable intrinsic #11

Merged
merged 1 commit into from
Jul 17, 2022

Conversation

SkiFire13
Copy link
Contributor

rust-lang/rust#95956 changed the way unstable modules works and broke the use of std::intrinsics::copy_nonoverlapping in this crate. This PR changes it to use the stable re-export under std::ptr.

Fixes #10

@Aaron1011
Copy link

This is a regression in rustc: rust-lang/rust#99286

While you can change the import path if you'd like to get this working sooner, the bug should be fixed in rustc fairly quickly.

Copy link

@vivi90 vivi90 left a comment

Choose a reason for hiding this comment

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

seems the best way for me

Copy link
Owner

@NotIntMan NotIntMan left a comment

Choose a reason for hiding this comment

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

Seems ok

@NotIntMan
Copy link
Owner

I will merge this right after publishing a new version

@NotIntMan NotIntMan merged commit ca1a427 into NotIntMan:master Jul 17, 2022
@SkiFire13 SkiFire13 deleted the fix-intrinsic branch July 17, 2022 08:16
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 nightly error on use std::intrinsics::copy_nonoverlapping;
5 participants