You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #6882 we added a warning for situations where we're using a trait but it's not in scope. For the case where there's only a single candidate trait we can then automatically import it. This would make it much easier to update any legacy codebases (and generally be more ergonomic on new ones).
Rust also allows selecting from multiple candidate traits which would also be nice but can be done separately.
The text was updated successfully, but these errors were encountered:
Relatedly, when typing x. and the completion is a trait method, the trait method is inserted but not the corresponding import (because of how it used to work). So now we'd also need to add the corresponding import. I'll try to do both things in the same PR as they are kind of related.
In #6882 we added a warning for situations where we're using a trait but it's not in scope. For the case where there's only a single candidate trait we can then automatically import it. This would make it much easier to update any legacy codebases (and generally be more ergonomic on new ones).
Rust also allows selecting from multiple candidate traits which would also be nice but can be done separately.
The text was updated successfully, but these errors were encountered: