summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/needless_raw_string_hashes.stderr
blob: 017160b1a421d93551fda6d8b323e1fd6c07245c (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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
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: to override `-D warnings` add `#[allow(clippy::needless_raw_string_hashes)]`
help: remove all the hashes around the string literal
   |
LL -     r#"\aaa"#;
LL +     r"\aaa";
   |

error: unnecessary hashes around raw string literal
  --> $DIR/needless_raw_string_hashes.rs:7:5
   |
LL |     r##"Hello "world"!"##;
   |     ^^^^^^^^^^^^^^^^^^^^^
   |
help: remove one hash from both sides of the string literal
   |
LL -     r##"Hello "world"!"##;
LL +     r#"Hello "world"!"#;
   |

error: unnecessary hashes around raw string literal
  --> $DIR/needless_raw_string_hashes.rs:8:5
   |
LL |     r######" "### "## "# "######;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
help: remove 2 hashes from both sides of the string literal
   |
LL -     r######" "### "## "# "######;
LL +     r####" "### "## "# "####;
   |

error: unnecessary hashes around raw string literal
  --> $DIR/needless_raw_string_hashes.rs:9:5
   |
LL |     r######" "aa" "# "## "######;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
help: remove 3 hashes from both sides of the string 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 byte string literal
   |
LL -     br#"\aaa"#;
LL +     br"\aaa";
   |

error: unnecessary hashes around raw string literal
  --> $DIR/needless_raw_string_hashes.rs:11:5
   |
LL |     br##"Hello "world"!"##;
   |     ^^^^^^^^^^^^^^^^^^^^^^
   |
help: remove one hash from both sides of the byte string literal
   |
LL -     br##"Hello "world"!"##;
LL +     br#"Hello "world"!"#;
   |

error: unnecessary hashes around raw string literal
  --> $DIR/needless_raw_string_hashes.rs:12:5
   |
LL |     br######" "### "## "# "######;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
help: remove 2 hashes from both sides of the byte string literal
   |
LL -     br######" "### "## "# "######;
LL +     br####" "### "## "# "####;
   |

error: unnecessary hashes around raw string literal
  --> $DIR/needless_raw_string_hashes.rs:13:5
   |
LL |     br######" "aa" "# "## "######;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
help: remove 3 hashes from both sides of the byte string 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 C string 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 C string 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 C string 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 C string 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 string literal
   |
LL ~     r"
LL |         \a
LL |         multiline
LL |         string
LL ~     ";
   |

error: unnecessary hashes around raw string literal
  --> $DIR/needless_raw_string_hashes.rs:25:5
   |
LL |     r###"rust"###;
   |     ^^^^^^^^^^^^^
   |
help: remove all the hashes around the string literal
   |
LL -     r###"rust"###;
LL +     r"rust";
   |

error: unnecessary hashes around raw string literal
  --> $DIR/needless_raw_string_hashes.rs:26:5
   |
LL |     r#"hello world"#;
   |     ^^^^^^^^^^^^^^^^
   |
help: remove all the hashes around the string literal
   |
LL -     r#"hello world"#;
LL +     r"hello world";
   |

error: aborting due to 15 previous errors