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
..
2023-01-15 19:46:20 +00:00
2023-01-27 20:10:17 +00:00
2023-01-15 19:46:20 +00:00
2023-01-15 19:46:20 +00:00
2023-01-15 19:46:20 +00:00
2023-01-15 19:46:20 +00:00
2023-01-15 19:46:20 +00:00
2023-01-17 03:09:49 +00:00
2023-01-17 03:06:38 +00:00
2023-01-29 20:19:26 +01:00
2023-01-26 05:07:34 +00:00
2023-01-11 14:40:02 -08:00
2023-01-15 19:46:20 +00:00
2023-01-17 03:09:49 +00:00
2023-01-27 20:10:17 +00:00
2023-01-15 19:46:20 +00:00
2023-01-18 22:53:27 +08:00
2023-01-15 19:46:20 +00:00
2023-01-18 04:45:43 +00:00
2023-01-27 20:10:17 +00:00
2023-01-27 00:54:31 +01:00
2023-01-17 03:09:49 +00:00
2023-01-15 19:46:20 +00:00
2023-01-11 14:40:02 -08:00
2023-01-30 14:22:41 +00:00
2023-01-11 21:36:02 +00:00
2023-01-15 19:46:20 +00:00
2023-01-17 03:06:38 +00:00
2023-01-16 21:06:34 +09:00
2023-01-17 03:06:38 +00:00
2023-01-27 22:13:55 +01:00
2023-01-15 19:46:20 +00:00
2023-01-23 14:47:00 +00:00
2023-01-15 19:46:20 +00:00
2023-01-17 03:06:38 +00:00
2023-01-15 19:46:20 +00:00
2023-01-15 19:46:20 +00:00
2023-01-15 19:46:20 +00:00