Unverified Commit 3439bde9 authored by Niklas Mischkulnig's avatar Niklas Mischkulnig Committed by GitHub

Upgrade rustc to nightly-2026-10-04 (#99682)

- ~~Blocked by https://github.com/swc-project/plugins/pull/662 because
box_patterns was removed~~
- ~~Blocked on
https://github.com/rust-lang/miri/commit/87c4b123697e210ba99c5fc004049bb59acb2df0
so that Miri just works again~~
- Upgrade napi-build for https://github.com/napi-rs/napi-rs/pull/3492 to
fix `duplicate symbol: _initialize` in WASM

Still running into
```
@next/swc:test-cargo-unit-miri:     error: unsupported operation: fdatasync is only supported on file-backed file descriptors
@next/swc:test-cargo-unit-miri:         --> /home/runner/.rustup/toolchains/nightly-2026-10-06-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/fs/unix.rs:1279:13
@next/swc:test-cargo-unit-miri:          |
@next/swc:test-cargo-unit-miri:     1279 |             libc::fdatasync(fd)
@next/swc:test-cargo-unit-miri:          |             ^^^^^^^^^^^^^^^^^^^ unsupported operation occurred here
@next/swc:test-cargo-unit-miri:          |
@next/swc:test-cargo-unit-miri:          = help: this is likely not a bug in the program; it indicates that the program performed an operation that Miri does not support
@next/swc:test-cargo-unit-miri:          = note: this is on thread `tests::whole_ke`
@next/swc:test-cargo-unit-miri:          = note: stack backtrace:
@next/swc:test-cargo-unit-miri:                  0: std::sys::fs::unix::File::datasync::os_datasync
@next/swc:test-cargo-unit-miri:                      at /home/runner/.rustup/toolchains/nightly-2026-10-06-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/fs/unix.rs:1279:13: 1279:32
@next/swc:test-cargo-unit-miri:                  1: std::sys::fs::unix::File::datasync::{closure#0}
@next/swc:test-cargo-unit-miri:                      at /home/runner/.rustup/toolchains/nightly-2026-10-06-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/fs/unix.rs:1258:27: 1258:56
@next/swc:test-cargo-unit-miri:                  2: std::sys::pal::unix::cvt_r::<i32, {closure@std::sys::fs::unix::File::datasync::{closure#0}}>
@next/swc:test-cargo-unit-miri:                      at /home/runner/.rustup/toolchains/nightly-2026-10-06-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/pal/unix/mod.rs:250:19: 250:22
@next/swc:test-cargo-unit-miri:                  3: std::sys::fs::unix::File::datasync
@next/swc:test-cargo-unit-miri:                      at /home/runner/.rustup/toolchains/nightly-2026-10-06-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/fs/unix.rs:1258:9: 1258:59
@next/swc:test-cargo-unit-miri:                  4: std::fs::File::sync_data
@next/swc:test-cargo-unit-miri:                      at /home/runner/.rustup/toolchains/nightly-2026-10-06-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/fs.rs:823:9: 823:30
@next/swc:test-cargo-unit-miri:                  5: fs_err::File::sync_data
@next/swc:test-cargo-unit-miri:                      at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/fs-err-3.3.1/src/file.rs:109:9: 110:25
@next/swc:test-cargo-unit-miri:                  6: db::commit_current::{closure#0}
@next/swc:test-cargo-unit-miri:                      at turbopack/crates/turbo-persistence/src/db.rs:252:25: 252:40
```
parent 2b87c130
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
"dependsOn": { "dependsOn": {
"ghcr.io/devcontainers/features/rust:1": { "ghcr.io/devcontainers/features/rust:1": {
// this should match the `rust-toolchain.toml` // this should match the `rust-toolchain.toml`
"version": "nightly-2026-08-20", "version": "nightly-2026-10-06",
"profile": "minimal", "profile": "minimal",
"components": "rustfmt,clippy,rust-analyzer,miri" "components": "rustfmt,clippy,rust-analyzer,miri"
} }
......
...@@ -4068,9 +4068,9 @@ dependencies = [ ...@@ -4068,9 +4068,9 @@ dependencies = [
[[package]] [[package]]
name = "napi-build" name = "napi-build"
version = "2.4.1" version = "2.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "60fdf9b392c50e7c4170fa633bd909490ed7835cea4c046776d1a4dd8d2ae0ab" checksum = "b899b545d3aa6dca985939059f258c5488d34e4ecf39c274e20009748f4b846d"
[[package]] [[package]]
name = "napi-derive" name = "napi-derive"
......
...@@ -31,6 +31,10 @@ unexpected_cfgs = { level = "warn", check-cfg = [ ...@@ -31,6 +31,10 @@ unexpected_cfgs = { level = "warn", check-cfg = [
'cfg(codspeed)', 'cfg(codspeed)',
] } ] }
[workspace.lints.cargo]
# These are generally useful, but there are a lot of false positives when running commands scoped to individual workspace members.
unused_workspace_dependencies = "allow"
[profile.dev] [profile.dev]
# https://kobzol.github.io/rust/rustc/2025/05/20/disable-debuginfo-to-improve-rust-compile-times.html # https://kobzol.github.io/rust/rustc/2025/05/20/disable-debuginfo-to-improve-rust-compile-times.html
debug = "line-tables-only" debug = "line-tables-only"
...@@ -271,7 +275,6 @@ crossbeam-utils = "0.8" ...@@ -271,7 +275,6 @@ crossbeam-utils = "0.8"
dashmap = "7.0.0-rc2" dashmap = "7.0.0-rc2"
data-encoding = "2.3.3" data-encoding = "2.3.3"
dhat = { version = "0.3.2" } dhat = { version = "0.3.2" }
dunce = "1.0.3"
either = "1.15.0" either = "1.15.0"
erased-serde = "0.4.5" erased-serde = "0.4.5"
fixedbitset = "0.5.7" fixedbitset = "0.5.7"
...@@ -308,7 +311,7 @@ napi = { version = "3.10.0", default-features = false, features = [ ...@@ -308,7 +311,7 @@ napi = { version = "3.10.0", default-features = false, features = [
"napi5", "napi5",
] } ] }
napi-derive = "3.5.8" napi-derive = "3.5.8"
napi-build = "2.3.2" napi-build = "2.6.0"
nohash-hasher = "0.2.0" nohash-hasher = "0.2.0"
notify = "9.0.0-rc.5" notify = "9.0.0-rc.5"
owo-colors = "4.2.2" owo-colors = "4.2.2"
...@@ -333,7 +336,6 @@ roaring = "0.11.4" ...@@ -333,7 +336,6 @@ roaring = "0.11.4"
rstest = "0.16.0" rstest = "0.16.0"
rustc-hash = "2.1.1" rustc-hash = "2.1.1"
scattered-collect = "0.10.0" scattered-collect = "0.10.0"
semver = "1.0.16"
serde = { version = "1.0.228", features = ["derive"] } serde = { version = "1.0.228", features = ["derive"] }
serde_json = "1.0.149" serde_json = "1.0.149"
serde_path_to_error = "0.1.20" serde_path_to_error = "0.1.20"
......
# if you update this, also update `.devcontainer/rust/devcontainer-feature.json` # if you update this, also update `.devcontainer/rust/devcontainer-feature.json`
# if you move the file, also update any turbo.json inputs that references it. # if you move the file, also update any turbo.json inputs that references it.
[toolchain] [toolchain]
channel = "nightly-2026-08-20" channel = "nightly-2026-10-06"
components = ["rustfmt", "clippy", "rust-analyzer", "miri"] components = ["rustfmt", "clippy", "rust-analyzer", "miri"]
profile = "minimal" profile = "minimal"
...@@ -247,7 +247,9 @@ fn commit_current(path: &Path, seq: u32) -> Result<()> { ...@@ -247,7 +247,9 @@ fn commit_current(path: &Path, seq: u32) -> Result<()> {
// Skipped on Windows: `sync_data` on a directory handle fails with ERROR_ACCESS_DENIED (the // Skipped on Windows: `sync_data` on a directory handle fails with ERROR_ACCESS_DENIED (the
// handle `File::open` returns for a directory has no write access).Apparently metadata changes // handle `File::open` returns for a directory has no write access).Apparently metadata changes
// are always atomic on windows so this is simply unneeded. // are always atomic on windows so this is simply unneeded.
#[cfg(not(windows))] //
// Miri supports opening directories, but not syncing directory descriptors.
#[cfg(not(any(windows, miri)))]
File::open(path) File::open(path)
.and_then(|dir| dir.sync_data()) .and_then(|dir| dir.sync_data())
.context("Failed to sync database directory after updating CURRENT")?; .context("Failed to sync database directory after updating CURRENT")?;
......
...@@ -24,7 +24,6 @@ note: required by a bound in `turbo_tasks::macro_helpers::into_task_fn_with_this ...@@ -24,7 +24,6 @@ note: required by a bound in `turbo_tasks::macro_helpers::into_task_fn_with_this
--> $WORKSPACE/turbopack/crates/turbo-tasks/src/task/function.rs --> $WORKSPACE/turbopack/crates/turbo-tasks/src/task/function.rs
| |
| pub const fn into_task_fn_with_this< | pub const fn into_task_fn_with_this<
| ---------------------- required by a bound in this function
... ...
| F: TaskFnInputFunctionWithThis<Mode, This, Inputs>, | F: TaskFnInputFunctionWithThis<Mode, This, Inputs>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `into_task_fn_with_this` | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `into_task_fn_with_this`
......
...@@ -13,6 +13,9 @@ bench = false ...@@ -13,6 +13,9 @@ bench = false
name = "allocation" name = "allocation"
harness = false harness = false
[lints]
workspace = true
[dependencies] [dependencies]
[dev-dependencies] [dev-dependencies]
......
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
#![feature(arbitrary_self_types)] #![feature(arbitrary_self_types)]
#![feature(arbitrary_self_types_pointers)] #![feature(arbitrary_self_types_pointers)]
#![feature(ptr_metadata)] #![feature(ptr_metadata)]
#![feature(exclusive_wrapper)]
#![feature(sync_unsafe_cell)] #![feature(sync_unsafe_cell)]
#![feature(async_fn_traits)] #![feature(async_fn_traits)]
#![feature(impl_trait_in_assoc_type)] #![feature(impl_trait_in_assoc_type)]
......
...@@ -10,6 +10,9 @@ autobenches = false ...@@ -10,6 +10,9 @@ autobenches = false
default = ["custom_allocator"] default = ["custom_allocator"]
custom_allocator = ["turbo-tasks-malloc/custom_allocator"] custom_allocator = ["turbo-tasks-malloc/custom_allocator"]
[lints]
workspace = true
[[bin]] [[bin]]
name = "turbo-trace-server" name = "turbo-trace-server"
path = "src/main.rs" path = "src/main.rs"
......
...@@ -9,7 +9,8 @@ autobenches = false ...@@ -9,7 +9,8 @@ autobenches = false
[lib] [lib]
bench = false bench = false
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lints]
workspace = true
[dependencies] [dependencies]
anyhow = { workspace = true } anyhow = { workspace = true }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment