]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/manual_strip.stderr
Auto merge of #9684 - kraktus:ref_option_ref, r=xFrednet
[rust.git] / tests / ui / manual_strip.stderr
index 1352a8713d4f8d31ef98b3ec74b9b8ebbf88667b..2191ccb85dd5d86fcd8712d64d0da45e2d8bdb2f 100644 (file)
@@ -4,20 +4,20 @@ error: stripping a prefix manually
 LL |         str::to_string(&s["ab".len()..]);
    |                        ^^^^^^^^^^^^^^^^
    |
-   = note: `-D clippy::manual-strip` implied by `-D warnings`
 note: the prefix was tested here
   --> $DIR/manual_strip.rs:6:5
    |
 LL |     if s.starts_with("ab") {
    |     ^^^^^^^^^^^^^^^^^^^^^^^
+   = note: `-D clippy::manual-strip` implied by `-D warnings`
 help: try using the `strip_prefix` method
    |
-LL |     if let Some(<stripped>) = s.strip_prefix("ab") {
-LL |         str::to_string(<stripped>);
-LL |         <stripped>.to_string();
+LL ~     if let Some(<stripped>) = s.strip_prefix("ab") {
+LL ~         str::to_string(<stripped>);
+LL ~         <stripped>.to_string();
 LL | 
-LL |         str::to_string(<stripped>);
-LL |         <stripped>.to_string();
+LL ~         str::to_string(<stripped>);
+LL ~         <stripped>.to_string();
    |
 
 error: stripping a suffix manually
@@ -33,12 +33,12 @@ LL |     if s.ends_with("bc") {
    |     ^^^^^^^^^^^^^^^^^^^^^
 help: try using the `strip_suffix` method
    |
-LL |     if let Some(<stripped>) = s.strip_suffix("bc") {
-LL |         str::to_string(<stripped>);
-LL |         <stripped>.to_string();
+LL ~     if let Some(<stripped>) = s.strip_suffix("bc") {
+LL ~         str::to_string(<stripped>);
+LL ~         <stripped>.to_string();
 LL | 
-LL |         str::to_string(<stripped>);
-LL |         <stripped>.to_string();
+LL ~         str::to_string(<stripped>);
+LL ~         <stripped>.to_string();
    |
 
 error: stripping a prefix manually
@@ -54,9 +54,9 @@ LL |     if s.starts_with('a') {
    |     ^^^^^^^^^^^^^^^^^^^^^^
 help: try using the `strip_prefix` method
    |
-LL |     if let Some(<stripped>) = s.strip_prefix('a') {
-LL |         str::to_string(<stripped>);
-LL |         <stripped>.to_string();
+LL ~     if let Some(<stripped>) = s.strip_prefix('a') {
+LL ~         str::to_string(<stripped>);
+LL ~         <stripped>.to_string();
    |
 
 error: stripping a prefix manually
@@ -72,8 +72,8 @@ LL |     if s.starts_with(prefix) {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
 help: try using the `strip_prefix` method
    |
-LL |     if let Some(<stripped>) = s.strip_prefix(prefix) {
-LL |         str::to_string(<stripped>);
+LL ~     if let Some(<stripped>) = s.strip_prefix(prefix) {
+LL ~         str::to_string(<stripped>);
    |
 
 error: stripping a prefix manually
@@ -89,9 +89,9 @@ LL |     if s.starts_with(PREFIX) {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
 help: try using the `strip_prefix` method
    |
-LL |     if let Some(<stripped>) = s.strip_prefix(PREFIX) {
-LL |         str::to_string(<stripped>);
-LL |         str::to_string(<stripped>);
+LL ~     if let Some(<stripped>) = s.strip_prefix(PREFIX) {
+LL ~         str::to_string(<stripped>);
+LL ~         str::to_string(<stripped>);
    |
 
 error: stripping a prefix manually
@@ -107,8 +107,8 @@ LL |     if TARGET.starts_with(prefix) {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 help: try using the `strip_prefix` method
    |
-LL |     if let Some(<stripped>) = TARGET.strip_prefix(prefix) {
-LL |         str::to_string(<stripped>);
+LL ~     if let Some(<stripped>) = TARGET.strip_prefix(prefix) {
+LL ~         str::to_string(<stripped>);
    |
 
 error: stripping a prefix manually
@@ -124,8 +124,8 @@ LL |     if s1.starts_with("ab") {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^
 help: try using the `strip_prefix` method
    |
-LL |     if let Some(<stripped>) = s1.strip_prefix("ab") {
-LL |         <stripped>.to_uppercase();
+LL ~     if let Some(<stripped>) = s1.strip_prefix("ab") {
+LL ~         <stripped>.to_uppercase();
    |
 
 error: aborting due to 7 previous errors