Skip to content

Commit 16ddabb

Browse files
committed
Update to the latest nightly.
Update the syntax for naked functions.
1 parent e8ecd7f commit 16ddabb

4 files changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
strategy:
2424
matrix:
2525
build: [ubuntu, i686-linux, aarch64-linux, riscv64-linux]
26-
rust: [1.84, nightly-2025-03-05]
26+
rust: [1.84, nightly-2025-04-28]
2727
include:
2828
- build: ubuntu
2929
os: ubuntu-latest
@@ -51,7 +51,7 @@ jobs:
5151
qemu: qemu-riscv64 -L /usr/riscv64-linux-gnu
5252
qemu_target: riscv64-linux-user
5353
host_target: riscv64gc-unknown-linux-gnu
54-
- rust: nightly-2025-03-05
54+
- rust: nightly-2025-04-28
5555
features: nightly
5656
steps:
5757
- uses: actions/checkout@v4

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ alloc = { version = "1.0.0", optional = true, package = "rustc-std-workspace-all
4444
# Use the unwinding crate if support for unwinding is needed. This depends on
4545
# nightly Rust. And it's not supported on ARM yet.
4646
[target.'cfg(not(target_arch = "arm"))'.dependencies.unwinding]
47-
version = "0.2.5"
47+
version = "0.2.6"
4848
default-features = false
4949
features = ["unwinder"]
5050
optional = true

src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
#![no_std]
44
#![cfg_attr(docsrs, feature(doc_cfg))]
55
#![cfg_attr(feature = "experimental-relocate", feature(cfg_relocation_model))]
6-
// On nightly, enable `#[naked]` functions.
7-
#![cfg_attr(feature = "nightly", feature(naked_functions))]
86
// On nightly, enable llvm intrinsics for additional debug asserts.
97
#![cfg_attr(all(debug_assertions, feature = "nightly"), allow(internal_features))]
108
#![cfg_attr(

src/naked.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ macro_rules! naked_fn {
4040
$($label:ident = $kind:ident $path:path),*
4141
) => {
4242
#[doc = $doc]
43-
#[naked]
43+
#[unsafe(naked)]
4444
#[no_mangle]
4545
$vis unsafe extern "C" fn $name $args -> $ret {
4646
core::arch::naked_asm!(

0 commit comments

Comments
 (0)