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