about summary refs log tree commit diff
path: root/library/std/src/sys/pal/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-04-08 11:05:09 +0000
committerbors <bors@rust-lang.org>2024-04-08 11:05:09 +0000
commit2202493a67e8fd028a992cebd8e9e1fdc290d876 (patch)
treea66e39ec610f972c2d8bf20a55d9b8aa0c72cf00 /library/std/src/sys/pal/unix/stack_overflow.rs
parent1c9e96536bd369d67bf94d0f8b0c105960f0d400 (diff)
parent6a2cb33029928650700d94fd6b257f1029bb7eea (diff)
downloadrust-2202493a67e8fd028a992cebd8e9e1fdc290d876.tar.gz
rust-2202493a67e8fd028a992cebd8e9e1fdc290d876.zip
Auto merge of #12626 - folkertdev:incorrect-boolean-simplification, r=blyxyas
fix incorrect suggestion for `!(a as type >= b)`

fixes #12625

The expression  `!(a as type >= b)` got simplified to `a as type < b`, but because of rust's parsing rules that `<` is interpreted as a start of generic arguments for `type`.  This is fixed by recognizing this case and adding extra parens around the left-hand side of the comparison.

changelog: [`nonminimal_bool`]: fix incorrect suggestion for  `!(a as type >= b)`
Diffstat (limited to 'library/std/src/sys/pal/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions