Skip to content

Commit 5563b4d

Browse files
authored
Turbopack: Update rust toolchain to nightly-2026-02-18 (#89974)
Rust finally merged a fix to the "trying to encode a dep node twice" ICE we seem to most frequently run into, triggered by the rustc parallel frontend feature: rust-lang/rust#151509 - @mischnic commented on the issue: rust-lang/rust#150018 (comment) - @mischnic just updated our toolchain last week, but I'd like to get this fix in. CI Job for build-and-release that covers all platforms: https://github.com/vercel/next.js/actions/runs/22156881743 In the process of this upgrade, I found and reported rust-lang/rust#152735 upstream (fixed `nightly-2026-02-18`).
1 parent 17a3320 commit 5563b4d

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

.devcontainer/rust/devcontainer-feature.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"dependsOn": {
66
"ghcr.io/devcontainers/features/rust:1": {
77
// this should match the `rust-toolchain.toml`
8-
"version": "nightly-2026-02-05",
8+
"version": "nightly-2026-02-18",
99
"profile": "minimal",
1010
"components": "rustfmt,clippy,rust-analyzer"
1111
}

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# if you update this, also update `.devcontainer/rust/devcontainer-feature.json`
22
[toolchain]
3-
channel = "nightly-2026-02-05"
3+
channel = "nightly-2026-02-18"
44
components = ["rustfmt", "clippy", "rust-analyzer"]
55
profile = "minimal"

turbopack/crates/turbopack-core/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#![feature(min_specialization)]
22
#![feature(type_alias_impl_trait)]
3-
#![feature(assert_matches)]
43
#![feature(arbitrary_self_types)]
54
#![feature(arbitrary_self_types_pointers)]
65
#![feature(impl_trait_in_assoc_type)]

turbopack/crates/turbopack-ecmascript/src/source_map.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,8 @@ fn maybe_decode_data_url(url: &str) -> Option<Rope> {
5656

5757
let data_b64 = if let Some(data) = url.strip_prefix(DATA_PREAMBLE) {
5858
data
59-
} else if let Some(data) = url.strip_prefix(DATA_PREAMBLE_CHARSET) {
60-
data
6159
} else {
62-
return None;
60+
url.strip_prefix(DATA_PREAMBLE_CHARSET)?
6361
};
6462

6563
data_encoding::BASE64

0 commit comments

Comments
 (0)