Getting "the trait bound proc_macro2::Span: From<proc_macro::Span>
is not satisfied" error when building
#3093
Labels
proc_macro2::Span: From<proc_macro::Span>
is not satisfied" error when building
#3093
Describe the bug
I have a project in which one of the dependencies is using swc and swc_commons crates, when I run
cargo build --release
I get the following error:This is happening both on MacOS and Centos (Linux)
System info:
CentOS Linux release 7.9.2009 (Core)
cargo 1.57.0 (b2e52d7ca 2021-10-21)
rustc 1.57.0 (f1edd0429 2021-11-29)
proc-macro-error v1.0.4
My project's
Cargo.toml
looks like this (masked some information with***
for security/privacy reasons)Previously, my project was using swc and swc_common
rev = "9c620476"
and it was building just fine, but bumping it torev = "726fc696"
throws the described error. I have also filed this bug with proc-macro-error in case this is an issue with the lib.Thanks!
Input code
No response
Config
No response
Playground link
No response
Expected behavior
Cargo should build the release target just fine.
Version
726fc69
Additional context
No response
The text was updated successfully, but these errors were encountered: