]> git.lizzy.rs Git - rust.git/blob - tests/ui/regex.stderr
Merge pull request #2362 from flip1995/master
[rust.git] / tests / ui / regex.stderr
1 error: regex syntax error: empty alternate
2   --> $DIR/regex.rs:16:45
3    |
4 16 |     let pipe_in_wrong_position = Regex::new("|");
5    |                                             ^^^
6    |
7    = note: `-D invalid-regex` implied by `-D warnings`
8
9 error: regex syntax error: empty alternate
10   --> $DIR/regex.rs:17:60
11    |
12 17 |     let pipe_in_wrong_position_builder = RegexBuilder::new("|");
13    |                                                            ^^^
14
15 error: regex syntax error: invalid character class range
16   --> $DIR/regex.rs:18:40
17    |
18 18 |     let wrong_char_ranice = Regex::new("[z-a]");
19    |                                        ^^^^^^^
20
21 error: regex syntax error: invalid character class range
22   --> $DIR/regex.rs:19:35
23    |
24 19 |     let some_unicode = Regex::new("[é-è]");
25    |                                   ^^^^^^^
26
27 error: regex syntax error on position 0: unclosed parenthesis
28   --> $DIR/regex.rs:21:33
29    |
30 21 |     let some_regex = Regex::new(OPENING_PAREN);
31    |                                 ^^^^^^^^^^^^^
32
33 error: regex syntax error: empty alternate
34   --> $DIR/regex.rs:23:53
35    |
36 23 |     let binary_pipe_in_wrong_position = BRegex::new("|");
37    |                                                     ^^^
38
39 error: regex syntax error on position 0: unclosed parenthesis
40   --> $DIR/regex.rs:24:41
41    |
42 24 |     let some_binary_regex = BRegex::new(OPENING_PAREN);
43    |                                         ^^^^^^^^^^^^^
44
45 error: regex syntax error on position 0: unclosed parenthesis
46   --> $DIR/regex.rs:25:56
47    |
48 25 |     let some_binary_regex_builder = BRegexBuilder::new(OPENING_PAREN);
49    |                                                        ^^^^^^^^^^^^^
50
51 error: regex syntax error on position 0: unclosed parenthesis
52   --> $DIR/regex.rs:40:9
53    |
54 40 |         OPENING_PAREN,
55    |         ^^^^^^^^^^^^^
56
57 error: regex syntax error on position 0: unclosed parenthesis
58   --> $DIR/regex.rs:44:9
59    |
60 44 |         OPENING_PAREN,
61    |         ^^^^^^^^^^^^^
62
63 error: trivial regex
64   --> $DIR/regex.rs:50:33
65    |
66 50 |     let trivial_eq = Regex::new("^foobar$");
67    |                                 ^^^^^^^^^^
68    |
69    = note: `-D trivial-regex` implied by `-D warnings`
70    = help: consider using consider using `==` on `str`s
71
72 error: trivial regex
73   --> $DIR/regex.rs:52:48
74    |
75 52 |     let trivial_eq_builder = RegexBuilder::new("^foobar$");
76    |                                                ^^^^^^^^^^
77    |
78    = help: consider using consider using `==` on `str`s
79
80 error: trivial regex
81   --> $DIR/regex.rs:54:42
82    |
83 54 |     let trivial_starts_with = Regex::new("^foobar");
84    |                                          ^^^^^^^^^
85    |
86    = help: consider using consider using `str::starts_with`
87
88 error: trivial regex
89   --> $DIR/regex.rs:56:40
90    |
91 56 |     let trivial_ends_with = Regex::new("foobar$");
92    |                                        ^^^^^^^^^
93    |
94    = help: consider using consider using `str::ends_with`
95
96 error: trivial regex
97   --> $DIR/regex.rs:58:39
98    |
99 58 |     let trivial_contains = Regex::new("foobar");
100    |                                       ^^^^^^^^
101    |
102    = help: consider using consider using `str::contains`
103
104 error: trivial regex
105   --> $DIR/regex.rs:60:39
106    |
107 60 |     let trivial_contains = Regex::new(NOT_A_REAL_REGEX);
108    |                                       ^^^^^^^^^^^^^^^^
109    |
110    = help: consider using consider using `str::contains`
111
112 error: trivial regex
113   --> $DIR/regex.rs:62:40
114    |
115 62 |     let trivial_backslash = Regex::new("a/.b");
116    |                                        ^^^^^^^
117    |
118    = help: consider using consider using `str::contains`
119
120 error: trivial regex
121   --> $DIR/regex.rs:65:36
122    |
123 65 |     let trivial_empty = Regex::new("");
124    |                                    ^^
125    |
126    = help: consider using the regex is unlikely to be useful as it is
127
128 error: trivial regex
129   --> $DIR/regex.rs:67:36
130    |
131 67 |     let trivial_empty = Regex::new("^");
132    |                                    ^^^
133    |
134    = help: consider using the regex is unlikely to be useful as it is
135
136 error: trivial regex
137   --> $DIR/regex.rs:69:36
138    |
139 69 |     let trivial_empty = Regex::new("^$");
140    |                                    ^^^^
141    |
142    = help: consider using consider using `str::is_empty`
143
144 error: trivial regex
145   --> $DIR/regex.rs:71:44
146    |
147 71 |     let binary_trivial_empty = BRegex::new("^$");
148    |                                            ^^^^
149    |
150    = help: consider using consider using `str::is_empty`
151
152 error: aborting due to 21 previous errors
153