rls
rls copied to clipboard
Guessing game from The Rust Book has wrong completion
I am following the Rust book, using VS Code with the official Rust extension which uses RLS internally. I am typing this line from the guessing game example:
let secret_number = rand::thread_rng().gen_range(1, 101);
When typing this line, the dot after rand::thread_rng() provides these completion items:

There is no gen_range. However, the line compiles just fine.
Not sure if this is a problem with RLS or perhaps the docs or maybe even the rand crate's types, so I'm starting here.