about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/example/std_example.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-10-28 18:46:28 +0000
committerbors <bors@rust-lang.org>2023-10-28 18:46:28 +0000
commit5852ca84433b87b95916ec226784a11091f58af1 (patch)
treebed38934f05e171c280bd1a31820816fd94b6629 /compiler/rustc_codegen_gcc/example/std_example.rs
parentf8409ef85fe3906f1bcec94337da3fce53171b81 (diff)
parent1ed100144028cd08dcdc3c17475ab5cfce8629d1 (diff)
downloadrust-5852ca84433b87b95916ec226784a11091f58af1.tar.gz
rust-5852ca84433b87b95916ec226784a11091f58af1.zip
Auto merge of #11724 - rust-lang:fix-11559, r=blyxyas
Fix missing parenthesis in suboptimal floating point help

This fixes #11559 by adding a branch in the `Neg` implementation for `Sugg` that adds parentheses to keep precedence in order, then using that in the suggestion. I also removed some needless `.to_string()`s while I was at it.

---

changelog: none
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/std_example.rs')
0 files changed, 0 insertions, 0 deletions