Skip to content

fix: replace #[naked] with #[unsafe(naked)] for stable Rust #4

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

Closed
wants to merge 0 commits into from

Conversation

Kingcxp
Copy link
Contributor

@Kingcxp Kingcxp commented May 16, 2025

After rust-lang/rust#128651 merged in nightly toolchain, asm! macro is not allowed in naked functions.

So what we need to do is just fix that.

Change:

  • replace #[naked] with #[unsafe(naked)] for stable Rust

@luojia65
Copy link
Member

Thanks for contribution! Your pull request LGTM, however there is an existing fix in this pull request: #3 . I'm closing this PR for duplication; please add comments if my decision is inappropriate. Thanks!

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.

3 participants