-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Compiler panic using fn_traits #81974
Comments
Note: This is a known issue with type-checking generic rust-call fns, I fixed this same issue for non-generic cases a bit ago. The reason I didn't fix it at the time is that as far as I could tell, the only way to fix this in the generic case would have been to add a new kind of WF predicate, for 'is a tuple', which was out of scope for my fix. There may be a better way to do this for someone more familiar with the obligation system. Here's the place where type-checking should be happening but isn't: rust/compiler/rustc_typeck/src/check/check.rs Line 135 in f7534b5
|
|
Most likely low-priority; feel free to ignore Issue: rust-lang/rust#81974
This doesn't ICE any more and fails to compile with:
|
…bilee did I mention that tests are super cool? Fixes rust-lang#81974 Fixes rust-lang#84727 Fixes rust-lang#92979
…bilee did I mention that tests are super cool? Fixes rust-lang#81974 Fixes rust-lang#84727 Fixes rust-lang#92979
Rollup merge of rust-lang#123051 - matthiaskrgr:casetest, r=workingjubilee did I mention that tests are super cool? Fixes rust-lang#81974 Fixes rust-lang#84727 Fixes rust-lang#92979
did I mention that tests are super cool? Fixes rust-lang/rust#81974 Fixes rust-lang/rust#84727 Fixes rust-lang/rust#92979
Code
playground
Meta
rustc --version --verbose
:Error output
Note: I have the same issue even without a closure or by using the mut call
The text was updated successfully, but these errors were encountered: