Extend rustc_on_unimplemented
to query for closures
#48534
Labels
A-closures
Area: Closures (`|…| { … }`)
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Add a filter to
rustc_on_unimplemented
to allow the querying for the existence of a closure in the requirement chain. This should allow handling #24909 and #33307 by providing a specific message recommending marking the closure asmove
.The text was updated successfully, but these errors were encountered: