Stream: t-compiler/wg-rls-2.0

Topic: quick fix on save


Coenen Benjamin (Apr 24 2020 at 09:46, on Zulip):

Hello ! I'm wondering if it's possible to let rust-analyzer delete all my unused imports on save ? With a specific settings ? If not do you think it could be interesting and feasible to implement this kind of settings in rust-analyzer ?

Florian Diebold (Apr 24 2020 at 09:48, on Zulip):

deleting unused imports requires that our name resolution and trait solving is 100% correct, otherwise it's going to be very annoying, and we're not there yet

Coenen Benjamin (Apr 24 2020 at 09:50, on Zulip):

Ok yes I understand. BTW as you're there @Florian Diebold I'm also wondering if you already wrote a blog post or something like that about how you implemented type inference in rust-analyzer. I would be very interested by this kind of content :D

Florian Diebold (Apr 24 2020 at 10:07, on Zulip):

Oh, I don't know, I mostly just reimplemented things from rustc in a more simple form, and in many cases gradually learned why they are as complicated as they are in rustc ;)

Coenen Benjamin (Apr 24 2020 at 10:08, on Zulip):

Could be very interesting to read something on this subject :)

Last update: Sep 22 2020 at 01:45UTC