@@ -56,113 +56,113 @@ error: regex syntax error on position 0: unclosed group
56
56
| ^^^^^^^^^^^^^
57
57
58
58
error: regex syntax error on position 0: unclosed group
59
- --> $DIR/regex.rs:40 :9
59
+ --> $DIR/regex.rs:41 :9
60
60
|
61
- 40 | OPENING_PAREN,
61
+ 41 | OPENING_PAREN,
62
62
| ^^^^^^^^^^^^^
63
63
64
64
error: regex syntax error on position 0: unclosed group
65
- --> $DIR/regex.rs:44 :9
65
+ --> $DIR/regex.rs:45 :9
66
66
|
67
- 44 | OPENING_PAREN,
67
+ 45 | OPENING_PAREN,
68
68
| ^^^^^^^^^^^^^
69
69
70
70
error: regex syntax error: unrecognized escape sequence
71
- --> $DIR/regex.rs:48 :45
71
+ --> $DIR/regex.rs:49 :45
72
72
|
73
- 48 | let raw_string_error = Regex::new(r"[...//...]");
73
+ 49 | let raw_string_error = Regex::new(r"[...//...]");
74
74
| ^^
75
75
76
76
error: regex syntax error: unrecognized escape sequence
77
- --> $DIR/regex.rs:49 :46
77
+ --> $DIR/regex.rs:50 :46
78
78
|
79
- 49 | let raw_string_error = Regex::new(r#"[...//...]"#);
79
+ 50 | let raw_string_error = Regex::new(r#"[...//...]"#);
80
80
| ^^
81
81
82
82
error: trivial regex
83
- --> $DIR/regex.rs:53 :33
83
+ --> $DIR/regex.rs:54 :33
84
84
|
85
- 53 | let trivial_eq = Regex::new("^foobar$");
85
+ 54 | let trivial_eq = Regex::new("^foobar$");
86
86
| ^^^^^^^^^^
87
87
|
88
88
= help: consider using `==` on `str`s
89
89
90
90
error: trivial regex
91
- --> $DIR/regex.rs:55 :48
91
+ --> $DIR/regex.rs:56 :48
92
92
|
93
- 55 | let trivial_eq_builder = RegexBuilder::new("^foobar$");
93
+ 56 | let trivial_eq_builder = RegexBuilder::new("^foobar$");
94
94
| ^^^^^^^^^^
95
95
|
96
96
= help: consider using `==` on `str`s
97
97
98
98
error: trivial regex
99
- --> $DIR/regex.rs:57 :42
99
+ --> $DIR/regex.rs:58 :42
100
100
|
101
- 57 | let trivial_starts_with = Regex::new("^foobar");
101
+ 58 | let trivial_starts_with = Regex::new("^foobar");
102
102
| ^^^^^^^^^
103
103
|
104
104
= help: consider using `str::starts_with`
105
105
106
106
error: trivial regex
107
- --> $DIR/regex.rs:59 :40
107
+ --> $DIR/regex.rs:60 :40
108
108
|
109
- 59 | let trivial_ends_with = Regex::new("foobar$");
109
+ 60 | let trivial_ends_with = Regex::new("foobar$");
110
110
| ^^^^^^^^^
111
111
|
112
112
= help: consider using `str::ends_with`
113
113
114
114
error: trivial regex
115
- --> $DIR/regex.rs:61 :39
115
+ --> $DIR/regex.rs:62 :39
116
116
|
117
- 61 | let trivial_contains = Regex::new("foobar");
117
+ 62 | let trivial_contains = Regex::new("foobar");
118
118
| ^^^^^^^^
119
119
|
120
120
= help: consider using `str::contains`
121
121
122
122
error: trivial regex
123
- --> $DIR/regex.rs:63 :39
123
+ --> $DIR/regex.rs:64 :39
124
124
|
125
- 63 | let trivial_contains = Regex::new(NOT_A_REAL_REGEX);
125
+ 64 | let trivial_contains = Regex::new(NOT_A_REAL_REGEX);
126
126
| ^^^^^^^^^^^^^^^^
127
127
|
128
128
= help: consider using `str::contains`
129
129
130
130
error: trivial regex
131
- --> $DIR/regex.rs:65 :40
131
+ --> $DIR/regex.rs:66 :40
132
132
|
133
- 65 | let trivial_backslash = Regex::new("a/.b");
133
+ 66 | let trivial_backslash = Regex::new("a/.b");
134
134
| ^^^^^^^
135
135
|
136
136
= help: consider using `str::contains`
137
137
138
138
error: trivial regex
139
- --> $DIR/regex.rs:68 :36
139
+ --> $DIR/regex.rs:69 :36
140
140
|
141
- 68 | let trivial_empty = Regex::new("");
141
+ 69 | let trivial_empty = Regex::new("");
142
142
| ^^
143
143
|
144
144
= help: the regex is unlikely to be useful as it is
145
145
146
146
error: trivial regex
147
- --> $DIR/regex.rs:70 :36
147
+ --> $DIR/regex.rs:71 :36
148
148
|
149
- 70 | let trivial_empty = Regex::new("^");
149
+ 71 | let trivial_empty = Regex::new("^");
150
150
| ^^^
151
151
|
152
152
= help: the regex is unlikely to be useful as it is
153
153
154
154
error: trivial regex
155
- --> $DIR/regex.rs:72 :36
155
+ --> $DIR/regex.rs:73 :36
156
156
|
157
- 72 | let trivial_empty = Regex::new("^$");
157
+ 73 | let trivial_empty = Regex::new("^$");
158
158
| ^^^^
159
159
|
160
160
= help: consider using `str::is_empty`
161
161
162
162
error: trivial regex
163
- --> $DIR/regex.rs:74 :44
163
+ --> $DIR/regex.rs:75 :44
164
164
|
165
- 74 | let binary_trivial_empty = BRegex::new("^$");
165
+ 75 | let binary_trivial_empty = BRegex::new("^$");
166
166
| ^^^^
167
167
|
168
168
= help: consider using `str::is_empty`
0 commit comments