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