Skip to content

Commit

Permalink
feat: update toolchain version, fix error in errno
Browse files Browse the repository at this point in the history
  • Loading branch information
hky1999 committed Jan 26, 2024
1 parent 77d0cfe commit e6e6283
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
fail-fast: false
matrix:
rust-toolchain: [nightly, nightly-2023-12-25]
rust-toolchain: [nightly, nightly-2024-01-19]
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
Expand All @@ -34,7 +34,7 @@ jobs:
matrix:
os: [ubuntu-latest]
arch: [x86_64, riscv64, aarch64]
rust-toolchain: [nightly, nightly-2023-12-25]
rust-toolchain: [nightly, nightly-2024-01-19]
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
Expand Down Expand Up @@ -102,7 +102,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
rust-toolchain: [nightly, nightly-2023-12-25]
rust-toolchain: [nightly, nightly-2024-01-19]
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
Expand Down Expand Up @@ -143,7 +143,7 @@ jobs:
matrix:
os: [ubuntu-latest]
arch: [x86_64]
rust-toolchain: [nightly, nightly-2023-12-25]
rust-toolchain: [nightly, nightly-2024-01-19]
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build & Deploy docs
on: [push, pull_request]

env:
rust-toolchain: nightly-2023-12-25
rust-toolchain: nightly-2024-01-19

jobs:
doc:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [push, pull_request]

env:
qemu-version: 8.2.0
rust-toolchain: nightly-2023-12-25
rust-toolchain: nightly-2024-01-19

jobs:
unit-test:
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[toolchain]
profile = "minimal"
channel = "nightly-2023-12-25"
channel = "nightly-2024-01-19"
components = ["rust-src", "llvm-tools-preview", "rustfmt", "clippy"]
targets = ["x86_64-unknown-none", "riscv64gc-unknown-none-elf", "aarch64-unknown-none-softfloat"]
2 changes: 1 addition & 1 deletion ulib/axlibc/src/errno.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub fn set_errno(code: i32) {
/// Returns a pointer to the global errno variable.
#[no_mangle]
pub unsafe extern "C" fn __errno_location() -> *mut c_int {
&mut errno
core::ptr::addr_of_mut!(errno)
}

/// Returns a pointer to the string representation of the given error code.
Expand Down

0 comments on commit e6e6283

Please sign in to comment.