Skip to content

Commit

Permalink
fix(common): Require newer version of allocator (#9386)
Browse files Browse the repository at this point in the history
[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/강동윤 <kdy1997.dev@gmail.com>
  • Loading branch information
crawford and kdy1 committed Aug 7, 2024
1 parent 84accf0 commit 4e854c7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/three-ways-smell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
swc_common: patch
swc_core: patch
---

fix(common): Require newer version of allocator
2 changes: 1 addition & 1 deletion crates/swc_common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down

0 comments on commit 4e854c7

Please sign in to comment.