about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/needless_raw_string.stderr
blob: 99c60b10b21be143d2016699d56d5e15f47c4d00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
error: unnecessary raw string literal
  --> tests/ui/needless_raw_string.rs:5:5
   |
LL |     r#"aaa"#;
   |     ^^^^^^^^
   |
   = note: `-D clippy::needless-raw-strings` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::needless_raw_strings)]`
help: use a plain string literal instead
   |
LL -     r#"aaa"#;
LL +     "aaa";
   |

error: unnecessary raw string literal
  --> tests/ui/needless_raw_string.rs:9:5
   |
LL |     br#"aaa"#;
   |     ^^^^^^^^^
   |
help: use a plain byte string literal instead
   |
LL -     br#"aaa"#;
LL +     b"aaa";
   |

error: unnecessary raw string literal
  --> tests/ui/needless_raw_string.rs:13:5
   |
LL |     cr#"aaa"#;
   |     ^^^^^^^^^
   |
help: use a plain C string literal instead
   |
LL -     cr#"aaa"#;
LL +     c"aaa";
   |

error: unnecessary raw string literal
  --> tests/ui/needless_raw_string.rs:18:5
   |
LL | /     r#"
LL | |
LL | |         a
LL | |         multiline
LL | |         string
LL | |     "#;
   | |______^
   |
help: use a plain string literal instead
   |
LL ~     "
LL |
...
LL |         string
LL ~     ";
   |

error: unnecessary raw string literal
  --> tests/ui/needless_raw_string.rs:25:5
   |
LL |     r"no hashes";
   |     ^^^^^^^^^^^^
   |
help: use a plain string literal instead
   |
LL -     r"no hashes";
LL +     "no hashes";
   |

error: unnecessary raw string literal
  --> tests/ui/needless_raw_string.rs:27:5
   |
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
  --> tests/ui/needless_raw_string.rs:29:5
   |
LL |     cr"no hashes";
   |     ^^^^^^^^^^^^^
   |
help: use a plain C string literal instead
   |
LL -     cr"no hashes";
LL +     c"no hashes";
   |

error: unnecessary raw string literal
  --> tests/ui/needless_raw_string.rs:34: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:36: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:41: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