mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-25 05:14:27 +00:00
![]() Closures always implement `FnOnce` in new solver We should process `[closure]: FnOnce(Tys...) -> Ty` obligations *before* fallback and closure analysis. We can do this by taking advantage of the fact that `FnOnce` is always implemented by closures, even before we definitely know the closure kind. Fixes compiler-errors/next-solver-hir-issues#15 r? ``@oli-obk`` (trying to spread the reviewer load for new trait solver prs, and this one is pretty self-contained, though feel free to reassign 😸) |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
messages.ftl |