-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Labels
A-tytype system / type inference / traits / method resolutiontype system / type inference / traits / method resolutionC-bugCategory: bugCategory: bug
Description
rust-analyzer version: 5fae65d 2022-03-07 stable
rustc version: rustc 1.58.0 (02072b482 2022-01-11)
relevant settings: none
Overview
First, some easy to follow screenshots to convince you: this eval
is a closure:
But the function we're passing it to is not expecting a closure:
that's the function it should have pointed me to. Interestingly sourcegraph has the same issues, so I guess they must be using rust-analyzer under the hood.
I reckon this bug comes from the fact that we abuse a bit generic parameters:
pub type JointLookupSpec<F> = JointLookup<SingleLookup<F>>;
Repro steps
Sorry in advance, I haven't been able to do a smaller repro steps:
- clone this repo
git checkout fa87bd7cdb5adf7df43c187a2828d2e588088fb2
- check
kimchi/src/circuits/polynomials/lookup.rs:656
Metadata
Metadata
Assignees
Labels
A-tytype system / type inference / traits / method resolutiontype system / type inference / traits / method resolutionC-bugCategory: bugCategory: bug