Skip to content

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