@@ -99,93 +99,99 @@ error: regex syntax error: duplicate flag
99
99
LL | let aux_span = Regex::new("(?ixi)");
100
100
| ^ ^
101
101
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
+
102
108
error: trivial regex
103
- --> $DIR/regex.rs:48 :33
109
+ --> $DIR/regex.rs:53 :33
104
110
|
105
111
LL | let trivial_eq = Regex::new("^foobar$");
106
112
| ^^^^^^^^^^
107
113
|
108
114
= help: consider using `==` on `str`s
109
115
110
116
error: trivial regex
111
- --> $DIR/regex.rs:50 :48
117
+ --> $DIR/regex.rs:55 :48
112
118
|
113
119
LL | let trivial_eq_builder = RegexBuilder::new("^foobar$");
114
120
| ^^^^^^^^^^
115
121
|
116
122
= help: consider using `==` on `str`s
117
123
118
124
error: trivial regex
119
- --> $DIR/regex.rs:52 :42
125
+ --> $DIR/regex.rs:57 :42
120
126
|
121
127
LL | let trivial_starts_with = Regex::new("^foobar");
122
128
| ^^^^^^^^^
123
129
|
124
130
= help: consider using `str::starts_with`
125
131
126
132
error: trivial regex
127
- --> $DIR/regex.rs:54 :40
133
+ --> $DIR/regex.rs:59 :40
128
134
|
129
135
LL | let trivial_ends_with = Regex::new("foobar$");
130
136
| ^^^^^^^^^
131
137
|
132
138
= help: consider using `str::ends_with`
133
139
134
140
error: trivial regex
135
- --> $DIR/regex.rs:56 :39
141
+ --> $DIR/regex.rs:61 :39
136
142
|
137
143
LL | let trivial_contains = Regex::new("foobar");
138
144
| ^^^^^^^^
139
145
|
140
146
= help: consider using `str::contains`
141
147
142
148
error: trivial regex
143
- --> $DIR/regex.rs:58 :39
149
+ --> $DIR/regex.rs:63 :39
144
150
|
145
151
LL | let trivial_contains = Regex::new(NOT_A_REAL_REGEX);
146
152
| ^^^^^^^^^^^^^^^^
147
153
|
148
154
= help: consider using `str::contains`
149
155
150
156
error: trivial regex
151
- --> $DIR/regex.rs:60 :40
157
+ --> $DIR/regex.rs:65 :40
152
158
|
153
159
LL | let trivial_backslash = Regex::new("a/.b");
154
160
| ^^^^^^^
155
161
|
156
162
= help: consider using `str::contains`
157
163
158
164
error: trivial regex
159
- --> $DIR/regex.rs:63 :36
165
+ --> $DIR/regex.rs:68 :36
160
166
|
161
167
LL | let trivial_empty = Regex::new("");
162
168
| ^^
163
169
|
164
170
= help: the regex is unlikely to be useful as it is
165
171
166
172
error: trivial regex
167
- --> $DIR/regex.rs:65 :36
173
+ --> $DIR/regex.rs:70 :36
168
174
|
169
175
LL | let trivial_empty = Regex::new("^");
170
176
| ^^^
171
177
|
172
178
= help: the regex is unlikely to be useful as it is
173
179
174
180
error: trivial regex
175
- --> $DIR/regex.rs:67 :36
181
+ --> $DIR/regex.rs:72 :36
176
182
|
177
183
LL | let trivial_empty = Regex::new("^$");
178
184
| ^^^^
179
185
|
180
186
= help: consider using `str::is_empty`
181
187
182
188
error: trivial regex
183
- --> $DIR/regex.rs:69 :44
189
+ --> $DIR/regex.rs:74 :44
184
190
|
185
191
LL | let binary_trivial_empty = BRegex::new("^$");
186
192
| ^^^^
187
193
|
188
194
= help: consider using `str::is_empty`
189
195
190
- error: aborting due to 23 previous errors
196
+ error: aborting due to 24 previous errors
191
197
0 commit comments