Skip to content
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

false-positive rust-analyzer diagnostic: mismatched-arg-count #9852

Open
GopherJ opened this issue Aug 11, 2021 · 8 comments
Open

false-positive rust-analyzer diagnostic: mismatched-arg-count #9852

GopherJ opened this issue Aug 11, 2021 · 8 comments
Labels
A-ty type system / type inference / traits / method resolution S-unactionable Issue requires feedback, design decisions or is blocked on other work

Comments

@GopherJ
Copy link

GopherJ commented Aug 11, 2021

image

@GopherJ GopherJ changed the title false-positive rust-analyzer diagnostic false-positive rust-analyzer diagnostic: mismatched-arg-count Aug 11, 2021
@lnicola lnicola added A-ty type system / type inference / traits / method resolution S-unactionable Issue requires feedback, design decisions or is blocked on other work labels Aug 13, 2021
@lnicola
Copy link
Member

lnicola commented Aug 13, 2021

The problem is that we're picking the wrong get function.

Does that code involve proc-macro generated code? Can you extract a test case that shows the same problem (by moving frame_system::Config and DbWeight to a new project)?

@ghost

This comment has been minimized.

@lnicola

This comment has been minimized.

@GopherJ
Copy link
Author

GopherJ commented Aug 16, 2021

The problem is that we're picking the wrong get function.

Does that code involve proc-macro generated code? Can you extract a test case that shows the same problem (by moving frame_system::Config and DbWeight to a new project)?

it doesn't involve proc-macro generated code

@flodiebold
Copy link
Member

Can you link to the get function that it's resolving to right now, and the get function that you'd expect to be used?

@Chartas

This comment has been minimized.

@lnicola

This comment has been minimized.

@flodiebold

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ty type system / type inference / traits / method resolution S-unactionable Issue requires feedback, design decisions or is blocked on other work
Projects
None yet
Development

No branches or pull requests

4 participants