2 --> $DIR/regex.rs:26:45
4 26 | let pipe_in_wrong_position = Regex::new("|");
7 = note: `-D clippy::trivial-regex` implied by `-D warnings`
8 = help: the regex is unlikely to be useful as it is
11 --> $DIR/regex.rs:27:60
13 27 | let pipe_in_wrong_position_builder = RegexBuilder::new("|");
16 = help: the regex is unlikely to be useful as it is
18 error: regex syntax error: invalid character class range, the start must be <= the end
19 --> $DIR/regex.rs:28:42
21 28 | let wrong_char_ranice = Regex::new("[z-a]");
24 = note: `-D clippy::invalid-regex` implied by `-D warnings`
26 error: regex syntax error: invalid character class range, the start must be <= the end
27 --> $DIR/regex.rs:29:37
29 29 | let some_unicode = Regex::new("[é-è]");
32 error: regex syntax error on position 0: unclosed group
33 --> $DIR/regex.rs:31:33
35 31 | let some_regex = Regex::new(OPENING_PAREN);
39 --> $DIR/regex.rs:33:53
41 33 | let binary_pipe_in_wrong_position = BRegex::new("|");
44 = help: the regex is unlikely to be useful as it is
46 error: regex syntax error on position 0: unclosed group
47 --> $DIR/regex.rs:34:41
49 34 | let some_binary_regex = BRegex::new(OPENING_PAREN);
52 error: regex syntax error on position 0: unclosed group
53 --> $DIR/regex.rs:35:56
55 35 | let some_binary_regex_builder = BRegexBuilder::new(OPENING_PAREN);
58 error: regex syntax error on position 0: unclosed group
59 --> $DIR/regex.rs:51:9
64 error: regex syntax error on position 0: unclosed group
65 --> $DIR/regex.rs:55:9
70 error: regex syntax error: unrecognized escape sequence
71 --> $DIR/regex.rs:59:45
73 59 | let raw_string_error = Regex::new(r"[...//...]");
76 error: regex syntax error: unrecognized escape sequence
77 --> $DIR/regex.rs:60:46
79 60 | let raw_string_error = Regex::new(r#"[...//...]"#);
83 --> $DIR/regex.rs:64:33
85 64 | let trivial_eq = Regex::new("^foobar$");
88 = help: consider using `==` on `str`s
91 --> $DIR/regex.rs:66:48
93 66 | let trivial_eq_builder = RegexBuilder::new("^foobar$");
96 = help: consider using `==` on `str`s
99 --> $DIR/regex.rs:68:42
101 68 | let trivial_starts_with = Regex::new("^foobar");
104 = help: consider using `str::starts_with`
107 --> $DIR/regex.rs:70:40
109 70 | let trivial_ends_with = Regex::new("foobar$");
112 = help: consider using `str::ends_with`
115 --> $DIR/regex.rs:72:39
117 72 | let trivial_contains = Regex::new("foobar");
120 = help: consider using `str::contains`
123 --> $DIR/regex.rs:74:39
125 74 | let trivial_contains = Regex::new(NOT_A_REAL_REGEX);
128 = help: consider using `str::contains`
131 --> $DIR/regex.rs:76:40
133 76 | let trivial_backslash = Regex::new("a/.b");
136 = help: consider using `str::contains`
139 --> $DIR/regex.rs:79:36
141 79 | let trivial_empty = Regex::new("");
144 = help: the regex is unlikely to be useful as it is
147 --> $DIR/regex.rs:81:36
149 81 | let trivial_empty = Regex::new("^");
152 = help: the regex is unlikely to be useful as it is
155 --> $DIR/regex.rs:83:36
157 83 | let trivial_empty = Regex::new("^$");
160 = help: consider using `str::is_empty`
163 --> $DIR/regex.rs:85:44
165 85 | let binary_trivial_empty = BRegex::new("^$");
168 = help: consider using `str::is_empty`
170 error: aborting due to 23 previous errors