@@ -99,93 +99,99 @@ error: regex syntax error: duplicate flag
9999LL | let aux_span = Regex::new("(?ixi)");
100100 | ^ ^
101101
102+ error: regex syntax error: pattern can match invalid UTF-8
103+ --> $DIR/regex.rs:49:53
104+ |
105+ LL | let invalid_utf8_should_lint = Regex::new("(?-u).");
106+ | ^
107+
102108error: trivial regex
103- --> $DIR/regex.rs:48 :33
109+ --> $DIR/regex.rs:53 :33
104110 |
105111LL | let trivial_eq = Regex::new("^foobar$");
106112 | ^^^^^^^^^^
107113 |
108114 = help: consider using `==` on `str`s
109115
110116error: trivial regex
111- --> $DIR/regex.rs:50 :48
117+ --> $DIR/regex.rs:55 :48
112118 |
113119LL | let trivial_eq_builder = RegexBuilder::new("^foobar$");
114120 | ^^^^^^^^^^
115121 |
116122 = help: consider using `==` on `str`s
117123
118124error: trivial regex
119- --> $DIR/regex.rs:52 :42
125+ --> $DIR/regex.rs:57 :42
120126 |
121127LL | let trivial_starts_with = Regex::new("^foobar");
122128 | ^^^^^^^^^
123129 |
124130 = help: consider using `str::starts_with`
125131
126132error: trivial regex
127- --> $DIR/regex.rs:54 :40
133+ --> $DIR/regex.rs:59 :40
128134 |
129135LL | let trivial_ends_with = Regex::new("foobar$");
130136 | ^^^^^^^^^
131137 |
132138 = help: consider using `str::ends_with`
133139
134140error: trivial regex
135- --> $DIR/regex.rs:56 :39
141+ --> $DIR/regex.rs:61 :39
136142 |
137143LL | let trivial_contains = Regex::new("foobar");
138144 | ^^^^^^^^
139145 |
140146 = help: consider using `str::contains`
141147
142148error: trivial regex
143- --> $DIR/regex.rs:58 :39
149+ --> $DIR/regex.rs:63 :39
144150 |
145151LL | let trivial_contains = Regex::new(NOT_A_REAL_REGEX);
146152 | ^^^^^^^^^^^^^^^^
147153 |
148154 = help: consider using `str::contains`
149155
150156error: trivial regex
151- --> $DIR/regex.rs:60 :40
157+ --> $DIR/regex.rs:65 :40
152158 |
153159LL | let trivial_backslash = Regex::new("a/.b");
154160 | ^^^^^^^
155161 |
156162 = help: consider using `str::contains`
157163
158164error: trivial regex
159- --> $DIR/regex.rs:63 :36
165+ --> $DIR/regex.rs:68 :36
160166 |
161167LL | let trivial_empty = Regex::new("");
162168 | ^^
163169 |
164170 = help: the regex is unlikely to be useful as it is
165171
166172error: trivial regex
167- --> $DIR/regex.rs:65 :36
173+ --> $DIR/regex.rs:70 :36
168174 |
169175LL | let trivial_empty = Regex::new("^");
170176 | ^^^
171177 |
172178 = help: the regex is unlikely to be useful as it is
173179
174180error: trivial regex
175- --> $DIR/regex.rs:67 :36
181+ --> $DIR/regex.rs:72 :36
176182 |
177183LL | let trivial_empty = Regex::new("^$");
178184 | ^^^^
179185 |
180186 = help: consider using `str::is_empty`
181187
182188error: trivial regex
183- --> $DIR/regex.rs:69 :44
189+ --> $DIR/regex.rs:74 :44
184190 |
185191LL | let binary_trivial_empty = BRegex::new("^$");
186192 | ^^^^
187193 |
188194 = help: consider using `str::is_empty`
189195
190- error: aborting due to 23 previous errors
196+ error: aborting due to 24 previous errors
191197
0 commit comments