From 4e854c79960df75f5259bee8ab71ab77a57f55f3 Mon Sep 17 00:00:00 2001 From: Alex Crawford Date: Tue, 6 Aug 2024 19:45:46 -0700 Subject: [PATCH] fix(common): Require newer version of allocator (#9386) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [EqIgnoreSpan](https://github.com/swc-project/swc/blob/ec03d1ec54fc7f3acfddbb5061c2f0c75a574e91/crates/swc_common/src/eq.rs#L4) uses the nightly_only macro, which was introduced in version 0.1.7 of swc_allocator. When building with the older version of the allocator, the following error results: error[E0432]: unresolved import `swc_allocator::nightly_only` --> /home/user/.cargo/registry/.../swc_common-0.36.3/src/eq.rs:4:5 | 4 | use swc_allocator::nightly_only; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `nightly_only` in the root --------- Co-authored-by: Donny/강동윤 --- .changeset/three-ways-smell.md | 6 ++++++ crates/swc_common/Cargo.toml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/three-ways-smell.md diff --git a/.changeset/three-ways-smell.md b/.changeset/three-ways-smell.md new file mode 100644 index 000000000000..b9aaedffb860 --- /dev/null +++ b/.changeset/three-ways-smell.md @@ -0,0 +1,6 @@ +--- +swc_common: patch +swc_core: patch +--- + +fix(common): Require newer version of allocator diff --git a/crates/swc_common/Cargo.toml b/crates/swc_common/Cargo.toml index 2eb3912036dd..024184912c2e 100644 --- a/crates/swc_common/Cargo.toml +++ b/crates/swc_common/Cargo.toml @@ -64,7 +64,7 @@ url = { workspace = true } ast_node = { version = "0.9.8", path = "../ast_node" } better_scoped_tls = { version = "0.1.1", path = "../better_scoped_tls" } from_variant = { version = "0.1.8", path = "../from_variant" } -swc_allocator = { version = "0.1.1", path = "../swc_allocator", default-features = false } +swc_allocator = { version = "0.1.7", path = "../swc_allocator", default-features = false } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_eq_ignore_macros = { version = "0.1.3", path = "../swc_eq_ignore_macros" } swc_visit = { version = "0.6.0", path = "../swc_visit" }