Skip to content

Commit 7f05ef5

Browse files
committed
toolchain: update to latest nightly
Nightly builds compile with the current version release (2023-05-15). Adding `codegen-units = 1` fixes compilation errors for debug builds. See: rust-lang/compiler-builtins#523 (comment)
1 parent 6465763 commit 7f05ef5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ features = ["arduino-leonardo"]
1818
[profile.dev]
1919
opt-level = "s"
2020
lto = true
21+
# Required by current nightly for debug builds
22+
# See upstream issue: https://github.com/rust-lang/compiler-builtins/issues/523#issuecomment-1547339559
23+
codegen-units = 1
2124

2225
[profile.release]
2326
opt-level = "s"

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[toolchain]
2-
channel = "nightly-2023-03-24"
2+
channel = "nightly-2023-05-15"

0 commit comments

Comments
 (0)