[Solved] Tutorial and rand crate problem



I’ve decided to follow the official rust tutorial and in the “Guessing game” section (https://doc.rust-lang.org/book/first-edition/guessing-game.html), Visual Studio Code shows me this problem:

message: 'use of unstable library feature ‘rustc_private’: this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead? (see issue #27812)'
at: '1,1’
source: ‘rustc’

The program can still compile without problem but i would like to understand and fix this.
rustc 1.23.0 (766bd11c8 2018-01-01)
cargo 0.24.0 (45043115c 2017-12-05)



You may have skipped over this part where it talks about adding [dependencies] through Cargo.toml.


No it wasn’t that. I added these lines.

When I restarted the computer and the editor the message disappeared, I don’t know why.

Thanks anyway