2018-03-13 15:02:40 +01:00
|
|
|
error: trivial regex
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/regex.rs:13:45
|
2017-08-01 17:54:21 +02:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | let pipe_in_wrong_position = Regex::new("|");
|
2017-08-01 17:54:21 +02:00
|
|
|
| ^^^
|
|
|
|
|
|
2018-08-01 16:30:44 +02:00
|
|
|
= note: `-D clippy::trivial-regex` implied by `-D warnings`
|
2018-03-13 15:02:40 +01:00
|
|
|
= help: the regex is unlikely to be useful as it is
|
2017-08-01 17:54:21 +02:00
|
|
|
|
2018-03-13 15:02:40 +01:00
|
|
|
error: trivial regex
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/regex.rs:14:60
|
2017-08-01 17:54:21 +02:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | let pipe_in_wrong_position_builder = RegexBuilder::new("|");
|
2017-08-01 17:54:21 +02:00
|
|
|
| ^^^
|
2018-03-13 15:02:40 +01:00
|
|
|
|
|
|
|
|
= help: the regex is unlikely to be useful as it is
|
2017-08-01 17:54:21 +02:00
|
|
|
|
2018-03-13 15:02:40 +01:00
|
|
|
error: regex syntax error: invalid character class range, the start must be <= the end
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/regex.rs:15:42
|
2017-08-01 17:54:21 +02:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | let wrong_char_ranice = Regex::new("[z-a]");
|
2018-03-13 15:02:40 +01:00
|
|
|
| ^^^
|
|
|
|
|
|
2018-08-01 16:30:44 +02:00
|
|
|
= note: `-D clippy::invalid-regex` implied by `-D warnings`
|
2017-08-01 17:54:21 +02:00
|
|
|
|
2018-03-13 15:02:40 +01:00
|
|
|
error: regex syntax error: invalid character class range, the start must be <= the end
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/regex.rs:16:37
|
2017-08-01 17:54:21 +02:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | let some_unicode = Regex::new("[é-è]");
|
2018-03-13 15:02:40 +01:00
|
|
|
| ^^^
|
2017-08-01 17:54:21 +02:00
|
|
|
|
2018-03-13 15:02:40 +01:00
|
|
|
error: regex syntax error on position 0: unclosed group
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/regex.rs:18:33
|
2017-08-01 17:54:21 +02:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | let some_regex = Regex::new(OPENING_PAREN);
|
2017-08-01 17:54:21 +02:00
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
2018-03-13 15:02:40 +01:00
|
|
|
error: trivial regex
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/regex.rs:20:53
|
2017-08-01 17:54:21 +02:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | let binary_pipe_in_wrong_position = BRegex::new("|");
|
2017-08-01 17:54:21 +02:00
|
|
|
| ^^^
|
2018-03-13 15:02:40 +01:00
|
|
|
|
|
|
|
|
= help: the regex is unlikely to be useful as it is
|
2017-08-01 17:54:21 +02:00
|
|
|
|
2018-03-13 15:02:40 +01:00
|
|
|
error: regex syntax error on position 0: unclosed group
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/regex.rs:21:41
|
2017-08-01 17:54:21 +02:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | let some_binary_regex = BRegex::new(OPENING_PAREN);
|
2017-08-01 17:54:21 +02:00
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
2018-03-13 15:02:40 +01:00
|
|
|
error: regex syntax error on position 0: unclosed group
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/regex.rs:22:56
|
2017-08-01 17:54:21 +02:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | let some_binary_regex_builder = BRegexBuilder::new(OPENING_PAREN);
|
2017-08-01 17:54:21 +02:00
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
2018-03-13 15:02:40 +01:00
|
|
|
error: regex syntax error on position 0: unclosed group
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/regex.rs:34:37
|
2017-08-01 17:54:21 +02:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | let set_error = RegexSet::new(&[OPENING_PAREN, r"[a-z]+/.(com|org|net)"]);
|
2018-12-10 06:27:19 +01:00
|
|
|
| ^^^^^^^^^^^^^
|
2017-08-01 17:54:21 +02:00
|
|
|
|
2018-03-13 15:02:40 +01:00
|
|
|
error: regex syntax error on position 0: unclosed group
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/regex.rs:35:39
|
2017-08-01 17:54:21 +02:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | let bset_error = BRegexSet::new(&[OPENING_PAREN, r"[a-z]+/.(com|org|net)"]);
|
2018-12-10 06:27:19 +01:00
|
|
|
| ^^^^^^^^^^^^^
|
2017-08-01 17:54:21 +02:00
|
|
|
|
2018-01-23 16:52:14 +01:00
|
|
|
error: regex syntax error: unrecognized escape sequence
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/regex.rs:37:45
|
2018-01-23 16:52:14 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | let raw_string_error = Regex::new(r"[...//...]");
|
2018-03-13 15:02:40 +01:00
|
|
|
| ^^
|
2018-01-23 16:52:14 +01:00
|
|
|
|
|
|
|
error: regex syntax error: unrecognized escape sequence
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/regex.rs:38:46
|
2018-01-23 16:52:14 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | let raw_string_error = Regex::new(r#"[...//...]"#);
|
2018-03-13 15:02:40 +01:00
|
|
|
| ^^
|
2018-01-23 16:52:14 +01:00
|
|
|
|
2017-08-01 17:54:21 +02:00
|
|
|
error: trivial regex
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/regex.rs:42:33
|
2017-08-01 17:54:21 +02:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | let trivial_eq = Regex::new("^foobar$");
|
2017-08-01 17:54:21 +02:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
2018-03-13 15:02:40 +01:00
|
|
|
= help: consider using `==` on `str`s
|
2017-08-01 17:54:21 +02:00
|
|
|
|
|
|
|
error: trivial regex
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/regex.rs:44:48
|
2017-08-01 17:54:21 +02:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | let trivial_eq_builder = RegexBuilder::new("^foobar$");
|
2017-08-01 17:54:21 +02:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
2018-03-13 15:02:40 +01:00
|
|
|
= help: consider using `==` on `str`s
|
2017-08-01 17:54:21 +02:00
|
|
|
|
|
|
|
error: trivial regex
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/regex.rs:46:42
|
2017-08-01 17:54:21 +02:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | let trivial_starts_with = Regex::new("^foobar");
|
2017-08-01 17:54:21 +02:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
2018-03-13 15:02:40 +01:00
|
|
|
= help: consider using `str::starts_with`
|
2017-08-01 17:54:21 +02:00
|
|
|
|
|
|
|
error: trivial regex
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/regex.rs:48:40
|
2017-08-01 17:54:21 +02:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | let trivial_ends_with = Regex::new("foobar$");
|
2017-08-01 17:54:21 +02:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
2018-03-13 15:02:40 +01:00
|
|
|
= help: consider using `str::ends_with`
|
2017-08-01 17:54:21 +02:00
|
|
|
|
|
|
|
error: trivial regex
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/regex.rs:50:39
|
2017-08-01 17:54:21 +02:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | let trivial_contains = Regex::new("foobar");
|
2017-08-01 17:54:21 +02:00
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
2018-03-13 15:02:40 +01:00
|
|
|
= help: consider using `str::contains`
|
2017-08-01 17:54:21 +02:00
|
|
|
|
|
|
|
error: trivial regex
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/regex.rs:52:39
|
2017-08-01 17:54:21 +02:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | let trivial_contains = Regex::new(NOT_A_REAL_REGEX);
|
2017-08-01 17:54:21 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2018-03-13 15:02:40 +01:00
|
|
|
= help: consider using `str::contains`
|
2017-08-01 17:54:21 +02:00
|
|
|
|
|
|
|
error: trivial regex
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/regex.rs:54:40
|
2017-08-01 17:54:21 +02:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | let trivial_backslash = Regex::new("a/.b");
|
2017-08-01 17:54:21 +02:00
|
|
|
| ^^^^^^^
|
|
|
|
|
|
2018-03-13 15:02:40 +01:00
|
|
|
= help: consider using `str::contains`
|
2017-08-01 17:54:21 +02:00
|
|
|
|
|
|
|
error: trivial regex
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/regex.rs:57:36
|
2017-08-01 17:54:21 +02:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | let trivial_empty = Regex::new("");
|
2017-08-01 17:54:21 +02:00
|
|
|
| ^^
|
|
|
|
|
|
2018-03-13 15:02:40 +01:00
|
|
|
= help: the regex is unlikely to be useful as it is
|
2017-08-01 17:54:21 +02:00
|
|
|
|
|
|
|
error: trivial regex
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/regex.rs:59:36
|
2017-08-01 17:54:21 +02:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | let trivial_empty = Regex::new("^");
|
2017-08-01 17:54:21 +02:00
|
|
|
| ^^^
|
|
|
|
|
|
2018-03-13 15:02:40 +01:00
|
|
|
= help: the regex is unlikely to be useful as it is
|
2017-08-01 17:54:21 +02:00
|
|
|
|
|
|
|
error: trivial regex
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/regex.rs:61:36
|
2017-08-01 17:54:21 +02:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | let trivial_empty = Regex::new("^$");
|
2017-08-01 17:54:21 +02:00
|
|
|
| ^^^^
|
|
|
|
|
|
2018-03-13 15:02:40 +01:00
|
|
|
= help: consider using `str::is_empty`
|
2017-08-01 17:54:21 +02:00
|
|
|
|
|
|
|
error: trivial regex
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/regex.rs:63:44
|
2017-08-01 17:54:21 +02:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | let binary_trivial_empty = BRegex::new("^$");
|
2017-08-01 17:54:21 +02:00
|
|
|
| ^^^^
|
|
|
|
|
|
2018-03-13 15:02:40 +01:00
|
|
|
= help: consider using `str::is_empty`
|
2017-08-01 17:54:21 +02:00
|
|
|
|
2018-01-23 16:52:14 +01:00
|
|
|
error: aborting due to 23 previous errors
|
2018-01-16 17:06:27 +01:00
|
|
|
|