Skip to content

fix: asm! macro is not allowed in naked functions #3

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

Merged
merged 3 commits into from
May 26, 2025

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

@guttatus
Copy link
Contributor

Thank you for your contribution! 🙌
We noticed some CI test failures that need attention:

Failed Tests:

  1. Run Test Job: unnecessary unsafe block

If you can fix these errors, this PR can be merged.

Copy link
Contributor

@guttatus guttatus left a comment

Choose a reason for hiding this comment

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

Please fix the failed CI test, thank you very much!

@guttatus guttatus dismissed their stale review May 26, 2025 04:52

Unnecessary unsafe blocks have been removed.

@guttatus guttatus merged commit b2136a6 into rustsbi:main May 26, 2025
2 checks passed
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.

2 participants