From bdaaf47cb4fc0146485a567d48449116d0e67e98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Mon, 22 Jul 2024 16:48:13 +0900 Subject: [PATCH] fix(es/utils): Use `$crate` for `quote_ident!()` (#9309) **Related issue:** - Closes https://github.com/swc-project/swc/issues/9299 --- .changeset/unlucky-planets-laugh.md | 6 ++++++ .github/workflows/CI.yml | 1 + crates/swc_ecma_utils/src/macros.rs | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .changeset/unlucky-planets-laugh.md diff --git a/.changeset/unlucky-planets-laugh.md b/.changeset/unlucky-planets-laugh.md new file mode 100644 index 000000000000..17cdafc6845c --- /dev/null +++ b/.changeset/unlucky-planets-laugh.md @@ -0,0 +1,6 @@ +--- +swc_ecma_utils: patch +swc_core: patch +--- + +fix(es/utils): Use `$crate` for `quote_ident!()` diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 6a3909c292e5..3d1e2bf5f082 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -1,6 +1,7 @@ name: CI on: + merge_group: pull_request: types: ["opened", "reopened", "synchronize"] push: diff --git a/crates/swc_ecma_utils/src/macros.rs b/crates/swc_ecma_utils/src/macros.rs index 248c57030867..2b64e2b27aa0 100644 --- a/crates/swc_ecma_utils/src/macros.rs +++ b/crates/swc_ecma_utils/src/macros.rs @@ -24,7 +24,7 @@ macro_rules! quote_ident { ($ctxt:expr, $s:expr) => {{ let sym: $crate::swc_atoms::Atom = $s.into(); let id: $crate::swc_ecma_ast::Ident = - $crate::swc_ecma_ast::Ident::new(sym, DUMMY_SP, $ctxt); + $crate::swc_ecma_ast::Ident::new(sym, $crate::swc_common::DUMMY_SP, $ctxt); id }};