fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
5.5 KiB199 linesraw
1error: trivial regex
2  --> $DIR/regex.rs:19:45
3   |
4LL |     let pipe_in_wrong_position = Regex::new("|");
5   |                                             ^^^
6   |
7   = help: the regex is unlikely to be useful as it is
8   = note: `-D clippy::trivial-regex` implied by `-D warnings`
9   = help: to override `-D warnings` add `#[allow(clippy::trivial_regex)]`
10
11error: trivial regex
12  --> $DIR/regex.rs:21:60
13   |
14LL |     let pipe_in_wrong_position_builder = RegexBuilder::new("|");
15   |                                                            ^^^
16   |
17   = help: the regex is unlikely to be useful as it is
18
19error: regex syntax error: invalid character class range, the start must be <= the end
20  --> $DIR/regex.rs:23:42
21   |
22LL |     let wrong_char_ranice = Regex::new("[z-a]");
23   |                                          ^^^
24   |
25   = note: `-D clippy::invalid-regex` implied by `-D warnings`
26   = help: to override `-D warnings` add `#[allow(clippy::invalid_regex)]`
27
28error: regex syntax error: invalid character class range, the start must be <= the end
29  --> $DIR/regex.rs:26:37
30   |
31LL |     let some_unicode = Regex::new("[é-è]");
32   |                                     ^^^
33
34error: regex parse error:
35           (
36           ^
37       error: unclosed group
38  --> $DIR/regex.rs:29:33
39   |
40LL |     let some_regex = Regex::new(OPENING_PAREN);
41   |                                 ^^^^^^^^^^^^^
42
43error: trivial regex
44  --> $DIR/regex.rs:31:53
45   |
46LL |     let binary_pipe_in_wrong_position = BRegex::new("|");
47   |                                                     ^^^
48   |
49   = help: the regex is unlikely to be useful as it is
50
51error: regex parse error:
52           (
53           ^
54       error: unclosed group
55  --> $DIR/regex.rs:33:41
56   |
57LL |     let some_binary_regex = BRegex::new(OPENING_PAREN);
58   |                                         ^^^^^^^^^^^^^
59
60error: regex parse error:
61           (
62           ^
63       error: unclosed group
64  --> $DIR/regex.rs:34:56
65   |
66LL |     let some_binary_regex_builder = BRegexBuilder::new(OPENING_PAREN);
67   |                                                        ^^^^^^^^^^^^^
68
69error: regex parse error:
70           (
71           ^
72       error: unclosed group
73  --> $DIR/regex.rs:46:37
74   |
75LL |     let set_error = RegexSet::new(&[OPENING_PAREN, r"[a-z]+\.(com|org|net)"]);
76   |                                     ^^^^^^^^^^^^^
77
78error: regex parse error:
79           (
80           ^
81       error: unclosed group
82  --> $DIR/regex.rs:47:39
83   |
84LL |     let bset_error = BRegexSet::new(&[OPENING_PAREN, r"[a-z]+\.(com|org|net)"]);
85   |                                       ^^^^^^^^^^^^^
86
87error: regex parse error:
88           \b\c
89             ^^
90       error: unrecognized escape sequence
91  --> $DIR/regex.rs:54:42
92   |
93LL |     let escaped_string_span = Regex::new("\\b\\c");
94   |                                          ^^^^^^^^
95   |
96   = help: consider using a raw string literal: `r".."`
97
98error: regex syntax error: duplicate flag
99  --> $DIR/regex.rs:56:34
100   |
101LL |     let aux_span = Regex::new("(?ixi)");
102   |                                  ^ ^
103
104error: regex syntax error: pattern can match invalid UTF-8
105  --> $DIR/regex.rs:62:53
106   |
107LL |     let invalid_utf8_should_lint = Regex::new("(?-u).");
108   |                                                     ^
109
110error: trivial regex
111  --> $DIR/regex.rs:67:33
112   |
113LL |     let trivial_eq = Regex::new("^foobar$");
114   |                                 ^^^^^^^^^^
115   |
116   = help: consider using `==` on `str`s
117
118error: trivial regex
119  --> $DIR/regex.rs:70:48
120   |
121LL |     let trivial_eq_builder = RegexBuilder::new("^foobar$");
122   |                                                ^^^^^^^^^^
123   |
124   = help: consider using `==` on `str`s
125
126error: trivial regex
127  --> $DIR/regex.rs:73:42
128   |
129LL |     let trivial_starts_with = Regex::new("^foobar");
130   |                                          ^^^^^^^^^
131   |
132   = help: consider using `str::starts_with`
133
134error: trivial regex
135  --> $DIR/regex.rs:76:40
136   |
137LL |     let trivial_ends_with = Regex::new("foobar$");
138   |                                        ^^^^^^^^^
139   |
140   = help: consider using `str::ends_with`
141
142error: trivial regex
143  --> $DIR/regex.rs:79:39
144   |
145LL |     let trivial_contains = Regex::new("foobar");
146   |                                       ^^^^^^^^
147   |
148   = help: consider using `str::contains`
149
150error: trivial regex
151  --> $DIR/regex.rs:82:39
152   |
153LL |     let trivial_contains = Regex::new(NOT_A_REAL_REGEX);
154   |                                       ^^^^^^^^^^^^^^^^
155   |
156   = help: consider using `str::contains`
157
158error: trivial regex
159  --> $DIR/regex.rs:85:40
160   |
161LL |     let trivial_backslash = Regex::new("a\\.b");
162   |                                        ^^^^^^^
163   |
164   = help: consider using `str::contains`
165
166error: trivial regex
167  --> $DIR/regex.rs:89:36
168   |
169LL |     let trivial_empty = Regex::new("");
170   |                                    ^^
171   |
172   = help: the regex is unlikely to be useful as it is
173
174error: trivial regex
175  --> $DIR/regex.rs:92:36
176   |
177LL |     let trivial_empty = Regex::new("^");
178   |                                    ^^^
179   |
180   = help: the regex is unlikely to be useful as it is
181
182error: trivial regex
183  --> $DIR/regex.rs:95:36
184   |
185LL |     let trivial_empty = Regex::new("^$");
186   |                                    ^^^^
187   |
188   = help: consider using `str::is_empty`
189
190error: trivial regex
191  --> $DIR/regex.rs:98:44
192   |
193LL |     let binary_trivial_empty = BRegex::new("^$");
194   |                                            ^^^^
195   |
196   = help: consider using `str::is_empty`
197
198error: aborting due to 24 previous errors
199