]> git.proxmox.com Git - rustc.git/blobdiff - src/tools/clippy/tests/ui/branches_sharing_code/shared_at_bottom.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / branches_sharing_code / shared_at_bottom.stderr
index e3c1bbee994238afed1c34a98822c82a029205b1..5e1a68d216ea8bf22fb2ba9a17d0bf90bf1982f2 100644 (file)
@@ -12,8 +12,8 @@ note: the lint level is defined here
    |
 LL | #![deny(clippy::if_same_then_else, clippy::branches_sharing_code)]
    |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-   = note: The end suggestion probably needs some adjustments to use the expression result correctly
-help: consider moving the end statements out like this
+   = note: the end suggestion probably needs some adjustments to use the expression result correctly
+help: consider moving these statements after the if
    |
 LL ~     }
 LL +     let result = false;
@@ -28,7 +28,7 @@ LL | /         println!("Same end of block");
 LL | |     }
    | |_____^
    |
-help: consider moving the end statements out like this
+help: consider moving these statements after the if
    |
 LL ~     }
 LL +     println!("Same end of block");
@@ -44,7 +44,7 @@ LL | |         );
 LL | |     }
    | |_____^
    |
-help: consider moving the end statements out like this
+help: consider moving these statements after the if
    |
 LL ~     }
 LL +     println!(
@@ -60,7 +60,7 @@ LL | /             println!("Hello World");
 LL | |         }
    | |_________^
    |
-help: consider moving the end statements out like this
+help: consider moving these statements after the if
    |
 LL ~         }
 LL +         println!("Hello World");
@@ -75,8 +75,8 @@ LL | |         // I'm expecting a note about this
 LL | |     }
    | |_____^
    |
-   = warning: Some moved values might need to be renamed to avoid wrong references
-help: consider moving the end statements out like this
+   = warning: some moved values might need to be renamed to avoid wrong references
+help: consider moving these statements after the if
    |
 LL ~     }
 LL +     let later_used_value = "A string value";
@@ -91,8 +91,8 @@ LL | |         println!("This is the new simple_example: {}", simple_examples);
 LL | |     }
    | |_____^
    |
-   = warning: Some moved values might need to be renamed to avoid wrong references
-help: consider moving the end statements out like this
+   = warning: some moved values might need to be renamed to avoid wrong references
+help: consider moving these statements after the if
    |
 LL ~     }
 LL +     let simple_examples = "I now identify as a &str :)";
@@ -106,8 +106,8 @@ LL | /         x << 2
 LL | |     };
    | |_____^
    |
-   = note: The end suggestion probably needs some adjustments to use the expression result correctly
-help: consider moving the end statements out like this
+   = note: the end suggestion probably needs some adjustments to use the expression result correctly
+help: consider moving these statements after the if
    |
 LL ~     }
 LL ~     x << 2;
@@ -120,8 +120,8 @@ LL | /         x * 4
 LL | |     }
    | |_____^
    |
-   = note: The end suggestion probably needs some adjustments to use the expression result correctly
-help: consider moving the end statements out like this
+   = note: the end suggestion probably needs some adjustments to use the expression result correctly
+help: consider moving these statements after the if
    |
 LL ~     }
 LL +     x * 4
@@ -133,7 +133,7 @@ error: all if blocks contain the same code at the end
 LL |     if x == 17 { b = 1; a = 0x99; } else { a = 0x99; }
    |                                            ^^^^^^^^^^^
    |
-help: consider moving the end statements out like this
+help: consider moving these statements after the if
    |
 LL ~     if x == 17 { b = 1; a = 0x99; } else { }
 LL +     a = 0x99;