rust/tests/ui/async-await
Matthias Krüger 22e62a4fca
Rollup merge of #106944 - Nilstrieb:there-once-was-a-diagnostic, r=WaffleLapkin
Suggest using a lock for `*Cell: Sync` bounds

I mostly did this for `OnceCell<T>` at first because users will be confused to see that the `OnceCell<T>` in `std` isn't `Sync` but then extended it to `Cell<T>` and `RefCell<T>` as well.
2023-01-25 22:19:52 +01:00
..
auxiliary Add test 2023-01-19 15:46:08 +00:00
await-keyword Move /src/test to /tests 2023-01-11 09:32:08 +00:00
drop-order Move /src/test to /tests 2023-01-11 09:32:08 +00:00
in-trait Rollup merge of #106753 - compiler-errors:rpitit-not-suggestable, r=spastorino 2023-01-18 18:00:28 -05:00
issues Move /src/test to /tests 2023-01-11 09:32:08 +00:00
multiple-lifetimes Tweak E0597 2023-01-15 19:46:20 +00:00
track-caller Move /src/test to /tests 2023-01-11 09:32:08 +00:00
argument-patterns.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
async-assoc-fn-anon-lifetimes.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
async-await-let-else.drop-tracking.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
async-await-let-else.no-drop-tracking.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
async-await-let-else.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
async-await.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
async-block-control-flow-static-semantics.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
async-block-control-flow-static-semantics.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
async-borrowck-escaping-block-error.fixed Move /src/test to /tests 2023-01-11 09:32:08 +00:00
async-borrowck-escaping-block-error.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
async-borrowck-escaping-block-error.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
async-borrowck-escaping-closure-error.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
async-borrowck-escaping-closure-error.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
async-closure-matches-expr.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
async-closure.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
async-error-span.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
async-error-span.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
async-fn-elided-impl-lifetime-parameter.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
async-fn-nonsend.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
async-fn-nonsend.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
async-fn-path-elision.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
async-fn-path-elision.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
async-fn-send-uses-nonsend.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
async-fn-size-moved-locals.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
async-fn-size-uninit-locals.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
async-fn-size.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
async-is-unwindsafe.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
async-is-unwindsafe.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
async-matches-expr.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
async-trait-fn.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
async-trait-fn.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
async-unsafe-fn-call-in-safe.mir.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
async-unsafe-fn-call-in-safe.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
async-unsafe-fn-call-in-safe.thir.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
async-with-closure.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
await-into-future.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
await-sequence.rs Add a test case for #102383 2023-01-12 11:58:24 -08:00
await-unsize.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bound-normalization.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
conditional-and-guaranteed-initialization.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
default-struct-update.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
dont-print-desugared-async.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
dont-print-desugared-async.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
dont-suggest-await-on-method-return-mismatch.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
dont-suggest-await-on-method-return-mismatch.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
dont-suggest-missing-await.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
dont-suggest-missing-await.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
drop-and-assign.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
drop-track-bad-field-in-fru.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
drop-track-bad-field-in-fru.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
drop-track-field-assign-nonsend.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
drop-track-field-assign-nonsend.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
drop-track-field-assign.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
drop-tracking-unresolved-typeck-results.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
drop-tracking-unresolved-typeck-results.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
edition-deny-async-fns-2015.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
edition-deny-async-fns-2015.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
expansion-in-attrs.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
feature-async-closure.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
feature-async-closure.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
feature-gate-async_fn_in_trait.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
feature-gate-async_fn_in_trait.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
feature-self-return-type.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
feature-self-return-type.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
futures-api.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
generator-desc.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
generator-desc.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
generator-not-future.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
generator-not-future.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
generics-and-bounds.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
incorrect-move-async-order-issue-79694.fixed Move /src/test to /tests 2023-01-11 09:32:08 +00:00
incorrect-move-async-order-issue-79694.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
incorrect-move-async-order-issue-79694.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
interior-with-const-generic-expr.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-54239-private-type-triggers-lint.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-60709.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-61076.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-61076.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-61452.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-61452.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-61793.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-61949-self-return-type.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-61949-self-return-type.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-62658.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-63832-await-short-temporary-lifetime-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-63832-await-short-temporary-lifetime.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-64130-1-sync.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-64130-1-sync.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-64130-2-send.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-64130-2-send.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-64130-3-other.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-64130-3-other.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-64130-4-async-move.drop-tracking.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-64130-4-async-move.no_drop_tracking.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-64130-4-async-move.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-64130-non-send-future-diags.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-64130-non-send-future-diags.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-64391.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-66312.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-66312.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-66387-if-without-else.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-66387-if-without-else.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-67252-unnamed-future.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-67252-unnamed-future.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-67651.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-67651.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-67765-async-diagnostic.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-67765-async-diagnostic.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-68112.drop_tracking.stderr Add rustc_on_unimplemented on Sync for cell types 2023-01-19 21:09:25 +01:00
issue-68112.no_drop_tracking.stderr Add rustc_on_unimplemented on Sync for cell types 2023-01-19 21:09:25 +01:00
issue-68112.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-68523-start.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-68523-start.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-68523.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-68523.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-69446-fnmut-capture.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-69446-fnmut-capture.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-70594.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-70594.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-70818.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-70818.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-70935-complex-spans.drop_tracking.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-70935-complex-spans.no_drop_tracking.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-70935-complex-spans.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-71137.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-71137.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-72442.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-72442.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-72470-llvm-dominate.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-72590-type-error-sized.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-72590-type-error-sized.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-73050.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-73137.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-73541-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-73541-1.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-73541-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-73541-2.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-73541-3.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-73541-3.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-73541.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-73541.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-73741-type-err-drop-tracking.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-73741-type-err-drop-tracking.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-73741-type-err.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-73741-type-err.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-74047.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-74047.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-74072-lifetime-name-annotations.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-74072-lifetime-name-annotations.stderr Tweak E0597 2023-01-15 19:46:20 +00:00
issue-74497-lifetime-in-opaque.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-74497-lifetime-in-opaque.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-75785-confusing-named-region.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-75785-confusing-named-region.stderr Tweak E0597 2023-01-15 19:46:20 +00:00
issue-76547.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-76547.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-77993-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-77993-2.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-84841.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-84841.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-86507.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-86507.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-93197.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-93648.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-98634.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-98634.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-101715.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-101715.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-105501.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-107036.rs Add test 2023-01-19 15:46:08 +00:00
large_moves.attribute.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
large_moves.option.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
large_moves.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
move-part-await-return-rest-struct.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
move-part-await-return-rest-tuple.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mutually-recursive-async-impl-trait-type.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mutually-recursive-async-impl-trait-type.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
nested-in-impl.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
no-async-const.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
no-async-const.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
no-const-async.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
no-const-async.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
no-move-across-await-struct.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
no-move-across-await-struct.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
no-move-across-await-tuple.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
no-move-across-await-tuple.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
no-non-guaranteed-initialization.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
no-non-guaranteed-initialization.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
no-params-non-move-async-closure.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
no-params-non-move-async-closure.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
no-std.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
no-unsafe-async.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
no-unsafe-async.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
non-trivial-drop.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
partial-drop-partial-reinit.drop_tracking.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
partial-drop-partial-reinit.no_drop_tracking.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
partial-drop-partial-reinit.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
partial-initialization-across-await.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
partial-initialization-across-await.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
pin-needed-to-poll-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
pin-needed-to-poll-2.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
pin-needed-to-poll.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
pin-needed-to-poll.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
proper-span-for-type-error.fixed Move /src/test to /tests 2023-01-11 09:32:08 +00:00
proper-span-for-type-error.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
proper-span-for-type-error.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
recursive-async-impl-trait-type.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
recursive-async-impl-trait-type.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
repeat_count_const_in_async_fn.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
return-ty-raw-ptr-coercion.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
return-ty-unsize-coercion.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
suggest-missing-await-closure.fixed Move /src/test to /tests 2023-01-11 09:32:08 +00:00
suggest-missing-await-closure.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
suggest-missing-await-closure.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
suggest-missing-await.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
suggest-missing-await.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
suggest-switching-edition-on-await-cargo.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
suggest-switching-edition-on-await-cargo.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
suggest-switching-edition-on-await.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
suggest-switching-edition-on-await.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
try-on-option-in-async.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
try-on-option-in-async.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
type-parameter-send.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unnecessary-await.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unnecessary-await.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unreachable-lint-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unreachable-lint-1.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unreachable-lint.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unresolved_type_param.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unresolved_type_param.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unused-lifetime.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unused-lifetime.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00