Skip to content

replace #[naked] with #[unsafe(naked)] and remove #![feature(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 1 commit into from
May 16, 2025

Conversation

manchangfengxu
Copy link
Contributor

replace #[naked] with #[unsafe(naked)] and remove #![feature(naked_functions)]

  • Replaced all instances of #[naked] with #[unsafe(naked)] in main.rs, mod.rs, and lib.rs to align with the updated syntax.
  • Removed the deprecated #![feature(naked_functions)] from the files as it is no longer required.

ref:
rust-lang/rust#134213
rustsbi/rustsbi#131

These changes were tested and passed in my fork's CI pipeline.

…ked_functions)]

- Replaced all instances of #[naked] with #[unsafe(naked)] in main.rs, mod.rs, and lib.rs to align with the updated syntax.
- Removed the deprecated #![feature(naked_functions)] from the files as it is no longer required.

ref:
rust-lang/rust#134213

Signed-off-by: manchangfengxu <[email protected]>
@luojia65 luojia65 merged commit 08e0e5d into rustsbi:main May 16, 2025
2 checks passed
@manchangfengxu manchangfengxu deleted the fix/replace-naked-attr branch May 20, 2025 03:18
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