@@ -49,102 +49,102 @@ error: regex syntax error on position 0: unclosed parenthesis
49
49
| ^^^^^^^^^^^^^
50
50
51
51
error: regex syntax error on position 0: unclosed parenthesis
52
- --> $DIR/regex.rs:40:9
52
+ --> $DIR/regex.rs:33:37
53
53
|
54
- 40 | OPENING_PAREN,
55
- | ^^^^^^^^^^^^^
54
+ 33 | let set_error = RegexSet::new(&[ OPENING_PAREN, r"[a-z]+/.(com|org|net)"]);
55
+ | ^^^^^^^^^^^^^
56
56
57
57
error: regex syntax error on position 0: unclosed parenthesis
58
- --> $DIR/regex.rs:44:9
58
+ --> $DIR/regex.rs:34:39
59
59
|
60
- 44 | OPENING_PAREN,
61
- | ^^^^^^^^^^^^^
60
+ 34 | let bset_error = BRegexSet::new(&[ OPENING_PAREN, r"[a-z]+/.(com|org|net)"]);
61
+ | ^^^^^^^^^^^^^
62
62
63
63
error: trivial regex
64
- --> $DIR/regex.rs:50 :33
64
+ --> $DIR/regex.rs:38 :33
65
65
|
66
- 50 | let trivial_eq = Regex::new("^foobar$");
66
+ 38 | let trivial_eq = Regex::new("^foobar$");
67
67
| ^^^^^^^^^^
68
68
|
69
69
= note: `-D trivial-regex` implied by `-D warnings`
70
70
= help: consider using consider using `==` on `str`s
71
71
72
72
error: trivial regex
73
- --> $DIR/regex.rs:52 :48
73
+ --> $DIR/regex.rs:40 :48
74
74
|
75
- 52 | let trivial_eq_builder = RegexBuilder::new("^foobar$");
75
+ 40 | let trivial_eq_builder = RegexBuilder::new("^foobar$");
76
76
| ^^^^^^^^^^
77
77
|
78
78
= help: consider using consider using `==` on `str`s
79
79
80
80
error: trivial regex
81
- --> $DIR/regex.rs:54 :42
81
+ --> $DIR/regex.rs:42 :42
82
82
|
83
- 54 | let trivial_starts_with = Regex::new("^foobar");
83
+ 42 | let trivial_starts_with = Regex::new("^foobar");
84
84
| ^^^^^^^^^
85
85
|
86
86
= help: consider using consider using `str::starts_with`
87
87
88
88
error: trivial regex
89
- --> $DIR/regex.rs:56 :40
89
+ --> $DIR/regex.rs:44 :40
90
90
|
91
- 56 | let trivial_ends_with = Regex::new("foobar$");
91
+ 44 | let trivial_ends_with = Regex::new("foobar$");
92
92
| ^^^^^^^^^
93
93
|
94
94
= help: consider using consider using `str::ends_with`
95
95
96
96
error: trivial regex
97
- --> $DIR/regex.rs:58 :39
97
+ --> $DIR/regex.rs:46 :39
98
98
|
99
- 58 | let trivial_contains = Regex::new("foobar");
99
+ 46 | let trivial_contains = Regex::new("foobar");
100
100
| ^^^^^^^^
101
101
|
102
102
= help: consider using consider using `str::contains`
103
103
104
104
error: trivial regex
105
- --> $DIR/regex.rs:60 :39
105
+ --> $DIR/regex.rs:48 :39
106
106
|
107
- 60 | let trivial_contains = Regex::new(NOT_A_REAL_REGEX);
107
+ 48 | let trivial_contains = Regex::new(NOT_A_REAL_REGEX);
108
108
| ^^^^^^^^^^^^^^^^
109
109
|
110
110
= help: consider using consider using `str::contains`
111
111
112
112
error: trivial regex
113
- --> $DIR/regex.rs:62 :40
113
+ --> $DIR/regex.rs:50 :40
114
114
|
115
- 62 | let trivial_backslash = Regex::new("a//.b");
115
+ 50 | let trivial_backslash = Regex::new("a//.b");
116
116
| ^^^^^^^
117
117
|
118
118
= help: consider using consider using `str::contains`
119
119
120
120
error: trivial regex
121
- --> $DIR/regex.rs:65 :36
121
+ --> $DIR/regex.rs:53 :36
122
122
|
123
- 65 | let trivial_empty = Regex::new("");
123
+ 53 | let trivial_empty = Regex::new("");
124
124
| ^^
125
125
|
126
126
= help: consider using the regex is unlikely to be useful as it is
127
127
128
128
error: trivial regex
129
- --> $DIR/regex.rs:67 :36
129
+ --> $DIR/regex.rs:55 :36
130
130
|
131
- 67 | let trivial_empty = Regex::new("^");
131
+ 55 | let trivial_empty = Regex::new("^");
132
132
| ^^^
133
133
|
134
134
= help: consider using the regex is unlikely to be useful as it is
135
135
136
136
error: trivial regex
137
- --> $DIR/regex.rs:69 :36
137
+ --> $DIR/regex.rs:57 :36
138
138
|
139
- 69 | let trivial_empty = Regex::new("^$");
139
+ 57 | let trivial_empty = Regex::new("^$");
140
140
| ^^^^
141
141
|
142
142
= help: consider using consider using `str::is_empty`
143
143
144
144
error: trivial regex
145
- --> $DIR/regex.rs:71 :44
145
+ --> $DIR/regex.rs:59 :44
146
146
|
147
- 71 | let binary_trivial_empty = BRegex::new("^$");
147
+ 59 | let binary_trivial_empty = BRegex::new("^$");
148
148
| ^^^^
149
149
|
150
150
= help: consider using consider using `str::is_empty`
0 commit comments