VS Code Rust Extension Errors

喜欢而已 提交于 2020-06-29 06:42:06

问题


I'm trying to figure out the reason why (and possibly fix) below errors for Cargo.toml that the Rust Extension (https://marketplace.visualstudio.com/items?itemName=rust-lang.rust) on VS Code shows.

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.

My guess is that because my project overrides the default toolchain to nightly and it's possible that this is throwing off some component of the extension? I can confirm that there are no build errors when I run this project - its only annoying to see the error show up in the "Problems" window in VS Code.

Im using VS Code v1.45.1 on Ubuntu 20.04 and have the below Rust Configuration

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)

Thanks in advance.

来源:https://stackoverflow.com/questions/61991370/vs-code-rust-extension-errors

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!