summary refs log tree commit diff
path: root/src/test/ui/parser
diff options
context:
space:
mode:
authorNoah Lev <camelidcamel@gmail.com>2022-02-21 18:52:47 -0800
committerNoah Lev <camelidcamel@gmail.com>2022-03-23 22:31:57 -0700
commit725cde42d5673d1957ad58c6b2fada28a6a4edbd (patch)
tree52ae46999082cf7e0682b2849bee18c72146334c /src/test/ui/parser
parentef74796178edd2cf28f17109083cbd235808f88d (diff)
downloadrust-725cde42d5673d1957ad58c6b2fada28a6a4edbd.tar.gz
rust-725cde42d5673d1957ad58c6b2fada28a6a4edbd.zip
Use `multipart_suggestions`
This records that the suggestions are mutually-exclusive (i.e., only one
should be applied).
Diffstat (limited to 'src/test/ui/parser')
-rw-r--r--src/test/ui/parser/increment-autofix.stderr8
-rw-r--r--src/test/ui/parser/increment-notfixed.stderr4
2 files changed, 0 insertions, 12 deletions
diff --git a/src/test/ui/parser/increment-autofix.stderr b/src/test/ui/parser/increment-autofix.stderr
index 04fd68ed85b..5bf4b2751de 100644
--- a/src/test/ui/parser/increment-autofix.stderr
+++ b/src/test/ui/parser/increment-autofix.stderr
@@ -8,8 +8,6 @@ help: use `+= 1` instead
    |
 LL |     { let tmp = i; i += 1; tmp };
    |     +++++++++++  ~~~~~~~~~~~~~~~
-help: or, if you don't need to use it as an expression, change it to this
-   |
 LL -     i++;
 LL +     i += 1;
    | 
@@ -24,8 +22,6 @@ help: use `+= 1` instead
    |
 LL |     while { let tmp = i; i += 1; tmp } < 5 {
    |           +++++++++++  ~~~~~~~~~~~~~~~
-help: or, if you don't need to use it as an expression, change it to this
-   |
 LL -     while i++ < 5 {
 LL +     while i += 1 < 5 {
    | 
@@ -40,8 +36,6 @@ help: use `+= 1` instead
    |
 LL |     { let tmp_ = tmp; tmp += 1; tmp_ };
    |     ++++++++++++    ~~~~~~~~~~~~~~~~~~
-help: or, if you don't need to use it as an expression, change it to this
-   |
 LL -     tmp++;
 LL +     tmp += 1;
    | 
@@ -56,8 +50,6 @@ help: use `+= 1` instead
    |
 LL |     while { let tmp_ = tmp; tmp += 1; tmp_ } < 5 {
    |           ++++++++++++    ~~~~~~~~~~~~~~~~~~
-help: or, if you don't need to use it as an expression, change it to this
-   |
 LL -     while tmp++ < 5 {
 LL +     while tmp += 1 < 5 {
    | 
diff --git a/src/test/ui/parser/increment-notfixed.stderr b/src/test/ui/parser/increment-notfixed.stderr
index c4c83b5113b..16ff42ca8b0 100644
--- a/src/test/ui/parser/increment-notfixed.stderr
+++ b/src/test/ui/parser/increment-notfixed.stderr
@@ -8,8 +8,6 @@ help: use `+= 1` instead
    |
 LL |     { let tmp = foo.bar.qux; foo.bar.qux += 1; tmp };
    |     +++++++++++            ~~~~~~~~~~~~~~~~~~~~~~~~~
-help: or, if you don't need to use it as an expression, change it to this
-   |
 LL -     foo.bar.qux++;
 LL +     foo.bar.qux += 1;
    | 
@@ -24,8 +22,6 @@ help: use `+= 1` instead
    |
 LL |     { let tmp = s.tmp; s.tmp += 1; tmp };
    |     +++++++++++      ~~~~~~~~~~~~~~~~~~~
-help: or, if you don't need to use it as an expression, change it to this
-   |
 LL -     s.tmp++;
 LL +     s.tmp += 1;
    |