]> git.lizzy.rs Git - rust.git/blob - tests/ui/regex.stderr
rustup and compile-fail -> ui test move
[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:18:60
11    |
12 18 |     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:20:40
19    |
20 20 |     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:22:35
27    |
28 22 |     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:25:33
35    |
36 25 |     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:28:53
43    |
44 28 |     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:30:41
51    |
52 30 |     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:32:56
59    |
60 32 |     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:48:9
67    |
68 48 |         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:53:9
75    |
76 53 |         OPENING_PAREN,
77    |         ^^^^^^^^^^^^^
78    |
79    = note: #[deny(invalid_regex)] on by default
80
81 error: trivial regex
82   --> $DIR/regex.rs:60:33
83    |
84 60 |     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:64:48
96    |
97 64 |     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:68:42
104    |
105 68 |     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:72:40
112    |
113 72 |     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:76:39
120    |
121 76 |     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:80:39
128    |
129 80 |     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:84:40
136    |
137 84 |     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:89:36
144    |
145 89 |     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:93:36
152    |
153 93 |     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:97:36
160    |
161 97 |     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:101:44
168     |
169 101 |     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