问题
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