about summary refs log tree commit diff
path: root/src/test/ui/async-await/async-block-control-flow-static-semantics.rs
AgeCommit message (Collapse)AuthorLines
2022-11-26Pretty-print generators with their `generator_kind`Arpad Borsos-2/+2
After removing `GenFuture`, I special-cased async generators to pretty-print as `impl Future<Output = X>` mainly to avoid too much diagnostics changes originally. This now reverses that change so that async fn/blocks are pretty-printed as `[$movability `async` $something@$source-position]` in various diagnostics, and updates the tests that this touches.
2022-08-08Adjust wordingMichael Goulet-3/+5
2022-08-07Implement special-cased projection error message for some common traitsMichael Goulet-2/+2
2022-03-30Restore `impl Future<Output = Type>` to async blocksMichael Goulet-1/+1
2022-03-22remove [async output] from impl FutureMichael Goulet-1/+1
2021-11-23Update test outputsMichael Goulet-3/+3
2020-09-02pretty: trim paths of unique symbolsDan Aloni-3/+2
If a symbol name can only be imported from one place for a type, and as long as it was not glob-imported anywhere in the current crate, we can trim its printed path and print only the name. This has wide implications on error messages with types, for example, shortening `std::vec::Vec` to just `Vec`, as long as there is no other `Vec` importable anywhere. This adds a new '-Z trim-diagnostic-paths=false' option to control this feature. On the good path, with no diagnosis printed, we should try to avoid issuing this query, so we need to prevent trimmed_def_paths query on several cases. This change also relies on a previous commit that differentiates between `Debug` and `Display` on various rustc types, where the latter is trimmed and presented to the user and the former is not.
2019-10-02WIP fix testsNiko Matsakis-1/+1
2019-08-21more `--bless`ing + test error annotations fixesArtem Varaksa-2/+2
2019-08-20Remove async_await gates from tests.Mazdak Farrokhzad-2/+0
2019-08-18Better error message for break in async blocks.Giles Cope-3/+2
2019-08-09Test interaction btw async blocks and ?, return, break.Mazdak Farrokhzad-0/+67