about summary refs log tree commit diff
path: root/src/test/ui/generator/print
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-233/+0
2022-12-27Trim more paths in obligation typesEsteban Küber-1/+1
2022-12-01rustc_ast_lowering: Stop lowering imports into multiple itemsVadim Petrochenkov-4/+4
Lower them into a single item with multiple resolutions instead. This also allows to remove additional `NodId`s and `DefId`s related to those additional items.
2022-09-30create def ids for impl traits during ast loweringSantiago Pastorino-4/+4
2022-08-21Targeted fixes addressing erroneous suggestionsMichael Goulet-4/+0
2022-08-21Rework point-at-argMichael Goulet-11/+29
2022-08-18Reword "Required because of the requirements on the impl of ..."Andy Wang-2/+2
2022-07-07Shorten span for closures.Camille GILLOT-18/+6
2022-06-19Greatly improve error reporting for futures and generators in ↵Joshua Nelson-6/+38
`note_obligation_cause_code` Most futures don't go through this code path, because they're caught by `maybe_note_obligation_cause_for_async_await`. But all generators do, and `maybe_note` is imperfect and doesn't catch all futures. Improve the error message for those it misses. At some point, we may want to consider unifying this with the code for `maybe_note_async_await`, so that `async_await` notes all parent constraints, and `note_obligation` can point to yield points. But both functions are quite complicated, and it's not clear to me how to combine them; this seems like a good incremental improvement.
2022-01-21Override rustc version in ui and mir-opt tests to get stable hashesThe 8472-5/+5
Building a dozen separate regexps for each test in compiletest consumes significant amounts of CPU cycles. Using `RUSTC_FORCE_INCR_COMP_ARTIFACT_HEADER` stabilizes hashes calcuated for the individual tests so no test-dependent normalization is needed. Hashes for the standard library still change so some normalizations are still needed.
2021-12-13Include rustc version in `rustc_span::StableCrateId`pierwill-5/+5
Normalize symbol hashes in compiletest. Remove DefId sorting
2021-08-16Use note to point at bound introducing requirementEsteban Küber-12/+20
2021-07-06Revert "Revert "Update tests""bjorn3-5/+5
This reverts commit 715c68fe90c6f1d0b3004ad18f16e0811f209992.
2021-06-07Revert "Update tests"bjorn3-5/+5
This reverts commit c76b1b031753fc08a18a3906d828683476c1e595.
2021-05-30Update testsbjorn3-5/+5
2021-03-12Make def_key and HIR parenting consistent.Camille GILLOT-5/+5
2020-11-10Use Places to express closure/generator CapturesAman Arora-2/+2
Co-authored-by: Archer Zhang <archer.xn@gmail.com>
2020-10-11traits diagnostics: Don't print closure/generator upvar_tys tupleAman Arora-2/+0
Co-authored-by: Roxane Fruytier <roxane.fruytier@hotmail.com>
2020-10-11Always return tupled_upvar_tys for Closure/Generator consituent tysAman Arora-0/+1
Depending on if upvar_tys inferred or not, we were returning either an inference variable which later resolves to a tuple or else the upvar tys themselves Co-authored-by: Roxane Fruytier <roxane.fruytier@hotmail.com>
2020-10-11Replace tuple of infer vars for upvar_tys with single infer varRoxane-2/+3
This commit allows us to decide the number of captures required after completing capture ananysis, which is required as part of implementing RFC-2229. Co-authored-by: Aman Arora <me@aman-arora.com> Co-authored-by: Jenny Wills <wills.jenniferg@gmail.com>
2020-09-28Add tests for updated closure/generator printingAman Arora-0/+191
Co-authored-by: Dhruv Jauhar <dhruvjhr@gmail.com> Co-authored-by: Logan Mosier <logmosier@gmail.com>