rust/tests/ui/deriving
Nicholas Nethercote 75e87d1f81 Fix syntax in -Zunpretty-expanded output for derived PartialEq.
If you do `derive(PartialEq)` on a packed struct, the output shown by
`-Zunpretty=expanded` includes expressions like this:
```
{ self.x } == { other.x }
```
This is invalid syntax. This doesn't break compilation, because the AST
nodes are constructed within the compiler. But it does mean anyone using
`-Zunpretty=expanded` output as a guide for hand-written impls could get
a nasty surprise.

This commit fixes things by instead using this form:
```
({ self.x }) == ({ other.x })
```
2023-02-01 15:14:05 +11:00
..
auxiliary
derive-no-std.rs
derive-partialord-correctness.rs
deriving-all-codegen.rs Allow more deriving on packed structs. 2023-01-30 12:00:42 +11:00
deriving-all-codegen.stderr Allow more deriving on packed structs. 2023-01-30 12:00:42 +11:00
deriving-all-codegen.stdout Fix syntax in -Zunpretty-expanded output for derived PartialEq. 2023-02-01 15:14:05 +11:00
deriving-associated-types.rs
deriving-bounds.rs
deriving-clone-array.rs
deriving-clone-enum.rs
deriving-clone-generic-enum.rs
deriving-clone-generic-struct.rs
deriving-clone-generic-tuple-struct.rs
deriving-clone-struct.rs
deriving-clone-tuple-struct.rs
deriving-cmp-generic-enum.rs
deriving-cmp-generic-struct-enum.rs
deriving-cmp-generic-struct.rs
deriving-cmp-generic-tuple-struct.rs
deriving-cmp-shortcircuit.rs
deriving-copyclone.rs
deriving-default-box.rs
deriving-default-enum.rs
deriving-enum-single-variant.rs
deriving-eq-ord-boxed-slice.rs
deriving-hash.rs
deriving-in-fn.rs
deriving-in-macro.rs
deriving-meta-multiple.rs
deriving-meta.rs
deriving-self-lifetime-totalord-totaleq.rs
deriving-show-2.rs
deriving-show.rs
deriving-via-extension-c-enum.rs
deriving-via-extension-enum.rs
deriving-via-extension-hash-enum.rs
deriving-via-extension-hash-struct.rs
deriving-via-extension-struct-empty.rs
deriving-via-extension-struct-like-enum-variant.rs
deriving-via-extension-struct-tuple.rs
deriving-via-extension-struct.rs
deriving-via-extension-type-params.rs
deriving-with-helper.rs
deriving-with-repr-packed.rs
issue-3935.rs
issue-6341.rs
issue-19358.rs
issue-58319.rs
issue-89188-gat-hrtb.rs
issue-103157.rs
issue-103157.stderr
issue-105101.rs
issue-105101.stderr