full error:
Failed loading rustc_private crates for workspace 'path to Cargo.toml in workspace':
Failed to discover rustc source for sysroot.
This error occurs in all projects even newly initialized.
rustc --print sysroot
prints path
I tried to setting path manually in system variables(I’m on Win11), didn’t help.
Then I reinstalled all rust dependecies, restatred VS code, didn’t help, resterted PC, didn’t help.
Again, after reinstallation via commands everything is fine: rustc
and rust-src
exists,
rustc --print sysroot
prints path. Only extension is complaining.