about summary refs log tree commit diff
path: root/src/test/ui/async-await/issues
AgeCommit message (Collapse)AuthorLines
2020-01-23Make pointers to statics internalMatthew Jasper-0/+33
2020-01-19update test ui for raw-ptr borrow inside generatorcsmoe-0/+42
2020-01-03Auto merge of #67828 - JohnTitor:rollup-qmswkkl, r=JohnTitorbors-1/+1
Rollup of 10 pull requests Successful merges: - #67450 (Allow for setting a ThinLTO import limit during bootstrap) - #67595 (Suggest adding a lifetime constraint for opaque type) - #67636 (allow rustfmt key in [build] section) - #67736 (Less-than is asymmetric, not antisymmetric) - #67762 (Add missing links for insecure_time) - #67783 (Warn for bindings named same as variants when matching against a borrow) - #67796 (Ensure that we process projections during MIR inlining) - #67807 (Use drop instead of the toilet closure `|_| ()`) - #67816 (Clean up err codes) - #67825 (Minor: change take() docs grammar to match other docs) Failed merges: r? @ghost
2020-01-02Use drop instead of the toilet closure `|_| ()`Lzu Tao-1/+1
2019-12-31Revert "core: add IntoFuture trait and support for await"Wesley Wiser-1/+4
This reverts commit f35517ee861dc012ccc26083dd4520045e2c4f6f.
2019-12-28Ignore i586-unknown-linux-gnu and i586-unknown-musl in testsEsteban Küber-7/+10
2019-12-27core: add IntoFuture trait and support for awaitSean McArthur-4/+1
2019-12-22test falloutMark Rousskov-1/+1
2019-12-06review commentsEsteban Küber-0/+28
2019-12-01Rollup merge of #66679 - mark-i-m:fix-anon-lifetime-errors, r=matthewjasperMazdak Farrokhzad-2/+2
Improve lifetime errors with implicit trait object lifetimes r? @matthewjasper cc @estebank I still think the ideal solution would be to construct a `BrAnon`, but that seems like a more invasive change, and can be done later. This at least gets rid of the hack in `OutliveSuggestion` and is slightly more principled.
2019-11-29Rollup merge of #66793 - matthewjasper:record-static-refs, r=cramertjRalf Jung-0/+24
Record temporary static references in generator witnesses Closes #66695 * Record the pointer to static's type in MIR. * Normalize the static's type (so that constants can be compared correctly).
2019-11-29improve lifetime errors with implicit trait object lifetimesMark Mansi-2/+2
2019-11-29Ignore wasm for panic testsDavid Haig-0/+6
2019-11-28Moved tests and fixed merge conflictDavid Haig-0/+117
2019-11-27Add async fn test for #66695Matthew Jasper-0/+24
2019-11-24Rollup merge of #64856 - jonhoo:format-temporaries, r=sfacklerMazdak Farrokhzad-0/+22
Scope format! temporaries This places the temporaries that `format!` generates to refer to its arguments (through `&dyn Trait`) in a short-lived scope surrounding just the invocation of `format!`. This enables `format!` to be used in generators without the temporaries preventing the generator from being `Send` (due to `dyn Trait` not being `Sync`). See rust-lang/rust#64477 for details.
2019-11-21Rollup merge of #65730 - csmoe:return-lifetime, r=nikomatsakisMazdak Farrokhzad-4/+64
Suggest to add lifetime constraint at explicit ouput of functions Closes #62097
2019-11-13Rollup merge of #66186 - GuillaumeGomez:long-err-explanation-E0623, r=Dylan-DPCYuki Okushi-0/+1
Add long error explanation for E0623 Part of #61137. r? @Dylan-DPC
2019-11-13update suggestion ui testcsmoe-4/+45
2019-11-11add ui test for issue-62097csmoe-0/+19
2019-11-10Make error and warning annotations mandatory in UI testsTomasz Miąsko-0/+1
This change makes error and warning annotations mandatory in UI tests. The only exception are tests that use error patterns to match compiler output and don't have any annotations.
2019-11-08Rollup merge of #66049 - RalfJung:missing-spans, r=alexcrichtonYuki Okushi-8/+7
consistent handling of missing sysroot spans Due to https://github.com/rust-lang/rust/issues/53081, sysroot spans (pointing to code in libcore/libstd/...) fails to print on some x86 runners. This consolidates the ignore directives for that and references the relevant issue. I also did that for the generated derive-error-span tests -- but there the script and the tests were not entirely in sync any more since https://github.com/rust-lang/rust/pull/64151. Cc @estebank @varkor
2019-11-07Update ui testsGuillaume Gomez-0/+1
2019-11-04Use check-pass in ui tests where appropriateTomasz Miąsko-3/+3
2019-11-02consistent handling of missing sysroot spansRalf Jung-8/+7
2019-11-02Merge branch 'master' into format-temporariesJon Gjengset-13/+61
2019-10-22Add long error explanation for E0728Yuki Okushi-1/+6
2019-10-15Rollup merge of #65235 - nikomatsakis:issue-65159-async-fn-return-ice, ↵Tyler Mandry-0/+19
r=cramertj don't assume we can *always* find a return type hint in async fn In particular, we sometimes cannot if there is an earlier error. Fixes #65159 r? @cramertj, who reviewed the original PR
2019-10-11don't assume we can *always* find a return type hint in async fnNiko Matsakis-0/+19
In particular, we sometimes cannot if there is an earlier error.
2019-10-11Print lifetimes with backticksYuki Okushi-2/+2
2019-10-03Auto merge of #64999 - nikomatsakis:issue-60424-async-return-inference, ↵bors-10/+12
r=cramertj extract expected return type for async fn generators Fixes #60424 cc @Centril, I know you've been eager to see this fixed. r? @cramertj
2019-10-02WIP fix testsNiko Matsakis-10/+12
2019-10-02Do not collect to vec for debug outputShotaro Yamada-1/+1
2019-10-02Fix async/await ICE #64964Shotaro Yamada-0/+22
2019-09-27Place test with async-await and use 2018 editionJon Gjengset-0/+22
2019-09-22ignore-x86 instead of ignore-muslEsteban Küber-1/+1
2019-09-22ignore musl target in tests to avoid issues with output differencesEsteban Küber-6/+8
2019-09-22On obligation errors point at the unfulfilled binding when possibleEsteban Küber-1/+4
2019-09-19fix tests for 2018Niko Matsakis-0/+4
2019-09-19avoid generating drops for moved operands of callsNiko Matsakis-0/+46
Currently, after a CALL terminator is created in MIR, we insert DROP statements for all of its operands -- even though they were just moved shortly before! These spurious drops are later removed, but not before causing borrow check errors. This PR series modifies the drop code to track operands that were moved and avoid creating drops for them. Right now, I'm only using this mechanism for calls, but it seems likely it could be used in more places.
2019-09-18don't record all intermediate adjustment typesNiko Matsakis-0/+20
That's way more than is needed, and winds up recording types that will never appear in MIR.
2019-09-08Update test stderr with results of enabling unused lintsMark Rousskov-1/+9
2019-08-20--bless post no async_await gates in tests.Mazdak Farrokhzad-19/+19
2019-08-20Remove async_await gates from tests.Mazdak Farrokhzad-51/+3
2019-08-19adjust test to be check-passNiko Matsakis-13/+4
2019-08-19distinguish object-lifetime-default elision from other elisionNiko Matsakis-0/+50
Object-lifetime-default elision is distinct from other forms of elision; it always refers to some enclosing lifetime *present in the surrounding type* (e.g., `&dyn Bar` expands to `&'a (dyn Bar + 'a)`. If there is no enclosing lifetime, then it expands to `'static`. Therefore, in an `impl Trait<Item = dyn Bar>` setting, we don't expand to create a lifetime parameter for the `dyn Bar + 'X` bound. It will just be resolved to `'static`. Annoyingly, the responsibility for this resolution is spread across multiple bits of code right now (`middle::resolve_lifetimes`, `lowering`). The lowering code knows that the default is for an object lifetime, but it doesn't know what the correct result would be. Probably this should be fixed, but what we do now is a surgical fix: we have it generate a different result for elided lifetimes in a object context, and then we can ignore those results when figuring out the lifetimes that are captured in the opaque type.
2019-08-16bless you nllEduard-Mihai Burtescu-1/+1
2019-08-14Rollup merge of #63509 - estebank:async-span, r=CentrilMazdak Farrokhzad-0/+23
Point at the right enclosing scope when using `await` in non-async fn Fix #63398.
2019-08-13review comment: move testEsteban Küber-0/+23
2019-08-13bless tests with compare-mode=nllNiko Matsakis-0/+35