Stream: t-compiler/rust-analyzer

Topic: name


matklad (Jan 19 2021 at 14:00, on Zulip):

image.png

@Lukas Wirth looks like self. is missclassified as a module here

Jonas Schievink [he/him] (Jan 19 2021 at 14:01, on Zulip):

There's no self parameter

matklad (Jan 19 2021 at 14:03, on Zulip):

yes, but it thinks that self. is a module, and highlights the whole file :rofl:

Jonas Schievink [he/him] (Jan 19 2021 at 14:03, on Zulip):

oh :D

matklad (Jan 19 2021 at 14:03, on Zulip):

Maybe it tries to tell me that I am overdoing unsafe here...

Lukas Wirth (Jan 19 2021 at 14:04, on Zulip):

I'll take a look at that :big_smile:

Lukas Wirth (Jan 19 2021 at 15:37, on Zulip):

What should it be classified as instead though, unresolved reference? Technically self refers to a module there since there is no self param. At least rustc thinks so as well in this erroneous case.

Joshua Nelson (Jan 19 2021 at 16:14, on Zulip):

I think it should see that self.x is invalid for things in the type namespace and filter out all types (including modules)

Last update: Jul 26 2021 at 12:30UTC