Stream: t-compiler/rust-analyzer

Topic: #6154 Shorten Iterator hints


Lukas Wirth (Oct 07 2020 at 11:03, on Zulip):

Adding FamousDefs module lookup was simple of course, but how would i actually check whether a type is exported from said module? I dont think this functionality actually exists yet does it?

Lukas Wirth (Oct 07 2020 at 11:04, on Zulip):

I guess I could search through the module scope?

matklad (Oct 07 2020 at 11:05, on Zulip):

Module::visibility_of might do the trick

matklad (Oct 07 2020 at 11:05, on Zulip):

There's also ItemScope::name_of; it's not currently exposed via code_model, but I think it should be fine to expose

Lukas Wirth (Oct 07 2020 at 11:11, on Zulip):

Module::visibility_of does the trick :thumbs_up: this looks a lot better now

Last update: Jul 26 2021 at 14:30UTC