rust/tests/ui/async-await
Matthias Krüger bfe032334f
Rollup merge of #126054 - veera-sivarajan:bugfix-113073-bound-on-generics-2, r=fee1-dead
`E0229`: Suggest Moving Type Constraints to Type Parameter Declaration

Fixes #113073

This PR suggests  `impl<T: Bound> Trait<T> for Foo` when finding `impl Trait<T: Bound> for Foo`. Tangentially, it also improves a handful of other error messages.

It accomplishes this in two steps:
1. Check if constrained arguments and parameter names appear in the same order and delay emitting "incorrect number of generic arguments" error because it can be confusing for the programmer to see `0 generic arguments provided` when there are `n` constrained generic arguments.

2. Inside `E0229`, suggest declaring the type parameter right after the `impl` keyword by finding the relevant impl block's span for type parameter declaration. This also handles lifetime declarations correctly.

Also, the multi part suggestion doesn't use the fluent error mechanism because translating all the errors to fluent style feels outside the scope of this PR. I will handle it in a separate PR if this gets approved.
2024-06-14 12:23:36 +02:00
..
async-closures Auto merge of #125423 - fmease:rollup-ne4l9y4, r=fmease 2024-05-22 21:51:26 +00:00
async-fn Use parenthetical notation for Fn traits 2024-05-29 22:26:54 +00:00
auxiliary [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
await-keyword Error on using yield without also using #[coroutine] on the closure 2024-04-24 08:05:29 +00:00
drop-order [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
future-sizes In pretty_print_type(), print async fn futures' paths instead of spans. 2024-03-25 08:01:15 -07:00
in-trait make type_flags(ReError) & HAS_ERROR 2024-03-20 17:29:58 +00:00
issues Error on using yield without also using #[coroutine] on the closure 2024-04-24 08:05:29 +00:00
multiple-lifetimes [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
return-type-notation E0229: Suggest Moving Type Constraints to Type Parameter Declaration 2024-06-12 19:32:31 -04:00
track-caller Use suggest_impl_trait in return type suggestion 2024-04-10 18:58:15 -04:00
argument-patterns.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
async-assoc-fn-anon-lifetimes.rs Allow newly added non_local_definitions lint in tests 2024-02-17 13:59:45 +01:00
async-await-let-else.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
async-await-let-else.stderr Remove redundant coroutine captures note 2024-03-19 12:02:21 -04:00
async-await.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
async-block-control-flow-static-semantics.rs Update Tests 2024-05-07 16:56:54 -04:00
async-block-control-flow-static-semantics.stderr Update Tests 2024-05-07 16:56:54 -04:00
async-borrowck-escaping-block-error.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
async-borrowck-escaping-block-error.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +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 Make the computation of coroutine_captures_by_ref_ty more sophisticated 2024-04-10 13:39:53 -04:00
async-borrowck-escaping-closure-error.stderr Make the computation of coroutine_captures_by_ref_ty more sophisticated 2024-04-10 13:39:53 -04:00
async-closure-matches-expr.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
async-closure.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
async-drop.rs Revert miri async drop test but add warnings to each async drop test 2024-05-29 12:57:01 +03:00
async-drop.run.stdout Add simple async drop glue generation 2024-04-16 20:45:07 +03:00
async-error-span.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
async-error-span.stderr Use root obligation on E0277 for some cases 2024-03-03 18:53:35 +00:00
async-fn-elided-impl-lifetime-parameter.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
async-fn-nonsend.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
async-fn-nonsend.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
async-fn-path-elision.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
async-fn-path-elision.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
async-fn-send-uses-nonsend.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
async-fn-size-moved-locals.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
async-fn-size-uninit-locals.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
async-fn-size.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
async-is-unwindsafe.rs Wrap Context.ext in AssertUnwindSafe 2024-05-21 19:05:37 -07:00
async-is-unwindsafe.stderr Wrap Context.ext in AssertUnwindSafe 2024-05-21 19:05:37 -07:00
async-matches-expr.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
async-outside-of-await-issue-121096.rs Adjust error yield/await lowering 2024-02-27 03:20:10 +00:00
async-outside-of-await-issue-121096.stderr Error on using yield without also using #[coroutine] on the closure 2024-04-24 08:05:29 +00:00
async-trait-fn.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
async-unsafe-fn-call-in-safe.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
async-unsafe-fn-call-in-safe.stderr Stabilize THIR unsafeck 2024-01-05 10:00:59 +00:00
async-with-closure.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
await-into-future.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
await-sequence.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
await-unsize.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
awaiting-unsized-param.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
awaiting-unsized-param.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
bound-normalization.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
clone-suggestion.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
clone-suggestion.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
clone-suggestion.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
conditional-and-guaranteed-initialization.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-async-fn-in-main.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
const-async-fn-in-main.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
context-is-sorta-unwindsafe.rs Wrap Context.ext in AssertUnwindSafe 2024-05-21 19:05:37 -07:00
coroutine-desc.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
coroutine-desc.stderr Add explanatory note to async block type mismatch error 2024-06-10 17:14:49 +05:30
coroutine-not-future.rs Error on using yield without also using #[coroutine] on the closure 2024-04-24 08:05:29 +00:00
coroutine-not-future.stderr Error on using yield without also using #[coroutine] on the closure 2024-04-24 08:05:29 +00:00
debug-ice-attempted-to-add-with-overflow.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
debug-ice-attempted-to-add-with-overflow.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
deep-futures-are-freeze.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
default-struct-update.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
dont-ice-for-type-mismatch-in-closure-in-async.rs Stop using HirId for fn-like parents 2024-04-11 11:56:47 -04:00
dont-ice-for-type-mismatch-in-closure-in-async.stderr Inline get_node_fn_decl into get_fn_decl, simplify/explain logic in report_return_mismatched_types 2024-05-20 20:16:29 -04:00
dont-print-desugared-async.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
dont-print-desugared-async.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
dont-suggest-await-on-method-return-mismatch.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
dont-suggest-await-on-method-return-mismatch.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
dont-suggest-missing-await.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
dont-suggest-missing-await.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
drop-and-assign.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
drop-track-bad-field-in-fru.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
drop-track-bad-field-in-fru.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
drop-track-field-assign-nonsend.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
drop-track-field-assign-nonsend.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
drop-track-field-assign.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
drop-tracking-unresolved-typeck-results.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
drop-tracking-unresolved-typeck-results.stderr Add a note to duplicate diagnostics 2023-10-05 01:04:41 +00:00
edition-deny-async-fns-2015.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
edition-deny-async-fns-2015.stderr Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
expansion-in-attrs.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
feature-async-closure.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
feature-async-closure.stderr Bless tests 2024-01-13 12:46:58 -05:00
feature-async-for-loop.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
feature-async-for-loop.stderr Bless tests 2024-01-13 12:46:58 -05:00
feature-self-return-type.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
feature-self-return-type.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
field-assign-nonsend.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
field-assign-nonsend.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
field-assign.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
for-await-2015.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
for-await-consumes-iter.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
for-await-consumes-iter.stderr Update test outputs 2023-12-22 11:01:07 -08:00
for-await-passthrough.rs Add Future and IntoFuture to the 2024 prelude 2024-02-18 23:20:05 +01:00
for-await.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
future-contains-err-issue-115188.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
future-contains-err-issue-115188.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
futures-api.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
generics-and-bounds.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
incorrect-move-async-order-issue-79694.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
incorrect-move-async-order-issue-79694.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
incorrect-move-async-order-issue-79694.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
inference_var_self_argument.rs Replace item names containing an error code with something more meaningful 2024-04-30 22:27:19 +02:00
inference_var_self_argument.stderr Replace item names containing an error code with something more meaningful 2024-04-30 22:27:19 +02:00
interior-with-const-generic-expr.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-54239-private-type-triggers-lint.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-60709.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-61076.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-61076.stderr tweak logic of "unknown field" label 2023-11-18 00:40:11 +00:00
issue-61452.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-61452.stderr Do not set up wrong span for adjustments 2023-07-10 20:09:26 +00:00
issue-61793.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-62658.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-63832-await-short-temporary-lifetime-1.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-63832-await-short-temporary-lifetime.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-64130-1-sync.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-64130-1-sync.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
issue-64130-2-send.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-64130-2-send.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
issue-64130-3-other.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-64130-3-other.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
issue-64130-4-async-move.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-64130-non-send-future-diags.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-64130-non-send-future-diags.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
issue-64391.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-65634-raw-ident-suggestion.edition2015.stderr Move some tests 2024-02-09 15:43:08 -03:00
issue-65634-raw-ident-suggestion.edition2018.stderr Move some tests 2024-02-09 15:43:08 -03:00
issue-65634-raw-ident-suggestion.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-66312.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-66312.stderr Replace item names containing an error code with something more meaningful 2024-04-30 22:27:19 +02:00
issue-66387-if-without-else.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-66387-if-without-else.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-67252-unnamed-future.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-67252-unnamed-future.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
issue-67651.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-67651.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-67765-async-diagnostic.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-67765-async-diagnostic.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-68112.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-68112.stderr Remove redundant coroutine captures note 2024-03-19 12:02:21 -04:00
issue-68523-start.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-68523-start.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-68523.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-68523.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-69446-fnmut-capture.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-69446-fnmut-capture.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-70594.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-70594.stderr Fix spans for bad await in inline const 2023-11-28 19:29:56 +00:00
issue-70818.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-70818.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-70935-complex-spans.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-70935-complex-spans.stderr Remove redundant coroutine captures note 2024-03-19 12:02:21 -04:00
issue-71137.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-71137.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
issue-72442.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-72442.stderr Detect when method call on argument could be removed to fulfill failed trait bound 2024-02-16 04:28:05 +00:00
issue-72470-llvm-dominate.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-72590-type-error-sized.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-72590-type-error-sized.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
issue-73050.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-73137.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-73541-1.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-73541-1.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-73541-2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-73541-2.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-73541-3.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-73541-3.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-73541.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-73541.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-73741-type-err.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-73741-type-err.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-74047.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-74047.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-74072-lifetime-name-annotations.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-74072-lifetime-name-annotations.stderr Bless tests, add comments 2024-02-06 02:22:58 +00:00
issue-74497-lifetime-in-opaque.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-74497-lifetime-in-opaque.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-75785-confusing-named-region.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-75785-confusing-named-region.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-76547.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-76547.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-77993-2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-77993-2.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-78115.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-84841.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-84841.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-86507.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-86507.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-93197.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-93648.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-98634.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-98634.stderr Tweak await span 2023-04-27 17:18:11 +00:00
issue-101715.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-101715.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
issue-105501.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-107036.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-108572.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-108572.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-108572.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
missed-capture-issue-107414.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
missing-return-in-async-block.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
missing-return-in-async-block.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
missing-return-in-async-block.stderr Properly handle async blocks and fns in if exprs without else 2024-02-12 20:26:34 +00:00
move-part-await-return-rest-struct.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
move-part-await-return-rest-tuple.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
mutually-recursive-async-impl-trait-type.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
mutually-recursive-async-impl-trait-type.stderr Make cycle error more resilient to where it starts 2024-01-08 20:30:24 +00:00
nested-in-impl.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
no-async-const.rs Handle safety keyword for extern block inner items 2024-06-04 14:19:42 -03:00
no-async-const.stderr Handle safety keyword for extern block inner items 2024-06-04 14:19:42 -03:00
no-const-async.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
no-const-async.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
no-move-across-await-struct.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
no-move-across-await-struct.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
no-move-across-await-tuple.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
no-move-across-await-tuple.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
no-non-guaranteed-initialization.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
no-non-guaranteed-initialization.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
no-params-non-move-async-closure.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
no-std.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
no-unsafe-async.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
no-unsafe-async.stderr Recover from incorrectly ordered/duplicated function keywords 2023-10-27 18:29:43 +00:00
non-trivial-drop.rs Error on using yield without also using #[coroutine] on the closure 2024-04-24 08:05:29 +00:00
normalize-output-in-signature-deduction.rs Ignore tests w/ current/next revisions from compare-mode=next-solver 2024-03-10 21:18:41 -04:00
partial-drop-partial-reinit.rs Remove redundant coroutine captures note 2024-03-19 12:02:21 -04:00
partial-drop-partial-reinit.stderr Remove redundant coroutine captures note 2024-03-19 12:02:21 -04:00
partial-initialization-across-await.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +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 Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
pin-needed-to-poll-3.rs Add test for incorrect pinning suggestion 2024-05-28 20:05:01 +00:00
pin-needed-to-poll-3.stderr Account for existing bindings when suggesting pinning 2024-05-28 20:48:35 +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 Show number in error message even for one error 2023-11-24 19:15:52 +01:00
proper-span-for-type-error.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
proper-span-for-type-error.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
proper-span-for-type-error.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
recursive-async-impl-trait-type.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
recursive-async-impl-trait-type.stderr Make cycle error more resilient to where it starts 2024-01-08 20:30:24 +00:00
repeat_count_const_in_async_fn.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
return-ty-raw-ptr-coercion.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
return-ty-unsize-coercion.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
send-bound-async-closure.rs Don't ICE when encountering bound regions in generator interior type 2024-03-19 11:30:12 -04:00
suggest-missing-await-closure.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
suggest-missing-await-closure.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
suggest-missing-await-closure.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
suggest-missing-await.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
suggest-missing-await.stderr fix: improve the suggestion on future not awaited 2023-02-13 16:23:23 +01:00
suggest-switching-edition-on-await-cargo.rs Use better heuristic for printing Cargo specific diagnostics 2024-02-17 16:49:01 +01:00
suggest-switching-edition-on-await-cargo.stderr recover primary span label 2023-11-16 17:00:23 +00:00
suggest-switching-edition-on-await.rs recover primary span label 2023-11-16 17:00:23 +00:00
suggest-switching-edition-on-await.stderr recover primary span label 2023-11-16 17:00:23 +00:00
task-context-arg.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
try-on-option-in-async.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unnecessary-await.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unnecessary-await.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
unreachable-lint-1.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unreachable-lint-1.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
unreachable-lint.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unresolved_type_param.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unresolved_type_param.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
unsized-across-await.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unsized-across-await.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
unused-lifetime.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unused-lifetime.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00