News for hackers. Stuff that matters.
Re:Try Out Rust IDE Support in Visual Studio Code by tomjakubowski on Saturday August 19, 2017 @02:01AM (#15051934)
It might also help to manually annotate the type of the binding being assigned to.

            let v: Vec<i32> = vec![ pt ];
            let vpt = &v[0];
Re:Try Out Rust IDE Support in Visual Studio Code by int_19h on Saturday August 19, 2017 @04:14PM (#15055335)
Nope, doesn't help (corrected to Vec<Point>). The only thing that works is annotating the vpt binding itself.

In any case, if you have to annotate all local bindings for completion to work, that's not idiomatic Rust anymore.

Another interesting thing that I've noticed, is that it does know what vpt.x and vpt.y are - when hovering over them, it correctly says that they're i32. So the type inference works as it should. It's specifically completion that is broken here for some unclear reason.

Re:Try Out Rust IDE Support in Visual Studio Code by saghm on Saturday August 19, 2017 @07:31PM (#15056198)
I wonder if this is an issue with the VSCode extension rather than the RLS then; all RLS can do is provide information to the extension, so maybe the extension just isn't using the information.