Skip to content

2023/09/19 WSL/Ubuntu均编译不过 #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
DynamicLoader opened this issue Sep 19, 2023 · 2 comments
Closed

2023/09/19 WSL/Ubuntu均编译不过 #37

DynamicLoader opened this issue Sep 19, 2023 · 2 comments

Comments

@DynamicLoader
Copy link

如题,出错信息如下:

error[E0635]: unknown feature `proc_macro_span_shrink`
  --> /home/wsl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.56/src/lib.rs:92:30
   |
92 |     feature(proc_macro_span, proc_macro_span_shrink)
   |                              ^^^^^^^^^^^^^^^^^^^^^^

RustC的版本信息:

rustc 1.74.0-nightly (65ea825f4 2023-09-18)
binary: rustc
commit-hash: 65ea825f4021eaf77f1b25139969712d65b435a4
commit-date: 2023-09-18
host: x86_64-unknown-linux-gnu
release: 1.74.0-nightly
LLVM version: 17.0.0

切到stable和beta都不会卡在那里。但是,另外两个通道不能用#![feature],所以也编译不出来。
如何才能解决呢?

谢谢。

@EnderHane
Copy link

似乎是因为新版本 nightly toolchain 和 proc_macro2 冲突
资料
更新间接依赖的 proc_macro2 版本即可解决(部分库api有变动):
EnderHane@687ef87

@DynamicLoader
Copy link
Author

Thx. 不过已经太久了,换别的了 :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants