about summary refs log tree commit diff
path: root/src/test/ui/async-await
AgeCommit message (Collapse)AuthorLines
2022-11-15Use `needs-unwind` instead of ignoring WASM/emscriptenBryan Garza-5/+3
2022-11-12Add test for projections in async-in-trait.Camille GILLOT-59/+2
2022-11-12Make impl_trait_projections a feature gate.Camille GILLOT-6/+56
2022-11-12Bless ui tests.Camille GILLOT-2/+16
2022-11-11Ignore wasm and emscripten targets for testBryan Garza-2/+5
2022-11-11Visit opaque types during type collection too.Camille GILLOT-15/+2
2022-11-09Allow and add `track_caller` to generatorsBryan Garza-2/+2
This patch allows the usage of the `track_caller` annotation on generators, as well as sets them conditionally if the parent also has `track_caller` set. Also add this annotation on the `GenFuture`'s `poll()` function.
2022-11-01Don't remap early-bound RPITIT regions that originate from implMichael Goulet-0/+32
2022-10-29Rollup merge of #103342 - Rageking8:add-test-for-issue-98634, r=compiler-errorsMatthias Krüger-0/+110
Add test for issue 98634 Fixes #98634
2022-10-28Rollup merge of #103641 - compiler-errors:issue-103624, r=cjgillotMatthias Krüger-7/+6
Don't carry MIR location in `ConstraintCategory::CallArgument` It turns out that `ConstraintCategory::CallArgument` cannot just carry a MIR location in it, since we may bubble them up to totally different MIR bodies. So instead, revert the commit a6b5f95fb028f9feb4a2957c06b35035be2c6155, and instead just erase regions from the original `Option<Ty<'tcx>>` that it carried, so that it doesn't ICE with the changes in #103220. Best reviewed in parts -- the first is just a revert, and the second is where the meaningful changes happen. Fixes #103624
2022-10-28Rollup merge of #102642 - bryangarza:afit-tests, r=compiler-errorsMatthias Krüger-0/+579
Add tests for static async functions in traits This patch adds test cases for AFIT, the majority of which are currently expected to run as `check-fail`. --- Note: I grabbed the cases from https://hackmd.io/SwRcXCiWQV-WRJ4BYs53fA Also, I'm not sure if the `async-associated-types2` and `async-associated-types2-desugared` are correct, I modified them a bit from the examples in the HackMD.
2022-10-28add test for issue 98634Rageking8-0/+110
2022-10-27Update tests based on feedbackBryan Garza-26/+7
- Add comment to some tests that will break when #102745 is implemented - Mark a test with known-bug - Delete duplicate test
2022-10-27Update src/test/ui/async-await/in-trait/async-example.rsBryan Garza-2/+2
Co-authored-by: Michael Goulet <michael@errs.io>
2022-10-27Add additional tests for static AFITBryan Garza-0/+169
2022-10-27Update tests based on feedbackBryan Garza-33/+48
2022-10-27Update static AFIT tests based on feedbackBryan Garza-144/+28
2022-10-27Add tests for static async functions in traitsBryan Garza-0/+530
This patch adds test cases for AFIT, the majority of which are currently expected to run as `check-fail`.
2022-10-27Revert "Make ClosureOutlivesRequirement not rely on an unresolved type"Michael Goulet-7/+6
This reverts commit a6b5f95fb028f9feb4a2957c06b35035be2c6155.
2022-10-27Rollup merge of #103110 - RalfJung:manual-send, r=thomccMatthias Krüger-1/+1
remove redundant Send impl for references Also explain why the other instance is not redundant, move it next to the trait they are implementing, and out of the redundant module. This seems to go back all the way to https://github.com/rust-lang/rust/commit/35ca50bd5676db31a8074a216d1aadad7d434de8, not sure why the module was added. The instance for `&mut` is the default instance we get anyway, and we don't have anything similar for `Sync`, so IMO we should be consistent and not have the redundant instance here, either.
2022-10-25Name impl trait in region bound suggestionMichael Goulet-1/+1
2022-10-19Make ClosureOutlivesRequirement not rely on an unresolved typeMichael Goulet-6/+7
2022-10-18Clean up query descriptionsnils-1/+1
Use the same tense everywhere and prefer display over debug, as these descriptions are user facing.
2022-10-16remove redundant Send impls for referencesRalf Jung-1/+1
also move them next to the trait they are implementing
2022-10-15Add testMichael Goulet-0/+15
2022-10-13Rollup merge of #102974 - Rageking8:fix-small-word-dupe-typos, r=JohnTitorYuki Okushi-3/+3
Fix small word dupe typos
2022-10-12Auto merge of #101679 - compiler-errors:rpitit-default-body, r=nikomatsakisbors-76/+10
Support default-body trait functions with return-position `impl Trait` in traits Introduce a new `Trait` candidate kind for the `ImplTraitInTrait` projection candidate, which just projects an RPITIT down to its opaque type form. This is a hack until we lower RPITITs to regular associated types, after which we will need to rework how these default bodies are type-checked, so comments are left in a few places for us to clean up later. Fixes #101665
2022-10-13fix small word dupe typosRageking8-3/+3
2022-10-11wip: trying to enable #[track_caller] on async fnEric Holk-0/+1
2022-10-10Add a test case for #[track_caller] on async fnEric Holk-0/+74
2022-10-10Rollup merge of #102055 - c410-f3r:moar-errors, r=petrochenkovDylan DPC-0/+44
Move some tests to more reasonable directories r? ``@petrochenkov``
2022-10-08Rollup merge of #102514 - b-naber:binder-print-fixes, r=jackh726Michael Howell-1/+1
Don't repeat lifetime names from outer binder in print Fixes https://github.com/rust-lang/rust/issues/102392 Fixes https://github.com/rust-lang/rust/issues/102414 r? ```@lcnr```
2022-10-05do not reverse the expected type and found type for ObligationCauseCode of ↵Yiming Lei-1/+1
IfExpressionWithNoElse this will fix #102397
2022-10-05Bless testsMichael Goulet-76/+10
2022-10-01bless ui testsMaybe Waffle-6/+6
2022-09-30bless testsb-naber-1/+1
2022-09-27add a label to struct/enum/union ident nameTakayuki Maeda-1/+3
2022-09-26address reviewb-naber-1/+1
2022-09-26bless testsb-naber-1/+1
2022-09-25Only generate closure def id for async fns with bodyMichael Goulet-0/+10
2022-09-24Only record extra lifetime params for async trait fn with no bodyMichael Goulet-46/+0
2022-09-24Resolve async fn signature even without body (in trait)Michael Goulet-0/+92
2022-09-23Rollup merge of #102134 - flba-eb:master, r=bjorn3Matthias Krüger-2/+0
Detect panic strategy using `rustc --print cfg` Instead of relying on a command line parameter, detect if a target is able to unwind or not. Ignore tests that require unwinding on targets that don't support it. I did not find any place where the removed parameter has been used, but it feels a bit risky as I'm new to this test framework. r? bjorn3
2022-09-23Restore ignore tagFlorian Bartels-2/+0
This test case actually requires std::process.
2022-09-23Rollup merge of #100734 - ComputerDruid:afit_feature, r=compiler-errorsMatthias Krüger-5/+72
Split out async_fn_in_trait into a separate feature PR #101224 added support for async fn in trait desuraging behind the `return_position_impl_trait_in_trait` feature. Split this out so that it's behind its own feature gate, since async fn in trait doesn't need to follow the same stabilization schedule.
2022-09-21Split out async_fn_in_trait into a separate featureDan Johnson-5/+72
PR #101224 added support for async fn in trait desuraging behind the return_position_impl_trait_in_trait feature. Split this out so that it's behind its own feature gate, since async fn in trait doesn't need to follow the same stabilization schedule.
2022-09-20Adding needs-unwind to tests involving changing memory size of Futures/ClosuresAndrew Pollack-0/+2
2022-09-20Move some tests to more reasonable directoriesCaio-0/+44
2022-09-17Rollup merge of #101826 - andrewpollack:fix-joined-without-noop, ↵Matthias Krüger-3/+1
r=Mark-Simulacrum Enforce "joined()" and "joined_with_noop()" test Several similar tests come in the form of `joined()` and `joined_with_noop()`. In this test, the `joined()` has two calls to a noop, making it functionally equivalent to `joined_with_noop()`. This doesn't seem intended, and this PR removes those calls and changes the memory size to reflect the change For my education, why do tests with `noop()` calls sometimes have `noop()` contributing to the size, while others do not? E.g. https://github.com/rust-lang/rust/blob/master/src/test/ui/async-await/async-fn-size-moved-locals.rs#L115 and https://github.com/rust-lang/rust/blob/master/src/test/ui/async-await/async-fn-size-moved-locals.rs#L116 have no size difference, whereas https://github.com/rust-lang/rust/blob/master/src/test/ui/async-await/async-fn-size-moved-locals.rs#L113 and https://github.com/rust-lang/rust/blob/master/src/test/ui/async-await/async-fn-size-moved-locals.rs#L114 have a size difference. Thank you!
2022-09-15Remove the let_else feature gate from the testsuiteest31-1/+1
Result of running: rg -l "feature.let_else" src/test/ | xargs sed -s -i "s#^...feature.let_else..\$##" Plus manual tidy fixes.