2023-07-02 07:35:19 -05:00
|
|
|
error: unnecessary raw string literal
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/needless_raw_string.rs:5:5
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | r#"aaa"#;
|
2023-09-12 11:13:53 -05:00
|
|
|
| ^^^^^^^^
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
= note: `-D clippy::needless-raw-strings` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::needless_raw_strings)]`
|
2023-10-06 10:35:45 -05:00
|
|
|
help: use a plain string literal instead
|
2023-09-12 11:13:53 -05:00
|
|
|
|
|
|
|
|
LL - r#"aaa"#;
|
|
|
|
LL + "aaa";
|
|
|
|
|
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
error: unnecessary raw string literal
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/needless_raw_string.rs:8:5
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | br#"aaa"#;
|
2023-09-12 11:13:53 -05:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
2023-10-06 10:35:45 -05:00
|
|
|
help: use a plain byte string literal instead
|
2023-09-12 11:13:53 -05:00
|
|
|
|
|
|
|
|
LL - br#"aaa"#;
|
|
|
|
LL + b"aaa";
|
|
|
|
|
|
|
|
|
|
|
|
|
error: unnecessary raw string literal
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/needless_raw_string.rs:11:5
|
2023-09-12 11:13:53 -05:00
|
|
|
|
|
|
|
|
LL | cr#"aaa"#;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
2023-10-06 10:35:45 -05:00
|
|
|
help: use a plain C string literal instead
|
2023-09-12 11:13:53 -05:00
|
|
|
|
|
|
|
|
LL - cr#"aaa"#;
|
|
|
|
LL + c"aaa";
|
|
|
|
|
|
|
|
|
|
|
|
|
error: unnecessary raw string literal
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/needless_raw_string.rs:15: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: use a plain string literal instead
|
2023-09-12 11:13:53 -05:00
|
|
|
|
|
|
|
|
LL ~ "
|
|
|
|
LL | a
|
|
|
|
LL | multiline
|
|
|
|
LL | string
|
|
|
|
LL ~ ";
|
|
|
|
|
|
2023-07-02 07:35:19 -05:00
|
|
|
|
2023-10-06 10:35:45 -05:00
|
|
|
error: unnecessary raw string literal
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/needless_raw_string.rs:21:5
|
2023-10-06 10:35:45 -05:00
|
|
|
|
|
|
|
|
LL | r"no hashes";
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: use a plain string literal instead
|
|
|
|
|
|
|
|
|
LL - r"no hashes";
|
|
|
|
LL + "no hashes";
|
|
|
|
|
|
|
|
|
|
|
|
|
error: unnecessary raw string literal
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/needless_raw_string.rs:22:5
|
2023-10-06 10:35:45 -05:00
|
|
|
|
|
|
|
|
LL | br"no hashes";
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: use a plain byte string literal instead
|
|
|
|
|
|
|
|
|
LL - br"no hashes";
|
|
|
|
LL + b"no hashes";
|
|
|
|
|
|
|
|
|
|
|
|
|
error: unnecessary raw string literal
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/needless_raw_string.rs:23:5
|
2023-10-06 10:35:45 -05:00
|
|
|
|
|
|
|
|
LL | cr"no hashes";
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: use a plain C string literal instead
|
|
|
|
|
|
|
|
|
LL - cr"no hashes";
|
|
|
|
LL + c"no hashes";
|
|
|
|
|
|
|
|
|
|
2024-10-05 08:58:30 -05:00
|
|
|
error: unnecessary raw string literal
|
|
|
|
--> tests/ui/needless_raw_string.rs:27:14
|
|
|
|
|
|
|
|
|
LL | println!(r"SELECT * FROM posts");
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: use a plain string literal instead
|
|
|
|
|
|
|
|
|
LL - println!(r"SELECT * FROM posts");
|
|
|
|
LL + println!("SELECT * FROM posts");
|
|
|
|
|
|
|
|
|
|
|
|
|
error: unnecessary raw string literal
|
|
|
|
--> tests/ui/needless_raw_string.rs:28:14
|
|
|
|
|
|
|
|
|
LL | println!(r#"SELECT * FROM posts"#);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: use a plain string literal instead
|
|
|
|
|
|
|
|
|
LL - println!(r#"SELECT * FROM posts"#);
|
|
|
|
LL + println!("SELECT * FROM posts");
|
|
|
|
|
|
|
|
|
|
|
|
|
error: unnecessary raw string literal
|
|
|
|
--> tests/ui/needless_raw_string.rs:32:20
|
|
|
|
|
|
|
|
|
LL | println!("{}", r"foobar".len());
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: use a plain string literal instead
|
|
|
|
|
|
|
|
|
LL - println!("{}", r"foobar".len());
|
|
|
|
LL + println!("{}", "foobar".len());
|
|
|
|
|
|
|
|
|
|
|
|
|
error: aborting due to 10 previous errors
|
2023-07-02 07:35:19 -05:00
|
|
|
|