Skip to content

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

Closed
Kingcxp wants to merge 0 commit into
rustsbi:mainfrom
Kingcxp:main
Closed

fix: replace #[naked] with #[unsafe(naked)] for stable Rust#4
Kingcxp wants to merge 0 commit into
rustsbi:mainfrom
Kingcxp:main

Conversation

@Kingcxp

@Kingcxp Kingcxp commented May 16, 2025

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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