11error: trivial regex
2- --> tests/ui/regex.rs:19 :45
2+ --> tests/ui/regex.rs:20 :45
33 |
44LL | let pipe_in_wrong_position = Regex::new("|");
55 | ^^^
@@ -9,15 +9,15 @@ LL | let pipe_in_wrong_position = Regex::new("|");
99 = help: to override `-D warnings` add `#[allow(clippy::trivial_regex)]`
1010
1111error: trivial regex
12- --> tests/ui/regex.rs:21 :60
12+ --> tests/ui/regex.rs:22 :60
1313 |
1414LL | let pipe_in_wrong_position_builder = RegexBuilder::new("|");
1515 | ^^^
1616 |
1717 = help: the regex is unlikely to be useful as it is
1818
1919error: regex syntax error: invalid character class range, the start must be <= the end
20- --> tests/ui/regex.rs:23 :42
20+ --> tests/ui/regex.rs:24 :42
2121 |
2222LL | let wrong_char_ranice = Regex::new("[z-a]");
2323 | ^^^
@@ -26,7 +26,7 @@ LL | let wrong_char_ranice = Regex::new("[z-a]");
2626 = help: to override `-D warnings` add `#[allow(clippy::invalid_regex)]`
2727
2828error: regex syntax error: invalid character class range, the start must be <= the end
29- --> tests/ui/regex.rs:26 :37
29+ --> tests/ui/regex.rs:27 :37
3030 |
3131LL | let some_unicode = Regex::new("[é-è]");
3232 | ^^^
@@ -35,13 +35,13 @@ error: regex parse error:
3535 (
3636 ^
3737 error: unclosed group
38- --> tests/ui/regex.rs:29 :33
38+ --> tests/ui/regex.rs:30 :33
3939 |
4040LL | let some_regex = Regex::new(OPENING_PAREN);
4141 | ^^^^^^^^^^^^^
4242
4343error: trivial regex
44- --> tests/ui/regex.rs:31 :53
44+ --> tests/ui/regex.rs:32 :53
4545 |
4646LL | let binary_pipe_in_wrong_position = BRegex::new("|");
4747 | ^^^
@@ -52,7 +52,7 @@ error: regex parse error:
5252 (
5353 ^
5454 error: unclosed group
55- --> tests/ui/regex.rs:33 :41
55+ --> tests/ui/regex.rs:34 :41
5656 |
5757LL | let some_binary_regex = BRegex::new(OPENING_PAREN);
5858 | ^^^^^^^^^^^^^
@@ -61,7 +61,7 @@ error: regex parse error:
6161 (
6262 ^
6363 error: unclosed group
64- --> tests/ui/regex.rs:34 :56
64+ --> tests/ui/regex.rs:35 :56
6565 |
6666LL | let some_binary_regex_builder = BRegexBuilder::new(OPENING_PAREN);
6767 | ^^^^^^^^^^^^^
@@ -70,7 +70,7 @@ error: regex parse error:
7070 (
7171 ^
7272 error: unclosed group
73- --> tests/ui/regex.rs:46 :37
73+ --> tests/ui/regex.rs:47 :37
7474 |
7575LL | let set_error = RegexSet::new(&[OPENING_PAREN, r"[a-z]+\.(com|org|net)"]);
7676 | ^^^^^^^^^^^^^
@@ -79,7 +79,7 @@ error: regex parse error:
7979 (
8080 ^
8181 error: unclosed group
82- --> tests/ui/regex.rs:47 :39
82+ --> tests/ui/regex.rs:48 :39
8383 |
8484LL | let bset_error = BRegexSet::new(&[OPENING_PAREN, r"[a-z]+\.(com|org|net)"]);
8585 | ^^^^^^^^^^^^^
@@ -88,107 +88,107 @@ error: regex parse error:
8888 \b\c
8989 ^^
9090 error: unrecognized escape sequence
91- --> tests/ui/regex.rs:54 :42
91+ --> tests/ui/regex.rs:55 :42
9292 |
9393LL | let escaped_string_span = Regex::new("\\b\\c");
9494 | ^^^^^^^^
9595 |
9696 = help: consider using a raw string literal: `r".."`
9797
9898error: regex syntax error: duplicate flag
99- --> tests/ui/regex.rs:56 :34
99+ --> tests/ui/regex.rs:57 :34
100100 |
101101LL | let aux_span = Regex::new("(?ixi)");
102102 | ^ ^
103103
104104error: regex syntax error: pattern can match invalid UTF-8
105- --> tests/ui/regex.rs:62 :53
105+ --> tests/ui/regex.rs:63 :53
106106 |
107107LL | let invalid_utf8_should_lint = Regex::new("(?-u).");
108108 | ^
109109
110110error: trivial regex
111- --> tests/ui/regex.rs:67 :33
111+ --> tests/ui/regex.rs:68 :33
112112 |
113113LL | let trivial_eq = Regex::new("^foobar$");
114114 | ^^^^^^^^^^
115115 |
116116 = help: consider using `==` on `str`s
117117
118118error: trivial regex
119- --> tests/ui/regex.rs:70 :48
119+ --> tests/ui/regex.rs:71 :48
120120 |
121121LL | let trivial_eq_builder = RegexBuilder::new("^foobar$");
122122 | ^^^^^^^^^^
123123 |
124124 = help: consider using `==` on `str`s
125125
126126error: trivial regex
127- --> tests/ui/regex.rs:73 :42
127+ --> tests/ui/regex.rs:74 :42
128128 |
129129LL | let trivial_starts_with = Regex::new("^foobar");
130130 | ^^^^^^^^^
131131 |
132132 = help: consider using `str::starts_with`
133133
134134error: trivial regex
135- --> tests/ui/regex.rs:76 :40
135+ --> tests/ui/regex.rs:77 :40
136136 |
137137LL | let trivial_ends_with = Regex::new("foobar$");
138138 | ^^^^^^^^^
139139 |
140140 = help: consider using `str::ends_with`
141141
142142error: trivial regex
143- --> tests/ui/regex.rs:79 :39
143+ --> tests/ui/regex.rs:80 :39
144144 |
145145LL | let trivial_contains = Regex::new("foobar");
146146 | ^^^^^^^^
147147 |
148148 = help: consider using `str::contains`
149149
150150error: trivial regex
151- --> tests/ui/regex.rs:82 :39
151+ --> tests/ui/regex.rs:83 :39
152152 |
153153LL | let trivial_contains = Regex::new(NOT_A_REAL_REGEX);
154154 | ^^^^^^^^^^^^^^^^
155155 |
156156 = help: consider using `str::contains`
157157
158158error: trivial regex
159- --> tests/ui/regex.rs:85 :40
159+ --> tests/ui/regex.rs:86 :40
160160 |
161161LL | let trivial_backslash = Regex::new("a\\.b");
162162 | ^^^^^^^
163163 |
164164 = help: consider using `str::contains`
165165
166166error: trivial regex
167- --> tests/ui/regex.rs:89 :36
167+ --> tests/ui/regex.rs:90 :36
168168 |
169169LL | let trivial_empty = Regex::new("");
170170 | ^^
171171 |
172172 = help: the regex is unlikely to be useful as it is
173173
174174error: trivial regex
175- --> tests/ui/regex.rs:92 :36
175+ --> tests/ui/regex.rs:93 :36
176176 |
177177LL | let trivial_empty = Regex::new("^");
178178 | ^^^
179179 |
180180 = help: the regex is unlikely to be useful as it is
181181
182182error: trivial regex
183- --> tests/ui/regex.rs:95 :36
183+ --> tests/ui/regex.rs:96 :36
184184 |
185185LL | let trivial_empty = Regex::new("^$");
186186 | ^^^^
187187 |
188188 = help: consider using `str::is_empty`
189189
190190error: trivial regex
191- --> tests/ui/regex.rs:98 :44
191+ --> tests/ui/regex.rs:99 :44
192192 |
193193LL | let binary_trivial_empty = BRegex::new("^$");
194194 | ^^^^
0 commit comments