Teach typeck/borrowck/solvers how to deal with async closures

This commit is contained in:
Michael Goulet 2024-01-24 22:27:25 +00:00
parent c567eddec2
commit a82bae2172
35 changed files with 1221 additions and 66 deletions

View file

@ -755,6 +755,11 @@ rustc_queries! {
separate_provide_extern
}
query coroutine_for_closure(def_id: DefId) -> DefId {
desc { |_tcx| "TODO" }
separate_provide_extern
}
/// Gets a map with the variance of every item; use `variances_of` instead.
query crate_variances(_: ()) -> &'tcx ty::CrateVariancesMap<'tcx> {
arena_cache