Resolver: Recover from OCaml-style record exprs { x = …; y = … }
and suggest /* Type */ { x: …, y: … }
#71027
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-resolve
Area: Name/path resolution done by `rustc_resolve` specifically
P-low
Low priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Hi, there's a auto-fix bug. I'm using VSCode. The code explains itself:
I tried this code:
I expected to see the auto-fix suggest ways to print Point correctly.
Instead, auto-fix in VSCode suggests changing x and y to s in line 23.
However, the error message from rust displays fine.
Meta
rustc --version --verbose
:Backtrace
The text was updated successfully, but these errors were encountered: