]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/needless_raw_string_hashes.stderr
New upstream version 1.74.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / needless_raw_string_hashes.stderr
1 error: unnecessary hashes around raw string literal
2 --> $DIR/needless_raw_string_hashes.rs:6:5
3 |
4 LL | r#"\aaa"#;
5 | ^^^^^^^^^
6 |
7 = note: `-D clippy::needless-raw-string-hashes` implied by `-D warnings`
8 = help: to override `-D warnings` add `#[allow(clippy::needless_raw_string_hashes)]`
9 help: remove all the hashes around the literal
10 |
11 LL - r#"\aaa"#;
12 LL + r"\aaa";
13 |
14
15 error: unnecessary hashes around raw string literal
16 --> $DIR/needless_raw_string_hashes.rs:7:5
17 |
18 LL | r##"Hello "world"!"##;
19 | ^^^^^^^^^^^^^^^^^^^^^
20 |
21 help: remove one hash from both sides of the literal
22 |
23 LL - r##"Hello "world"!"##;
24 LL + r#"Hello "world"!"#;
25 |
26
27 error: unnecessary hashes around raw string literal
28 --> $DIR/needless_raw_string_hashes.rs:8:5
29 |
30 LL | r######" "### "## "# "######;
31 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
32 |
33 help: remove 2 hashes from both sides of the literal
34 |
35 LL - r######" "### "## "# "######;
36 LL + r####" "### "## "# "####;
37 |
38
39 error: unnecessary hashes around raw string literal
40 --> $DIR/needless_raw_string_hashes.rs:9:5
41 |
42 LL | r######" "aa" "# "## "######;
43 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44 |
45 help: remove 3 hashes from both sides of the literal
46 |
47 LL - r######" "aa" "# "## "######;
48 LL + r###" "aa" "# "## "###;
49 |
50
51 error: unnecessary hashes around raw string literal
52 --> $DIR/needless_raw_string_hashes.rs:10:5
53 |
54 LL | br#"\aaa"#;
55 | ^^^^^^^^^^
56 |
57 help: remove all the hashes around the literal
58 |
59 LL - br#"\aaa"#;
60 LL + br"\aaa";
61 |
62
63 error: unnecessary hashes around raw string literal
64 --> $DIR/needless_raw_string_hashes.rs:11:5
65 |
66 LL | br##"Hello "world"!"##;
67 | ^^^^^^^^^^^^^^^^^^^^^^
68 |
69 help: remove one hash from both sides of the literal
70 |
71 LL - br##"Hello "world"!"##;
72 LL + br#"Hello "world"!"#;
73 |
74
75 error: unnecessary hashes around raw string literal
76 --> $DIR/needless_raw_string_hashes.rs:12:5
77 |
78 LL | br######" "### "## "# "######;
79 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
80 |
81 help: remove 2 hashes from both sides of the literal
82 |
83 LL - br######" "### "## "# "######;
84 LL + br####" "### "## "# "####;
85 |
86
87 error: unnecessary hashes around raw string literal
88 --> $DIR/needless_raw_string_hashes.rs:13:5
89 |
90 LL | br######" "aa" "# "## "######;
91 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
92 |
93 help: remove 3 hashes from both sides of the literal
94 |
95 LL - br######" "aa" "# "## "######;
96 LL + br###" "aa" "# "## "###;
97 |
98
99 error: unnecessary hashes around raw string literal
100 --> $DIR/needless_raw_string_hashes.rs:14:5
101 |
102 LL | cr#"\aaa"#;
103 | ^^^^^^^^^^
104 |
105 help: remove all the hashes around the literal
106 |
107 LL - cr#"\aaa"#;
108 LL + cr"\aaa";
109 |
110
111 error: unnecessary hashes around raw string literal
112 --> $DIR/needless_raw_string_hashes.rs:15:5
113 |
114 LL | cr##"Hello "world"!"##;
115 | ^^^^^^^^^^^^^^^^^^^^^^
116 |
117 help: remove one hash from both sides of the literal
118 |
119 LL - cr##"Hello "world"!"##;
120 LL + cr#"Hello "world"!"#;
121 |
122
123 error: unnecessary hashes around raw string literal
124 --> $DIR/needless_raw_string_hashes.rs:16:5
125 |
126 LL | cr######" "### "## "# "######;
127 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
128 |
129 help: remove 2 hashes from both sides of the literal
130 |
131 LL - cr######" "### "## "# "######;
132 LL + cr####" "### "## "# "####;
133 |
134
135 error: unnecessary hashes around raw string literal
136 --> $DIR/needless_raw_string_hashes.rs:17:5
137 |
138 LL | cr######" "aa" "# "## "######;
139 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
140 |
141 help: remove 3 hashes from both sides of the literal
142 |
143 LL - cr######" "aa" "# "## "######;
144 LL + cr###" "aa" "# "## "###;
145 |
146
147 error: unnecessary hashes around raw string literal
148 --> $DIR/needless_raw_string_hashes.rs:19:5
149 |
150 LL | / r#"
151 LL | | \a
152 LL | | multiline
153 LL | | string
154 LL | | "#;
155 | |______^
156 |
157 help: remove all the hashes around the literal
158 |
159 LL ~ r"
160 LL | \a
161 LL | multiline
162 LL | string
163 LL ~ ";
164 |
165
166 error: unnecessary hashes around raw string literal
167 --> $DIR/needless_raw_string_hashes.rs:25:5
168 |
169 LL | r###"rust"###;
170 | ^^^^^^^^^^^^^
171 |
172 help: remove all the hashes around the literal
173 |
174 LL - r###"rust"###;
175 LL + r"rust";
176 |
177
178 error: unnecessary hashes around raw string literal
179 --> $DIR/needless_raw_string_hashes.rs:26:5
180 |
181 LL | r#"hello world"#;
182 | ^^^^^^^^^^^^^^^^
183 |
184 help: remove all the hashes around the literal
185 |
186 LL - r#"hello world"#;
187 LL + r"hello world";
188 |
189
190 error: aborting due to 15 previous errors
191