Skip to content

Commit bdaaf47

Browse files
authored
fix(es/utils): Use $crate for quote_ident!() (#9309)
**Related issue:** - Closes #9299
1 parent 9d983c3 commit bdaaf47

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.changeset/unlucky-planets-laugh.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
swc_ecma_utils: patch
3+
swc_core: patch
4+
---
5+
6+
fix(es/utils): Use `$crate` for `quote_ident!()`

.github/workflows/CI.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: CI
22

33
on:
4+
merge_group:
45
pull_request:
56
types: ["opened", "reopened", "synchronize"]
67
push:

crates/swc_ecma_utils/src/macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ macro_rules! quote_ident {
2424
($ctxt:expr, $s:expr) => {{
2525
let sym: $crate::swc_atoms::Atom = $s.into();
2626
let id: $crate::swc_ecma_ast::Ident =
27-
$crate::swc_ecma_ast::Ident::new(sym, DUMMY_SP, $ctxt);
27+
$crate::swc_ecma_ast::Ident::new(sym, $crate::swc_common::DUMMY_SP, $ctxt);
2828

2929
id
3030
}};

0 commit comments

Comments
 (0)