rust/tests/ui/async-await/async-closures
Matthias Krüger 443358d25d
Rollup merge of #140318 - compiler-errors:specialized-async-fn-kind-err, r=fee1-dead
Simply try to unpeel AsyncFnKindHelper goal in `emit_specialized_closure_kind_error`

Tweak the handling of `AsyncFnKindHelper` goals in `emit_specialized_closure_kind_error` to not be so special-casey, and just try to unpeel one or two layers of obligation causes to get to their underlying `AsyncFn*` goal.

Fixes https://github.com/rust-lang/rust/issues/140292
2025-04-26 16:12:33 +02:00
..
auxiliary Stabilize async closures 2024-12-13 00:04:56 +00:00
ambiguous-arg.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
ambiguous-arg.stderr Stabilize async closures 2024-12-13 00:04:56 +00:00
arg-mismatch.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
arg-mismatch.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
async-fn-mut-for-async-fn.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
async-fn-once-for-async-fn.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
async-future-out-must-be-sized.rs Make sure we check the future type is Sized in AsyncFn* 2024-12-31 00:46:46 +00:00
async-future-out-must-be-sized.stderr Make sure we check the future type is Sized in AsyncFn* 2024-12-31 00:46:46 +00:00
await-inference-guidance.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
body-check-on-non-fnmut.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
box-deref-in-debuginfo.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
brand.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
by-move-body-inlined-attrs.rs Feed HIR for by-move coroutine body def, since the inliner tries to read its attrs 2025-03-31 21:10:56 +00:00
call-once-deduction.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
captures.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
captures.run.stdout Force move async-closures that are FnOnce to make their inner coroutines also move 2024-04-04 19:44:51 -04:00
clone-closure.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
clone-closure.run.stdout Make coroutine-closures possible to be cloned 2024-07-26 12:53:53 -04:00
closure-shim-borrowck-error.rs replace //@ compile-flags: --edition with //@ edition 2025-04-10 09:56:37 +02:00
closure-shim-borrowck-error.stderr replace //@ compile-flags: --edition with //@ edition 2025-04-10 09:56:37 +02:00
constrained-but-no-upvars-yet.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
debuginfo-by-move-body.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
def-path.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
def-path.stderr Actually print all the relevant parts of a coroutine in verbose mode 2024-12-25 01:08:59 +00:00
different-projection-lengths-for-different-upvars.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
dont-ice-when-body-tainted-by-errors.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
dont-ice-when-body-tainted-by-errors.stderr Stabilize async closures 2024-12-13 00:04:56 +00:00
drop.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
drop.run.stdout Fix drop shim for AsyncFnOnce closure, AsyncFnMut shim for AsyncFn closure 2024-02-06 02:22:58 +00:00
fn-exception-target-features.rs Stabilize target_feature_11 2025-01-27 23:44:47 +01:00
fn-exception-target-features.stderr Stabilize target_feature_11 2025-01-27 23:44:47 +01:00
fn-exception.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
fn-exception.stderr Stabilize async closures 2024-12-13 00:04:56 +00:00
force-move-due-to-actually-fnonce.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
force-move-due-to-inferred-kind.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
foreign.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
higher-ranked-return.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
higher-ranked-return.stderr Stabilize async closures 2024-12-13 00:04:56 +00:00
higher-ranked.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
imm-deref-lending.rs Improve upvar analysis for deref of child capture 2025-03-14 22:35:06 +00:00
imm-deref-not-lending.rs Improve upvar analysis for deref of child capture 2025-03-14 22:35:06 +00:00
imm-deref-not-lending.stderr Improve upvar analysis for deref of child capture 2025-03-14 22:35:06 +00:00
implements-fnmut.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
inline-body.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
is-fn.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
is-not-fn.current.stderr Shorten error message for callable with wrong return type 2025-02-02 01:00:33 +00:00
is-not-fn.next.stderr More 2025-04-23 15:09:25 +00:00
is-not-fn.rs More 2025-04-23 15:09:25 +00:00
kind-due-to-arg-with-box-wrap.rs Simply try to unpeel AsyncFnKindHelper goal in emit_specialized_closure_kind_error 2025-04-26 01:42:52 +00:00
kind-due-to-arg-with-box-wrap.stderr Simply try to unpeel AsyncFnKindHelper goal in emit_specialized_closure_kind_error 2025-04-26 01:42:52 +00:00
kind-due-to-rpit.rs Improve error message for AsyncFn trait failure for RPIT 2025-03-03 04:09:43 +00:00
kind-due-to-rpit.stderr Improve error message for AsyncFn trait failure for RPIT 2025-03-03 04:09:43 +00:00
lint-closure-returning-async-block.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
lint-closure-returning-async-block.stderr Stabilize async closures 2024-12-13 00:04:56 +00:00
mac-body.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
mangle.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
moro-example.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
move-consuming-capture.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
move-consuming-capture.stderr Stabilize async closures 2024-12-13 00:04:56 +00:00
move-is-async-fn.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
move-out-of-ref.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
move-out-of-ref.stderr Stabilize async closures 2024-12-13 00:04:56 +00:00
mut-ref-reborrow.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
mutate.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
no-borrow-from-env.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
non-copy-arg-does-not-force-inner-move.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
not-clone-closure.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
not-clone-closure.stderr Stabilize async closures 2024-12-13 00:04:56 +00:00
not-fn.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
not-fn.stderr Stabilize async closures 2024-12-13 00:04:56 +00:00
not-lending.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
not-lending.stderr Stabilize async closures 2024-12-13 00:04:56 +00:00
once.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
overlapping-projs.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
overlapping-projs.run.stdout Check the base of the place too! 2024-04-05 16:48:45 -04:00
post-mono-higher-ranked-hang-2.rs Add cache to FoldEscapingRegions 2025-01-26 18:27:58 +00:00
post-mono-higher-ranked-hang-2.stderr Add cache to FoldEscapingRegions 2025-01-26 18:27:58 +00:00
post-mono-higher-ranked-hang.rs Add cache to FoldEscapingRegions 2025-01-26 18:27:58 +00:00
post-mono-higher-ranked-hang.stderr Add cache to FoldEscapingRegions 2025-01-26 18:27:58 +00:00
precise-captures.call_once.run.stdout Rework the ByMoveBody shim to actually work correctly 2024-04-05 15:28:13 -04:00
precise-captures.call.run.stdout Rework the ByMoveBody shim to actually work correctly 2024-04-05 15:28:13 -04:00
precise-captures.force_once.run.stdout Rework the ByMoveBody shim to actually work correctly 2024-04-05 15:28:13 -04:00
precise-captures.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
pretty-async-fn-opaque.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
pretty-async-fn-opaque.stderr Stabilize async closures 2024-12-13 00:04:56 +00:00
refd.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
return-type-mismatch.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
return-type-mismatch.stderr Stabilize async closures 2024-12-13 00:04:56 +00:00
sig-from-bare-fn.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
signature-deduction.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
signature-inference-from-two-part-bound.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
tainted-body-2.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
tainted-body-2.stderr Stabilize async closures 2024-12-13 00:04:56 +00:00
tainted-body.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
tainted-body.stderr Stabilize async closures 2024-12-13 00:04:56 +00:00
truncated-fields-when-imm.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
validate-synthetic-body.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
without-precise-captures-we-are-powerless.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
without-precise-captures-we-are-powerless.stderr best_blame_constraint: don't filter constraints by sup SCC 2025-01-06 16:08:29 -08:00
wrong-fn-kind.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
wrong-fn-kind.stderr Stabilize async closures 2024-12-13 00:04:56 +00:00