2 --> $DIR/regex.rs:22:45
4 LL | 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:23:60
13 LL | 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:24:42
21 LL | 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:25:37
29 LL | let some_unicode = Regex::new("[é-è]");
32 error: regex syntax error on position 0: unclosed group
33 --> $DIR/regex.rs:27:33
35 LL | let some_regex = Regex::new(OPENING_PAREN);
39 --> $DIR/regex.rs:29:53
41 LL | 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:30:41
49 LL | let some_binary_regex = BRegex::new(OPENING_PAREN);
52 error: regex syntax error on position 0: unclosed group
53 --> $DIR/regex.rs:31:56
55 LL | let some_binary_regex_builder = BRegexBuilder::new(OPENING_PAREN);
58 error: regex syntax error on position 0: unclosed group
59 --> $DIR/regex.rs:43:37
61 LL | let set_error = RegexSet::new(&[OPENING_PAREN, r"[a-z]+/.(com|org|net)"]);
64 error: regex syntax error on position 0: unclosed group
65 --> $DIR/regex.rs:44:39
67 LL | let bset_error = BRegexSet::new(&[OPENING_PAREN, r"[a-z]+/.(com|org|net)"]);
70 error: regex syntax error: unrecognized escape sequence
71 --> $DIR/regex.rs:46:45
73 LL | let raw_string_error = Regex::new(r"[...//...]");
76 error: regex syntax error: unrecognized escape sequence
77 --> $DIR/regex.rs:47:46
79 LL | let raw_string_error = Regex::new(r#"[...//...]"#);
83 --> $DIR/regex.rs:51:33
85 LL | let trivial_eq = Regex::new("^foobar$");
88 = help: consider using `==` on `str`s
91 --> $DIR/regex.rs:53:48
93 LL | let trivial_eq_builder = RegexBuilder::new("^foobar$");
96 = help: consider using `==` on `str`s
99 --> $DIR/regex.rs:55:42
101 LL | let trivial_starts_with = Regex::new("^foobar");
104 = help: consider using `str::starts_with`
107 --> $DIR/regex.rs:57:40
109 LL | let trivial_ends_with = Regex::new("foobar$");
112 = help: consider using `str::ends_with`
115 --> $DIR/regex.rs:59:39
117 LL | let trivial_contains = Regex::new("foobar");
120 = help: consider using `str::contains`
123 --> $DIR/regex.rs:61:39
125 LL | let trivial_contains = Regex::new(NOT_A_REAL_REGEX);
128 = help: consider using `str::contains`
131 --> $DIR/regex.rs:63:40
133 LL | let trivial_backslash = Regex::new("a/.b");
136 = help: consider using `str::contains`
139 --> $DIR/regex.rs:66:36
141 LL | let trivial_empty = Regex::new("");
144 = help: the regex is unlikely to be useful as it is
147 --> $DIR/regex.rs:68:36
149 LL | let trivial_empty = Regex::new("^");
152 = help: the regex is unlikely to be useful as it is
155 --> $DIR/regex.rs:70:36
157 LL | let trivial_empty = Regex::new("^$");
160 = help: consider using `str::is_empty`
163 --> $DIR/regex.rs:72:44
165 LL | let binary_trivial_empty = BRegex::new("^$");
168 = help: consider using `str::is_empty`
170 error: aborting due to 23 previous errors