mirror of
https://github.com/swc-project/swc.git
synced 2024-10-05 04:39:06 +03:00
Fix cfg(not(procmacro2_semver_exempt))
This commit is contained in:
parent
a26cc61a69
commit
cb12e13a0b
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "swc_ecma_parser_macros"
|
||||
version = "0.2.0"
|
||||
version = "0.2.1"
|
||||
authors = ["강동윤 <kdy1@outlook.kr>"]
|
||||
license = "Apache-2.0/MIT"
|
||||
repository = "https://github.com/swc-project/swc.git"
|
||||
|
@ -33,7 +33,7 @@ fn get_joinned_span(t: &ToTokens) -> Span {
|
||||
#[cfg(not(procmacro2_semver_exempt))]
|
||||
fn get_joinned_span(t: &ToTokens) -> Span {
|
||||
let tts: TokenStream = t.dump().into();
|
||||
let (mut first, last) = (None, None);
|
||||
let mut first = None;
|
||||
for tt in tts {
|
||||
match first {
|
||||
None => first = Some(tt.span()),
|
||||
|
Loading…
Reference in New Issue
Block a user