2023-08-27 08:55:55 -05:00
|
|
|
error: unnecessary hashes around raw string literal
|
|
|
|
--> $DIR/needless_raw_string_hashes.rs:6:5
|
|
|
|
|
|
|
|
|
LL | r#"\aaa"#;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::needless-raw-string-hashes` implied by `-D warnings`
|
|
|
|
help: remove all the hashes around the literal
|
|
|
|
|
|
|
|
|
LL - r#"\aaa"#;
|
|
|
|
LL + r"\aaa";
|
|
|
|
|
|
|
|
|
|
2023-07-02 07:35:19 -05:00
|
|
|
error: unnecessary hashes around raw string literal
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/needless_raw_string_hashes.rs:7:5
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | r##"Hello "world"!"##;
|
2023-08-27 08:55:55 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: remove one hash from both sides of the literal
|
|
|
|
|
|
|
|
|
LL - r##"Hello "world"!"##;
|
|
|
|
LL + r#"Hello "world"!"#;
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
error: unnecessary hashes around raw string literal
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/needless_raw_string_hashes.rs:8:5
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | r######" "### "## "# "######;
|
2023-08-27 08:55:55 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: remove 2 hashes from both sides of the literal
|
|
|
|
|
|
|
|
|
LL - r######" "### "## "# "######;
|
|
|
|
LL + r####" "### "## "# "####;
|
|
|
|
|
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
error: unnecessary hashes around raw string literal
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/needless_raw_string_hashes.rs:9:5
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | r######" "aa" "# "## "######;
|
2023-08-27 08:55:55 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: remove 3 hashes from both sides of the literal
|
|
|
|
|
|
|
|
|
LL - r######" "aa" "# "## "######;
|
|
|
|
LL + r###" "aa" "# "## "###;
|
|
|
|
|
|
|
|
|
|
|
|
|
error: unnecessary hashes around raw string literal
|
|
|
|
--> $DIR/needless_raw_string_hashes.rs:10:5
|
|
|
|
|
|
|
|
|
LL | br#"\aaa"#;
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: remove all the hashes around the literal
|
|
|
|
|
|
|
|
|
LL - br#"\aaa"#;
|
|
|
|
LL + br"\aaa";
|
|
|
|
|
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
error: unnecessary hashes around raw string literal
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/needless_raw_string_hashes.rs:11:5
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | br##"Hello "world"!"##;
|
2023-08-27 08:55:55 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: remove one hash from both sides of the literal
|
|
|
|
|
|
|
|
|
LL - br##"Hello "world"!"##;
|
|
|
|
LL + br#"Hello "world"!"#;
|
|
|
|
|
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
error: unnecessary hashes around raw string literal
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/needless_raw_string_hashes.rs:12:5
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | br######" "### "## "# "######;
|
2023-08-27 08:55:55 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: remove 2 hashes from both sides of the literal
|
|
|
|
|
|
|
|
|
LL - br######" "### "## "# "######;
|
|
|
|
LL + br####" "### "## "# "####;
|
|
|
|
|
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
error: unnecessary hashes around raw string literal
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/needless_raw_string_hashes.rs:13:5
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | br######" "aa" "# "## "######;
|
2023-08-27 08:55:55 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: remove 3 hashes from both sides of the literal
|
|
|
|
|
|
|
|
|
LL - br######" "aa" "# "## "######;
|
|
|
|
LL + br###" "aa" "# "## "###;
|
|
|
|
|
|
|
|
|
|
|
|
|
error: unnecessary hashes around raw string literal
|
|
|
|
--> $DIR/needless_raw_string_hashes.rs:14:5
|
|
|
|
|
|
|
|
|
LL | cr#"\aaa"#;
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: remove all the hashes around the literal
|
|
|
|
|
|
|
|
|
LL - cr#"\aaa"#;
|
|
|
|
LL + cr"\aaa";
|
|
|
|
|
|
|
|
|
|
|
|
|
error: unnecessary hashes around raw string literal
|
|
|
|
--> $DIR/needless_raw_string_hashes.rs:15:5
|
|
|
|
|
|
|
|
|
LL | cr##"Hello "world"!"##;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: remove one hash from both sides of the literal
|
|
|
|
|
|
|
|
|
LL - cr##"Hello "world"!"##;
|
|
|
|
LL + cr#"Hello "world"!"#;
|
|
|
|
|
|
|
|
|
|
|
|
|
error: unnecessary hashes around raw string literal
|
|
|
|
--> $DIR/needless_raw_string_hashes.rs:16:5
|
|
|
|
|
|
|
|
|
LL | cr######" "### "## "# "######;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: remove 2 hashes from both sides of the literal
|
|
|
|
|
|
|
|
|
LL - cr######" "### "## "# "######;
|
|
|
|
LL + cr####" "### "## "# "####;
|
|
|
|
|
|
|
|
|
|
|
|
|
error: unnecessary hashes around raw string literal
|
|
|
|
--> $DIR/needless_raw_string_hashes.rs:17:5
|
|
|
|
|
|
|
|
|
LL | cr######" "aa" "# "## "######;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: remove 3 hashes from both sides of the literal
|
|
|
|
|
|
|
|
|
LL - cr######" "aa" "# "## "######;
|
|
|
|
LL + cr###" "aa" "# "## "###;
|
|
|
|
|
|
|
|
|
|
|
|
|
error: unnecessary hashes around raw string literal
|
|
|
|
--> $DIR/needless_raw_string_hashes.rs:19:5
|
|
|
|
|
|
|
|
|
LL | / r#"
|
|
|
|
LL | | \a
|
|
|
|
LL | | multiline
|
|
|
|
LL | | string
|
|
|
|
LL | | "#;
|
|
|
|
| |______^
|
|
|
|
|
|
|
|
|
help: remove all the hashes around the literal
|
|
|
|
|
|
|
|
|
LL ~ r"
|
|
|
|
LL | \a
|
|
|
|
LL | multiline
|
|
|
|
LL | string
|
|
|
|
LL ~ ";
|
|
|
|
|
|
2023-07-02 07:35:19 -05:00
|
|
|
|
2023-08-27 08:55:55 -05:00
|
|
|
error: aborting due to 13 previous errors
|
2023-07-02 07:35:19 -05:00
|
|
|
|