-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
completion-ref-matching #19226
completion-ref-matching #19226
Conversation
Please add a test. |
ce38f1d
to
51709c5
Compare
Hello @ChayimFriedman2, this only addresses part of the issue and does not cover the aspect related to unsized types. The approach I took was as follows: In the case of a redundant borrowing suggestion, the issue was that the completion type was |
A better approach will be to fold both types and convert all lifetimes to error lifetimes. You can see examples of type folders in this file: https://github.com/rust-lang/rust-analyzer/blob/master/crates/hir-ty/src/lib.rs. |
b7cb7f5
to
dcb25b1
Compare
@ChayimFriedman2 , Ah! I updated the check to use the |
Thanks! |
closes #17310