VS Code Rust扩展错误

时间:2020-05-24 19:30:44

标签: visual-studio-code rust

我正在尝试找出VS Code上的Rust扩展(https://marketplace.visualstudio.com/items?itemName=rust-lang.rust)所显示的Cargo.toml以下错误的原因(并可能解决)。

could not compile `nodrop`.
error: could not compile `zero`.

To learn more, run the command again with --verbose.
error: could not compile `bit_field`.

To learn more, run the command again with --verbose.
error: could not compile `nodrop`.

To learn more, run the command again with --verbose.

我的猜测是,因为我的项目将默认工具链覆盖为nightly,并且这有可能抛弃了扩展程序的某些组件吗?我可以确认我在运行该项目时没有构建错误-唯一的烦恼就是看到该错误显示在VS Code的“问题”窗口中。

我在Ubuntu 20.04上使用VS Code v1.45.1,并具有以下Rust配置

Default host: x86_64-unknown-linux-gnu
rustup home:  /home/njagdale/.rustup

installed toolchains
--------------------

stable-x86_64-unknown-linux-gnu
nightly-x86_64-unknown-linux-gnu

active toolchain
----------------

nightly-x86_64-unknown-linux-gnu (directory override for '/home/njagdale/playground/intermezzos')
rustc 1.45.0-nightly (a74d1862d 2020-05-14)

谢谢。

0 个答案:

没有答案