Files
third_party_rust_rust/tests
Matthias Krüger 150b9d753b Rollup merge of #107488 - nnethercote:fix-PartialEq-syntax, r=RalfJung
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 })
```

r? ``@RalfJung``
2023-02-02 06:52:14 +01:00
..
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-29 13:01:06 +01:00
2023-01-11 09:32:08 +00:00
2023-01-29 21:19:02 +00:00
2023-01-29 20:19:26 +01:00
2023-01-30 17:11:35 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00