rust/tests/ui/async-await/in-trait
bors b781645332 Auto merge of #116184 - compiler-errors:afit-lint, r=tmandry
Add `async_fn_in_trait` lint

cc https://github.com/rust-lang/rust/pull/115822#issuecomment-1731168465

Mostly unsure what the messaging should be. Feedback required.

r? `@tmandry`
2023-10-05 01:14:25 +00:00
..
auxiliary Suggest desugaring to RPITIT when AFIT is required to be an auto trait 2023-09-21 19:18:14 +00:00
async-associated-types.rs Bless tests 2023-10-03 00:37:18 +00:00
async-default-fn-overridden.rs Bless tests 2023-10-03 00:37:18 +00:00
async-example-desugared-boxed-in-trait.rs Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
async-example-desugared-boxed-in-trait.stderr Point to full async fn for future 2023-10-03 02:25:32 +00:00
async-example-desugared-boxed.rs Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
async-example-desugared-boxed.stderr Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
async-example-desugared-extra.rs Bless tests 2023-10-03 00:37:18 +00:00
async-example-desugared-in-trait.rs Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
async-example-desugared-manual.rs Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
async-example-desugared-manual.stderr Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
async-example-desugared.rs Bless tests 2023-10-03 00:37:18 +00:00
async-example.rs Bless tests 2023-10-03 00:37:18 +00:00
async-generics-and-bounds.rs Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
async-generics-and-bounds.stderr Point to full async fn for future 2023-10-03 02:25:32 +00:00
async-generics.rs Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
async-generics.stderr Point to full async fn for future 2023-10-03 02:25:32 +00:00
async-lifetimes-and-bounds.rs Bless tests 2023-10-03 00:37:18 +00:00
async-lifetimes.rs Bless tests 2023-10-03 00:37:18 +00:00
async-recursive-generic.rs Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
async-recursive-generic.stderr Point to full async fn for future 2023-10-03 02:25:32 +00:00
async-recursive.rs Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
async-recursive.stderr Point to full async fn for future 2023-10-03 02:25:32 +00:00
bad-signatures.rs Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
bad-signatures.stderr Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
dont-project-to-specializable-projection.rs Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
dont-project-to-specializable-projection.stderr Point to full async fn for future 2023-10-03 02:25:32 +00:00
early-bound-1.rs Bless tests 2023-10-03 00:37:18 +00:00
early-bound-2.rs Bless tests 2023-10-03 00:37:18 +00:00
fn-not-async-err2.rs Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
fn-not-async-err2.stderr Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
fn-not-async-err.rs
fn-not-async-err.stderr
generics-mismatch.rs Add revisions for -Zlower-impl-trait-in-trait-to-assoc-ty fixed tests 2023-03-17 16:01:53 -03:00
generics-mismatch.stderr Add revisions for -Zlower-impl-trait-in-trait-to-assoc-ty fixed tests 2023-03-17 16:01:53 -03:00
implied-bounds.rs Bless tests 2023-10-03 00:37:18 +00:00
indirect-recursion-issue-112047.rs Bless tests. 2023-09-23 13:47:30 +00:00
indirect-recursion-issue-112047.stderr Strip OpaqueCast during RevealAll. 2023-09-28 16:13:38 +00:00
issue-102138.rs Bless tests 2023-10-03 00:37:18 +00:00
issue-102219.rs Bless tests 2023-10-03 00:37:18 +00:00
issue-102310.rs Bless tests 2023-10-03 00:37:18 +00:00
issue-104678.rs Bless tests 2023-10-03 00:37:18 +00:00
lifetime-mismatch.rs Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
lifetime-mismatch.stderr Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
missing-feature-flag.rs Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
missing-feature-flag.stderr Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
missing-send-bound.rs Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
missing-send-bound.stderr Suggest desugaring to RPITIT when AFIT is required to be an auto trait 2023-09-21 19:18:14 +00:00
nested-rpit.rs Bless tests 2023-10-03 00:37:18 +00:00
normalize-opaque-with-bound-vars.rs Bless tests 2023-10-03 00:37:18 +00:00
object-safety.rs Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
object-safety.stderr Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
return-not-existing-pair.rs Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
return-not-existing-pair.stderr Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
return-not-existing-type-wrapping-rpitit.rs Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
return-not-existing-type-wrapping-rpitit.stderr Replace RPITIT current impl with new strategy that lowers as a GAT 2023-07-08 18:21:34 -03:00
return-type-suggestion.rs Bugfix: 'can_have_side_effects()' would return 'false' for struct/enum/array/tuple literals unless *all* sub-expressions had side effects. This would easily allow side effects to slip through, and also wrongly label empty literals as having side effects. Add some tests for the last point 2023-08-10 02:26:11 +02:00
return-type-suggestion.stderr Bugfix: 'can_have_side_effects()' would return 'false' for struct/enum/array/tuple literals unless *all* sub-expressions had side effects. This would easily allow side effects to slip through, and also wrongly label empty literals as having side effects. Add some tests for the last point 2023-08-10 02:26:11 +02:00
send-on-async-fn-in-trait.fixed Suggest desugaring to RPITIT when AFIT is required to be an auto trait 2023-09-21 19:18:14 +00:00
send-on-async-fn-in-trait.rs Suggest desugaring to RPITIT when AFIT is required to be an auto trait 2023-09-21 19:18:14 +00:00
send-on-async-fn-in-trait.stderr Suggest desugaring to RPITIT when AFIT is required to be an auto trait 2023-09-21 19:18:14 +00:00
send-on-foreign-async-fn-in-trait.rs Suggest desugaring to RPITIT when AFIT is required to be an auto trait 2023-09-21 19:18:14 +00:00
send-on-foreign-async-fn-in-trait.stderr Suggest desugaring to RPITIT when AFIT is required to be an auto trait 2023-09-21 19:18:14 +00:00
warn.rs Only reachable traits 2023-10-03 00:37:18 +00:00
warn.stderr Address review nits 2023-10-03 00:51:13 +00:00