vscode-rust icon indicating copy to clipboard operation
vscode-rust copied to clipboard

"[rustc] mismatched types" message instead of expected/found message

Open person666 opened this issue 7 years ago • 3 comments

Version of VSCode: 1.13 + Version of the extension: OS: Linux

When hovering over a type mismatch error I used to see expected struct Type, found struct TheTypeItShouldBe like cargo shows. Recently I have just seen [rustc] mismatched types

This maybe a rls issue, but I am not familiar with vscode-rust's or rls's code base so I do not know.

P.S. Thanks for all the great work you have done on this extension.

person666 avatar Jun 29 '17 02:06 person666

@person666, Could you write steps you do and the smallest code you use please?

KalitaAlexey avatar Jun 29 '17 07:06 KalitaAlexey

  1. cargo init --bin it can also be a lib
  2. replace println!("Hello, world!"); with 1isize == 1usize;
  3. I often have to restart rls to get it to see the new project.
  4. hover over 1usize [rustc] mismatched types pops up .

person666 avatar Jun 29 '17 08:06 person666

@person666, Thank you. I'll look at it later.

KalitaAlexey avatar Jun 29 '17 08:06 KalitaAlexey