about summary refs log tree commit diff
path: root/src/test/ui/async-await/async-error-span.stderr
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-25/+0
2021-12-13When `.await` is called on a non-`Future` expression, suggest removalEsteban Kuber-2/+2
Keep track of the origin of a `T: Future` obligation when caused by an `.await` expression. Address #66731.
2021-12-02Code review feedbackEric Holk-0/+1
Add a note about `IntoFuture` in error messages where T is not a future. Change await-into-future.rs to be a run-pass test.
2020-10-06Fix tests from rebaseMatthew Jasper-1/+0
2020-10-06Check opaque types satisfy their boundsMatthew Jasper-3/+0
2020-09-02pretty: trim paths of unique symbolsDan Aloni-1/+1
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.
2020-06-25Adds a clearer message for when the async keyword is missing from a functionNell Shamrell-2/+3
Signed-off-by: Nell Shamrell <nellshamrell@gmail.com>
2020-03-23Update testsJohn Kåre Alsaker-4/+16
2019-10-02s/`async` fn/`async fn`/Niko Matsakis-2/+2
2019-10-02WIP fix testsNiko Matsakis-2/+2
2019-08-20--bless post no async_await gates in tests.Mazdak Farrokhzad-2/+2
2019-07-04Improve error span for async type inference errorAaron Hill-0/+15
Fixes #62382 Previously, we would point at the spawn of the 'await' expression, instead of the actual expression with an unknown type.