summary refs log tree commit diff
path: root/src/test/ui/deriving/deriving-all-codegen.rs
AgeCommit message (Collapse)AuthorLines
2022-10-20Tweak `deriving-all-codegen.rs`.Nicholas Nethercote-1/+1
To include some `Option<>` fields of different types in a single enum. The test output is currently buggy, but the next commit will fix that. (cherry picked from commit dfa9d5c971d74aa5bdf6b99253fe4b7db39f9b67)
2022-07-11Add a fieldless enum with one variant to `deriving-all-codegen.rs`.Nicholas Nethercote-0/+7
Because the generated code is different to fieldless enum with multiple variants.
2022-07-11Add a non-`Copy` packed struct to `deriving-all-codegen.rs`.Nicholas Nethercote-2/+11
Because the generatedd code is different to a `Copy` packed struct.
2022-07-11Add a struct with an unsized field to the `deriving-all-codegen.rs` test.Nicholas Nethercote-1/+5
It's an interesting case, requiring the use of `&&` in `Debug::fmt`.
2022-07-04Add 0-variant and 1-variant enums to the `deriving-all-codegen.rs` test.Nicholas Nethercote-0/+10
Because they are interesting cases with their own code generation paths.
2022-07-04Add a union to the `deriving-all-codegen.rs` test.Nicholas Nethercote-0/+8
Because `derive(Clone)` on unions triggers special behaviour.
2022-07-04Add an interesting case to the `deriving-all-codegen.rs` test.Nicholas Nethercote-1/+6
2022-06-27Add a test checking the output of builtin derives.Nicholas Nethercote-0/+63