summaryrefslogtreecommitdiff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-02-02 06:52:14 +0100
committerGitHub <noreply@github.com>2023-02-02 06:52:14 +0100
commit150b9d753bea74a0b76d9bcd971ac323ede1d14a (patch)
tree406d3a1464306b1d4ddab2b8f0a0bbd1faf6a7c9 /tests/rustdoc-js-std/parser-errors.js
parentf838fa87b233fe01ccc669dd3d996df35a4895bc (diff)
parent75e87d1f81290052a07fe85e3809d48a46613fb1 (diff)
downloadrust-150b9d753bea74a0b76d9bcd971ac323ede1d14a.tar.gz
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``
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions