2023-07-02 07:35:19 -05:00
|
|
|
error: unnecessary hashes around raw string literal
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/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
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/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
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/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
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/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
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/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
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/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
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/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
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/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
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/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
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/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
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/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
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/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
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/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
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/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
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/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";
|
|
|
|
|
|
|
|
|
|
2024-10-05 08:58:30 -05:00
|
|
|
error: unnecessary hashes around raw string literal
|
|
|
|
--> tests/ui/needless_raw_string_hashes.rs:30:14
|
|
|
|
|
|
|
|
|
LL | println!(r#"SELECT * FROM posts"#);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: remove all the hashes around the string literal
|
|
|
|
|
|
|
|
|
LL - println!(r#"SELECT * FROM posts"#);
|
|
|
|
LL + println!(r"SELECT * FROM posts");
|
|
|
|
|
|
|
|
|
|
|
|
|
error: unnecessary hashes around raw string literal
|
|
|
|
--> tests/ui/needless_raw_string_hashes.rs:31:14
|
|
|
|
|
|
|
|
|
LL | println!(r##"SELECT * FROM "posts""##);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: remove one hash from both sides of the string literal
|
|
|
|
|
|
|
|
|
LL - println!(r##"SELECT * FROM "posts""##);
|
|
|
|
LL + println!(r#"SELECT * FROM "posts""#);
|
|
|
|
|
|
|
|
|
|
|
|
|
error: unnecessary hashes around raw string literal
|
|
|
|
--> tests/ui/needless_raw_string_hashes.rs:32:14
|
|
|
|
|
|
|
|
|
LL | println!(r##"SELECT * FROM "posts""##);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: remove one hash from both sides of the string literal
|
|
|
|
|
|
|
|
|
LL - println!(r##"SELECT * FROM "posts""##);
|
|
|
|
LL + println!(r#"SELECT * FROM "posts""#);
|
|
|
|
|
|
|
|
|
|
|
|
|
error: aborting due to 18 previous errors
|
2023-07-02 07:35:19 -05:00
|
|
|
|