2023-07-02 07:35:19 -05:00
|
|
|
error: unnecessary hashes around raw string literal
|
2023-10-31 19:16:34 -05:00
|
|
|
--> $DIR/needless_raw_string_hashes.rs:5:5
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
2023-09-12 11:13:53 -05:00
|
|
|
LL | r#"\aaa"#;
|
|
|
|
| ^^^^^^^^^
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
= note: `-D clippy::needless-raw-string-hashes` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::needless_raw_string_hashes)]`
|
2023-10-06 10:35:45 -05:00
|
|
|
help: remove all the hashes around the string literal
|
2023-09-12 11:13:53 -05:00
|
|
|
|
|
|
|
|
LL - r#"\aaa"#;
|
|
|
|
LL + r"\aaa";
|
|
|
|
|
|
|
|
|
|
|
|
|
error: unnecessary hashes around raw string literal
|
2023-10-31 19:16:34 -05:00
|
|
|
--> $DIR/needless_raw_string_hashes.rs:6:5
|
2023-09-12 11:13:53 -05:00
|
|
|
|
|
|
|
|
LL | r##"Hello "world"!"##;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-10-06 10:35:45 -05:00
|
|
|
help: remove one hash from both sides of the string literal
|
2023-09-12 11:13:53 -05:00
|
|
|
|
|
|
|
|
LL - r##"Hello "world"!"##;
|
|
|
|
LL + r#"Hello "world"!"#;
|
|
|
|
|
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
error: unnecessary hashes around raw string literal
|
2023-10-31 19:16:34 -05:00
|
|
|
--> $DIR/needless_raw_string_hashes.rs:7:5
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | r######" "### "## "# "######;
|
2023-09-12 11:13:53 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-10-06 10:35:45 -05:00
|
|
|
help: remove 2 hashes from both sides of the string literal
|
2023-09-12 11:13:53 -05:00
|
|
|
|
|
|
|
|
LL - r######" "### "## "# "######;
|
|
|
|
LL + r####" "### "## "# "####;
|
|
|
|
|
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
error: unnecessary hashes around raw string literal
|
2023-10-31 19:16:34 -05:00
|
|
|
--> $DIR/needless_raw_string_hashes.rs:8:5
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | r######" "aa" "# "## "######;
|
2023-09-12 11:13:53 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-10-06 10:35:45 -05:00
|
|
|
help: remove 3 hashes from both sides of the string literal
|
2023-09-12 11:13:53 -05:00
|
|
|
|
|
|
|
|
LL - r######" "aa" "# "## "######;
|
|
|
|
LL + r###" "aa" "# "## "###;
|
|
|
|
|
|
|
|
|
|
|
|
|
error: unnecessary hashes around raw string literal
|
2023-10-31 19:16:34 -05:00
|
|
|
--> $DIR/needless_raw_string_hashes.rs:9:5
|
2023-09-12 11:13:53 -05:00
|
|
|
|
|
|
|
|
LL | br#"\aaa"#;
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
2023-10-06 10:35:45 -05:00
|
|
|
help: remove all the hashes around the byte string literal
|
2023-09-12 11:13:53 -05:00
|
|
|
|
|
|
|
|
LL - br#"\aaa"#;
|
|
|
|
LL + br"\aaa";
|
|
|
|
|
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
error: unnecessary hashes around raw string literal
|
2023-10-31 19:16:34 -05:00
|
|
|
--> $DIR/needless_raw_string_hashes.rs:10:5
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | br##"Hello "world"!"##;
|
2023-09-12 11:13:53 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-10-06 10:35:45 -05:00
|
|
|
help: remove one hash from both sides of the byte string literal
|
2023-09-12 11:13:53 -05:00
|
|
|
|
|
|
|
|
LL - br##"Hello "world"!"##;
|
|
|
|
LL + br#"Hello "world"!"#;
|
|
|
|
|
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
error: unnecessary hashes around raw string literal
|
2023-10-31 19:16:34 -05:00
|
|
|
--> $DIR/needless_raw_string_hashes.rs:11:5
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | br######" "### "## "# "######;
|
2023-09-12 11:13:53 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-10-06 10:35:45 -05:00
|
|
|
help: remove 2 hashes from both sides of the byte string literal
|
2023-09-12 11:13:53 -05:00
|
|
|
|
|
|
|
|
LL - br######" "### "## "# "######;
|
|
|
|
LL + br####" "### "## "# "####;
|
|
|
|
|
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
error: unnecessary hashes around raw string literal
|
2023-10-31 19:16:34 -05:00
|
|
|
--> $DIR/needless_raw_string_hashes.rs:12:5
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | br######" "aa" "# "## "######;
|
2023-09-12 11:13:53 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-10-06 10:35:45 -05:00
|
|
|
help: remove 3 hashes from both sides of the byte string literal
|
2023-09-12 11:13:53 -05:00
|
|
|
|
|
|
|
|
LL - br######" "aa" "# "## "######;
|
|
|
|
LL + br###" "aa" "# "## "###;
|
|
|
|
|
|
|
|
|
|
|
|
|
error: unnecessary hashes around raw string literal
|
2023-10-31 19:16:34 -05:00
|
|
|
--> $DIR/needless_raw_string_hashes.rs:13:5
|
2023-09-12 11:13:53 -05:00
|
|
|
|
|
|
|
|
LL | cr#"\aaa"#;
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
2023-10-06 10:35:45 -05:00
|
|
|
help: remove all the hashes around the C string literal
|
2023-09-12 11:13:53 -05:00
|
|
|
|
|
|
|
|
LL - cr#"\aaa"#;
|
|
|
|
LL + cr"\aaa";
|
|
|
|
|
|
|
|
|
|
|
|
|
error: unnecessary hashes around raw string literal
|
2023-10-31 19:16:34 -05:00
|
|
|
--> $DIR/needless_raw_string_hashes.rs:14:5
|
2023-09-12 11:13:53 -05:00
|
|
|
|
|
|
|
|
LL | cr##"Hello "world"!"##;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-10-06 10:35:45 -05:00
|
|
|
help: remove one hash from both sides of the C string literal
|
2023-09-12 11:13:53 -05:00
|
|
|
|
|
|
|
|
LL - cr##"Hello "world"!"##;
|
|
|
|
LL + cr#"Hello "world"!"#;
|
|
|
|
|
|
|
|
|
|
|
|
|
error: unnecessary hashes around raw string literal
|
2023-10-31 19:16:34 -05:00
|
|
|
--> $DIR/needless_raw_string_hashes.rs:15:5
|
2023-09-12 11:13:53 -05:00
|
|
|
|
|
|
|
|
LL | cr######" "### "## "# "######;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-10-06 10:35:45 -05:00
|
|
|
help: remove 2 hashes from both sides of the C string literal
|
2023-09-12 11:13:53 -05:00
|
|
|
|
|
|
|
|
LL - cr######" "### "## "# "######;
|
|
|
|
LL + cr####" "### "## "# "####;
|
|
|
|
|
|
|
|
|
|
|
|
|
error: unnecessary hashes around raw string literal
|
2023-10-31 19:16:34 -05:00
|
|
|
--> $DIR/needless_raw_string_hashes.rs:16:5
|
2023-09-12 11:13:53 -05:00
|
|
|
|
|
|
|
|
LL | cr######" "aa" "# "## "######;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-10-06 10:35:45 -05:00
|
|
|
help: remove 3 hashes from both sides of the C string literal
|
2023-09-12 11:13:53 -05:00
|
|
|
|
|
|
|
|
LL - cr######" "aa" "# "## "######;
|
|
|
|
LL + cr###" "aa" "# "## "###;
|
|
|
|
|
|
|
|
|
|
|
|
|
error: unnecessary hashes around raw string literal
|
2023-10-31 19:16:34 -05:00
|
|
|
--> $DIR/needless_raw_string_hashes.rs:18:5
|
2023-09-12 11:13:53 -05:00
|
|
|
|
|
|
|
|
LL | / r#"
|
|
|
|
LL | | \a
|
|
|
|
LL | | multiline
|
|
|
|
LL | | string
|
|
|
|
LL | | "#;
|
|
|
|
| |______^
|
|
|
|
|
|
2023-10-06 10:35:45 -05:00
|
|
|
help: remove all the hashes around the string literal
|
2023-09-12 11:13:53 -05:00
|
|
|
|
|
|
|
|
LL ~ r"
|
|
|
|
LL | \a
|
|
|
|
LL | multiline
|
|
|
|
LL | string
|
|
|
|
LL ~ ";
|
|
|
|
|
|
2023-07-02 07:35:19 -05:00
|
|
|
|
2023-09-25 04:28:58 -05:00
|
|
|
error: unnecessary hashes around raw string literal
|
2023-10-31 19:16:34 -05:00
|
|
|
--> $DIR/needless_raw_string_hashes.rs:24:5
|
2023-09-25 04:28:58 -05:00
|
|
|
|
|
|
|
|
LL | r###"rust"###;
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
2023-10-06 10:35:45 -05:00
|
|
|
help: remove all the hashes around the string literal
|
2023-09-25 04:28:58 -05:00
|
|
|
|
|
|
|
|
LL - r###"rust"###;
|
|
|
|
LL + r"rust";
|
|
|
|
|
|
|
|
|
|
|
|
|
error: unnecessary hashes around raw string literal
|
2023-10-31 19:16:34 -05:00
|
|
|
--> $DIR/needless_raw_string_hashes.rs:25:5
|
2023-09-25 04:28:58 -05:00
|
|
|
|
|
|
|
|
LL | r#"hello world"#;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-10-06 10:35:45 -05:00
|
|
|
help: remove all the hashes around the string literal
|
2023-09-25 04:28:58 -05:00
|
|
|
|
|
|
|
|
LL - r#"hello world"#;
|
|
|
|
LL + r"hello world";
|
|
|
|
|
|
|
|
|
|
|
|
|
error: aborting due to 15 previous errors
|
2023-07-02 07:35:19 -05:00
|
|
|
|