Stream: t-compiler/rust-analyzer

Topic: rendering of empty range diagnostic

Manmeet Mann (Jun 02 2021 at 13:44, on Zulip):

with code

fn main() {
    et x = 5;

rust analyzers gives diagnostic Syntax Error: expected SEMICOLON at start and end (line 2 col 6)
how is it supposed to be rendered
emacs just increases end by one
and vscode snaps it to close word boundary?

Manmeet Mann (Jun 02 2021 at 13:47, on Zulip):

sorry if it is offtopic

matklad (Jun 02 2021 at 13:48, on Zulip):

Emacs seems more correct here

Manmeet Mann (Jun 02 2021 at 13:49, on Zulip):

this is what I am doing, cursor position (+/-) 6 pixel image.png

Mario Carneiro (Jun 02 2021 at 13:59, on Zulip):

rust itself increases the end by 1 in console error messages

Manmeet Mann (Jun 02 2021 at 14:09, on Zulip):

then it is easy choice :D

Last update: Jul 26 2021 at 12:45UTC