about summary refs log tree commit diff
path: root/src/test/compile-fail/specialization
AgeCommit message (Collapse)AuthorLines
2020-12-29Remove `compile-fail` test suiteVadim Petrochenkov-22/+0
2020-06-16bless allRalf Jung-1/+1
2018-12-25Remove licensesMark Rousskov-10/+0
2018-10-08Reattach all grandchildren when constructing specialization graph.Masaki Hara-0/+32
This commit fixes the issue #50452.
2018-08-14Moved compile-fail tests to ui tests.David Wood-551/+0
2018-07-21do not overwrite child def-id in place but rather remove/insertNiko Matsakis-0/+42
When inserting a node N into the tree of impls, we sometimes find than an existing node C should be replaced with N. We used to overwrite C in place with the new def-id N -- but since the lists of def-ids are separated by simplified type, that could lead to N being inserted in the wrong place. This meant we might miss conflicts. We are now not trying to be so smart -- we remove C and then add N later.
2018-02-15add Self: Trait<..> inside the param_env of a default implGianni Ciccarelli-0/+8
2018-02-09add Self: Trait<..> inside the param_env of a default implGianni Ciccarelli-3/+3
2018-02-07support `default impl` for specializationGianni Ciccarelli-0/+18
not skipping any wfchecks on default impls
2018-02-07support `default impl` for specializationGianni Ciccarelli-409/+17
a default impl should never be considered as implementing the trait on its own -- regardless of whether it contains all items or not
2018-02-07 support `default impl` for specializationGianni Ciccarelli-0/+362
a `default impl` need not include all items from the trait a `default impl` alone does not mean that a type implements the trait
2018-01-14syntax: Rewrite parsing of implsVadim Petrochenkov-0/+23
Properly parse impls for the never type `!` Recover from missing `for` in `impl Trait for Type` Prohibit inherent default impls and default impls of auto traits Change wording in more diagnostics to use "auto traits" Some minor code cleanups in the parser
2018-01-13Adjust tests for removal of `impl Foo for .. {}`leonardo.yvens-28/+2
2017-12-07Migrate even more feature gate tests to uiest31-50/+0
We also rename some of the files to conform to the feature-gate-<feat_name>.rs pattern that is most common.
2017-11-03auto trait future compatibility lintleonardo.yvens-0/+3
2017-11-03[Syntax Breaking] Rename DefaultImpl to AutoImplleonardo.yvens-1/+1
DefaultImpl is a highly confusing name for what we now call auto impls, as in `impl Send for ..`. The name auto impl is not formally decided but for sanity anything is better than `DefaultImpl` which refers neither to `default impl` nor to `impl Default`.
2017-04-25 support `default impl` for specializationGianni Ciccarelli-0/+19
pr review
2017-04-24support `default impl` for specializationGianni Ciccarelli-0/+207
this commit implements the first step of the `default impl` feature: all items in a `default impl` are (implicitly) `default` and hence specializable. In order to test this feature I've copied all the tests provided for the `default` method implementation (in run-pass/specialization and compile-fail/specialization directories) and moved the `default` keyword from the item to the impl. See referenced issue for further info
2017-04-14Implement RFC 1268Sean Griffin-4/+4
This patch allows overlap to occur between any two impls of a trait for traits which have no associated items. Several compile-fail tests around coherence had to be changed to add at least one item to the trait they test against. Ref #29864
2017-01-12Mark even more tests as gate testsest31-0/+4
Now, no feature outside of the whitelist is without a test marked as its gate test.
2016-04-12rustbuild: Migrate tidy checks to RustAlex Crichton-0/+0
This commit rewrites all of the tidy checks we have, namely: * featureck * errorck * tidy * binaries into Rust under a new `tidy` tool inside of the `src/tools` directory. This at the same time deletes all the corresponding Python tidy checks so we can be sure to only have one source of truth for all the tidy checks. cc #31590
2016-03-14Test fixes, added README for testsAaron Turon-4/+29
2016-03-14Move tests to dedicated subdirectoriesAaron Turon-0/+308