Skip to content

build: Migrate box patterns to deref patterns and update nightly - #662

Merged
Donny/강동윤 (kdy1) merged 4 commits into
swc-project:mainfrom
mischnic:mischnic/deref-patterns
Oct 6, 2026
Merged

Donny/강동윤 (kdy1) merged 4 commits into
swc-project:mainfrom
mischnic:mischnic/deref-patterns

Conversation

@mischnic

Copy link
Copy Markdown
Contributor
  • Migrate from box_patterns to defer_patterns
  • Upgrade to nightly-2026-04-10 (same as the main swc repo)

@changeset-bot

changeset-bot Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 7bb6d7d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@swc/plugin-styled-jsx Major
@swc/plugin-swc-confidential Major
@swc/plugin-swc-magic Major
@swc/plugin-swc-sdk Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@kdy1 Donny/강동윤 (kdy1) changed the title Migrate box patterns to deref patterns and update nightly build: Migrate box patterns to deref patterns and update nightly Oct 6, 2026
@kdy1
Donny/강동윤 (kdy1) merged commit 1e53340 into swc-project:main Oct 6, 2026
10 of 11 checks passed
Niklas Mischkulnig (mischnic) added a commit to vercel/next.js that referenced this pull request Oct 7, 2026
- ~~Blocked by swc-project/plugins#662 because
box_patterns was removed~~
- ~~Blocked on
rust-lang/miri@87c4b12
so that Miri just works again~~
- Upgrade napi-build for napi-rs/napi-rs#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
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants