about summary refs log tree commit diff
path: root/src/test/run-pass/impl-trait
AgeCommit message (Collapse)AuthorLines
2019-07-27tests: Move run-pass tests with naming conflicts to uiVadim Petrochenkov-69/+0
2019-07-27tests: Move run-pass tests without naming conflicts to uiVadim Petrochenkov-1195/+0
2019-05-25Add Step::sub_usizeTim Vermeulen-0/+4
2019-05-12Treat generators the same as closure for escaping lifetimesMatthew Jasper-0/+6
2019-04-22update tests for migrate mode by defaultMatthew Jasper-3/+0
2018-12-25Remove licensesMark Rousskov-160/+0
2018-12-19FIXME(45992) remove fixme since the lint is being testedNiv Kaminer-1/+0
2018-12-07Various minor/cosmetic improvements to codeAlexander Regueiro-43/+18
2018-12-05Rollup merge of #56119 - frewsxcv:frewsxcv-option-carrier, r=TimNNPietro Albini-4/+1
Utilize `?` instead of `return None`. None
2018-12-04Utilize `?` instead of `return None`.Corey Farwell-4/+1
2018-11-03fix test falloutAlex Burka-3/+3
2018-10-04Convert issue-49376.rs to compile-passJonas Schievink-63/+0
2018-10-04Convert existential-minimal.rs to compile-passJonas Schievink-23/+0
2018-10-04Convert impl-trait/issue-42479.rs to compile-passJonas Schievink-41/+0
2018-10-04Fix dead code lint for functions using impl TraitJonas Schievink-0/+54
2018-09-26Add `#![allow(..)]` as necessary to get re-migrated run-pass tests compiling ↵Felix S. Klock II-0/+1
with clean stderr again. Most were added mechanically.
2018-09-26Migrate `src/test/ui/run-pass/*` back to `src/test/run-pass/`.Felix S. Klock II-0/+1518
Fix #54047
2018-09-06Migrated remaining `src/test/run-pass/` subdirectories to ↵Felix S. Klock II-1482/+0
`src/test/ui/run-pass/`.
2018-07-13Use the correct visibilityOliver Schneider-1/+5
2018-06-13TidyOliver Schneider-1/+1
2018-06-13Various cleanupsOliver Schneider-0/+32
2018-06-08Add a sanity test for nesting other items inside the existential typeOliver Schneider-0/+22
2018-06-07Add existential type definitonsOliver Schneider-2/+34
2018-05-12Fix self referential impl Trait substitutionsleonardo.yvens-0/+29
A high impact bug because a lot of common traits use a `Self` substitution by default. Should be backported to beta. There was a check for this which wasn't catching all cases, it was made more robust. Fixes #49376 Fixes #50626 r? @petrochenkov
2018-04-15remove -Znll -- borrowck=mir implies nll nowNiko Matsakis-1/+1
2018-03-29Stabilize underscore lifetimesTaylor Cramer-1/+0
2018-03-26Stabilize conservative_impl_traitTaylor Cramer-12/+3
2018-03-26Stabilize universal_impl_traitTaylor Cramer-12/+1
2018-03-06make bounds on higher-kinded lifetimes a hard error in ast_validationRalf Jung-2/+2
Also move the check for not having type parameters into ast_validation. I was not sure what to do with compile-fail/issue-23046.rs: The issue looks like maybe the bounds actually played a role in triggering the ICE, but that seems unlikely given that the compiler seems to entirely ignore them. However, I couldn't find a testcase without the bounds, so I figured the best I could do is to just remove the bounds and make sure at least that keeps working.
2018-02-24Rollup merge of #48084 - cramertj:impl-trait-errors, r=nikomatsakisManish Goregaokar-6/+5
Error on nested impl Trait and path projections from impl Trait cc #34511 r? @nikomatsakis
2018-02-13Make nested impl Trait a hard errorTaylor Cramer-6/+5
2018-02-08fix nested impl trait lifetimesTaylor Cramer-0/+8
2018-01-09Use copy/clone closures to simplify calendar testTaylor Cramer-47/+14
2017-12-26Add tests to fixed ICEsSeiichi Uchida-0/+27
Closes #27078. Closes #27985. Closes #39848. Closes #42164. Closes #42479. Closes #45152. Closes #45662. Closes #45876. Closes #45965.
2017-12-21Add a feature gate for nested uses of `impl Trait`Taylor Cramer-1/+1
2017-12-21Auto merge of #46754 - cramertj:refactor-arg-impl, r=nikomatsakisbors-3/+2
Refactor argument-position impl Trait Fixes https://github.com/rust-lang/rust/issues/46685, https://github.com/rust-lang/rust/issues/46470 r? @nikomatsakis cc @chrisvittal
2017-12-20connect NLL type checker to the impl trait codeNiko Matsakis-0/+3
We now add the suitable `impl Trait` constraints.
2017-12-15Refactor argument-position impl TraitTaylor Cramer-3/+2
2017-12-12Implement impl Trait lifetime elisionTaylor Cramer-1/+25
2017-11-17Fix impl Trait Lifetime HandlingTaylor Cramer-0/+97
After this change, impl Trait existentials are desugared to a new `abstract type` definition paired with a set of lifetimes to apply. In-scope generics are included as parents of the `abstract type` generics. Parent regions are replaced with static, and parent regions referenced in the `impl Trait` type are duplicated at the end of the `abstract type`'s generics.
2017-11-15Disallow all impl Trait within Fn trait sugarChristopher Vittal-4/+6
We already disallowed them to be in the arg list, such as Fn(impl Debug), but now we disallow Fn() -> impl Debug. Also remove the ImplTraitContext argument from the function lower_parenthesized_parameter_data as it is now unused. Comment out part of test run-pass/impl-trait/xcrate.rs that now fails.
2017-11-15some tests featuring multiple bounds, other errorsNiko Matsakis-0/+23
2017-11-15add some more positive testsNiko Matsakis-0/+99
It'd be good to have a positive test for each case where it is allowed, I should think.
2017-11-15rename `equality-universal` to a more extensible naming schemeNiko Matsakis-0/+0
2017-11-15Add/Modify tests for argument position impl TraitChristopher Vittal-13/+57
2017-08-14Mark closures return via impl-trait as reachable.Michael Woerister-0/+12
2017-07-08Implement O(1)-time Iterator::nth for Range*Simon Sapin-13/+5
2017-02-25rustc_typeck: hook up collect and item/body check to on-demand.Eduard-Mihai Burtescu-13/+13
2016-11-28rustc_privacy: visit Ty instead of HIR types in EmbargoVisitor.Eduard-Mihai Burtescu-0/+32
2016-10-12Stabilise `?`Nick Cameron-1/+1
cc [`?` tracking issue](https://github.com/rust-lang/rust/issues/31436)