about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-05-03 07:05:51 +0000
committerbors <bors@rust-lang.org>2022-05-03 07:05:51 +0000
commit0ceacbe1854633ed3a4554d4b9ceab4223948b7b (patch)
tree383bb9046e10100d530077623bfad684a2371848 /tests/rustdoc-js-std/parser-errors.js
parent95f8b2600240022f0a82e703b35d4bc14a42eb1b (diff)
parent6ad810f94eec6b49af026d44c70066284120612d (diff)
downloadrust-0ceacbe1854633ed3a4554d4b9ceab4223948b7b.tar.gz
rust-0ceacbe1854633ed3a4554d4b9ceab4223948b7b.zip
Auto merge of #8730 - tamaroning:fix8724, r=Alexendoo
[FP] identity_op in front of if

fix #8724

changelog: FP: [`identity_op`]: is now allowed in front of if statements, blocks and other expressions where the suggestion would be invalid.

Resolved simular problems with blocks, mathces, and loops.
identity_op always does NOT suggest reducing `0 + if b { 1 } else { 2 } + 3` into  `if b { 1 } else { 2 } + 3` even in the case that the expression is in `f(expr)` or `let x = expr;` for now.
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions