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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

manchangfengxu
Copy link

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]>
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.

1 participant