about summary refs log tree commit diff
path: root/src/etc/generate-deriving-span-tests.py
AgeCommit message (Collapse)AuthorLines
2023-06-16Apply changes to fix python linting errorsTrevor Gross-1/+3
2020-12-29Remove `compile-fail` test suiteVadim Petrochenkov-1/+1
2020-04-02tests: remove ignore directives from tests that mention core/alloc/std spans.Eduard-Mihai Burtescu-3/+0
2020-02-08PEP8 format spacing, split import statementsChris Simpkins-6/+9
2019-12-28Ignore i586-unknown-linux-gnu and i586-unknown-musl in testsEsteban Küber-1/+3
2019-11-02also adjust ignore in generated testsRalf Jung-2/+1
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-0/+2
2019-02-08Remove initial newline from automatically generated span testsKonrad Borowski-1/+1
This change was accidentally introduced while removing license headers.
2019-02-08Remove code for updating copyright years in generate-deriving-span-testsKonrad Borowski-22/+6
It's no longer necessary, as there is no license header anymore.
2018-12-25Remove licensesMark Rousskov-20/+1
2018-10-29Rollup merge of #55447 - frewsxcv:frewsxcv-rename, r=Mark-SimulacrumPietro Albini-1/+1
Fix invalid path in generate-deriving-span-tests.py. This script broke after #53196 – the tests were moved.
2018-10-28Fix invalid path in generate-deriving-span-tests.py.Corey Farwell-1/+1
This script broke after #53196 after the tests were moved.
2018-10-28Remove unused sys import from generate-deriving-span-testsKonrad Borowski-1/+1
2018-04-25Use UFCSvarkor-1/+1
2018-04-25Ensure derive(PartialOrd) is no longer accidentally exponentialvarkor-1/+1
Previously, two comparison operations would be generated for each field, each of which could delegate to another derived PartialOrd. Now we use ordering and optional chaining to ensure each pair of fields is only compared once.
2018-04-15Auto merge of #49881 - varkor:partialord-opt, r=Manishearthbors-1/+1
Fix derive(PartialOrd) and optimise final field operation ```rust // Before (`lt` on 2-field struct) self.f1 < other.f1 || (!(other.f1 < self.f1) && (self.f2 < other.f2 || (!(other.f2 < self.f2) && (false) )) ) // After self.f1 < other.f1 || (!(other.f1 < self.f1) && self.f2 < other.f2 ) // Before (`le` on 2-field struct) self.f1 < other.f1 || (!(other.f1 < self.f1) && (self.f2 < other.f2 || (!(other.f2 < self.f2) && (true) )) ) // After self.f1 < other.f1 || (self.f1 == other.f1 && self.f2 <= other.f2 ) ``` (The big diff is mainly because of a past faulty rustfmt application that I corrected 😒) Fixes #49650 and fixes #49505.
2018-04-11Update compile-fail testsvarkor-1/+1
These now spit out errors for `<=` and `>=` as well.
2018-04-11Ignore copyright year when generating deriving span testsvarkor-6/+19
Previously, generate-deriving-span-tests.py would regenerate all the tests anew, even if they hadn't changed. This creates unnecessary diffs that only change the copyright year. Now we check to see if any of the content of the test has changed before generating the new one.
2017-10-25Update compile-fail tests for error message deduplication.Michael Woerister-2/+2
2016-11-28rustc: rework stability to be on-demand for type-directed lookup.Eduard Burtescu-4/+1
2015-10-18Remove #[derive(Show)]Vadim Petrochenkov-1/+1
2015-02-04Deprecate in-tree `rand`, `std::rand` and `#[derive(Rand)]`.Huon Wilson-2/+1
Use the crates.io crate `rand` (version 0.1 should be a drop in replacement for `std::rand`) and `rand_macros` (`#[derive_Rand]` should be a drop-in replacement). [breaking-change]
2015-01-17s/deriving/derives in Comments/DocsEarl St Sauver-8/+8
There are a large number of places that incorrectly refer to deriving in comments, instead of derives. Fixes #20984
2014-11-15Un-feature gate struct variantsSteven Fackler-1/+0
Struct variant field visibility is now inherited. Remove `pub` keywords from declarations. Closes #18641 [breaking-change]
2014-06-22Update few files after comparison traits renamingPiotr Jawniak-2/+2
There were still Total{Ord,Eq} in docs and src/etc
2014-05-30std: Rename {Eq,Ord} to Partial{Eq,Ord}Alex Crichton-3/+5
This is part of the ongoing renaming of the equality traits. See #12517 for more details. All code using Eq/Ord will temporarily need to move to Partial{Eq,Ord} or the Total{Eq,Ord} traits. The Total traits will soon be renamed to {Eq,Ord}. cc #12517 [breaking-change]
2014-04-14Use new attribute syntax in python files in src/etc too (#13478)Manish Goregaokar-1/+1
2014-03-20rm obsolete references to `DeepClone`Daniel Micay-1/+1
2014-03-14extra: Put the nail in the coffin, delete libextraAlex Crichton-1/+0
This commit shreds all remnants of libextra from the compiler and standard distribution. Two modules, c_vec/tempfile, were moved into libstd after some cleanup, and the other modules were moved to separate crates as seen fit. Closes #8784 Closes #12413 Closes #12576
2014-03-12Update users for the std::rand -> librand move.Huon Wilson-0/+1
2014-02-21std: rewrite Hash to make it more genericErick Tryzelaar-1/+2
This patch merges IterBytes and Hash traits, which clears up the confusion of using `#[deriving(IterBytes)]` to support hashing. Instead, it now is much easier to use the new `#[deriving(Hash)]` for making a type hashable with a stream hash. Furthermore, it supports custom non-stream-based hashers, such as if a value's hash was cached in a database. This does not yet replace the old IterBytes-hash with this new version.
2014-02-14extern mod => extern crateAlex Crichton-1/+1
This was previously implemented, and it just needed a snapshot to go through
2014-02-08Update docs and tests for #[deriving(Show)].Huon Wilson-1/+2
2014-02-05etc: add missing license boilerplatesAdrien Tétar-1/+1
2014-01-28syntax: make deriving have slightly less cryptic error messages.Huon Wilson-1/+1
This unfortunately changes an error like error: mismatched types: expected `&&NotClone` but found `&NotClone` into error: type `NotClone` does not implement any method in scope named `clone`
2014-01-27Add autogenerated tests for the spans of various derived traits.Huon Wilson-0/+131