]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/regex.stderr
Auto merge of #4478 - tsurai:master, r=flip1995
[rust.git] / tests / ui / regex.stderr
index 45b2b7a228018b4295d67896eefa43084ce45aa6..1394a9b63bc61f3000daa60ab72c3657f8706885 100644 (file)
 error: trivial regex
-  --> $DIR/regex.rs:16:45
+  --> $DIR/regex.rs:13:45
    |
-16 |     let pipe_in_wrong_position = Regex::new("|");
+LL |     let pipe_in_wrong_position = Regex::new("|");
    |                                             ^^^
    |
-   = note: `-D trivial-regex` implied by `-D warnings`
+   = note: `-D clippy::trivial-regex` implied by `-D warnings`
    = help: the regex is unlikely to be useful as it is
 
 error: trivial regex
-  --> $DIR/regex.rs:17:60
+  --> $DIR/regex.rs:14:60
    |
-17 |     let pipe_in_wrong_position_builder = RegexBuilder::new("|");
+LL |     let pipe_in_wrong_position_builder = RegexBuilder::new("|");
    |                                                            ^^^
    |
    = help: the regex is unlikely to be useful as it is
 
 error: regex syntax error: invalid character class range, the start must be <= the end
-  --> $DIR/regex.rs:18:42
+  --> $DIR/regex.rs:15:42
    |
-18 |     let wrong_char_ranice = Regex::new("[z-a]");
+LL |     let wrong_char_ranice = Regex::new("[z-a]");
    |                                          ^^^
    |
-   = note: `-D invalid-regex` implied by `-D warnings`
+   = note: `-D clippy::invalid-regex` implied by `-D warnings`
 
 error: regex syntax error: invalid character class range, the start must be <= the end
-  --> $DIR/regex.rs:19:37
+  --> $DIR/regex.rs:16:37
    |
-19 |     let some_unicode = Regex::new("[é-è]");
+LL |     let some_unicode = Regex::new("[é-è]");
    |                                     ^^^
 
 error: regex syntax error on position 0: unclosed group
-  --> $DIR/regex.rs:21:33
+  --> $DIR/regex.rs:18:33
    |
-21 |     let some_regex = Regex::new(OPENING_PAREN);
+LL |     let some_regex = Regex::new(OPENING_PAREN);
    |                                 ^^^^^^^^^^^^^
 
 error: trivial regex
-  --> $DIR/regex.rs:23:53
+  --> $DIR/regex.rs:20:53
    |
-23 |     let binary_pipe_in_wrong_position = BRegex::new("|");
+LL |     let binary_pipe_in_wrong_position = BRegex::new("|");
    |                                                     ^^^
    |
    = help: the regex is unlikely to be useful as it is
 
 error: regex syntax error on position 0: unclosed group
-  --> $DIR/regex.rs:24:41
+  --> $DIR/regex.rs:21:41
    |
-24 |     let some_binary_regex = BRegex::new(OPENING_PAREN);
+LL |     let some_binary_regex = BRegex::new(OPENING_PAREN);
    |                                         ^^^^^^^^^^^^^
 
 error: regex syntax error on position 0: unclosed group
-  --> $DIR/regex.rs:25:56
+  --> $DIR/regex.rs:22:56
    |
-25 |     let some_binary_regex_builder = BRegexBuilder::new(OPENING_PAREN);
+LL |     let some_binary_regex_builder = BRegexBuilder::new(OPENING_PAREN);
    |                                                        ^^^^^^^^^^^^^
 
 error: regex syntax error on position 0: unclosed group
-  --> $DIR/regex.rs:40:9
+  --> $DIR/regex.rs:34:37
    |
-40 |         OPENING_PAREN,
-   |         ^^^^^^^^^^^^^
+LL |     let set_error = RegexSet::new(&[OPENING_PAREN, r"[a-z]+/.(com|org|net)"]);
+   |                                     ^^^^^^^^^^^^^
 
 error: regex syntax error on position 0: unclosed group
-  --> $DIR/regex.rs:44:9
+  --> $DIR/regex.rs:35:39
    |
-44 |         OPENING_PAREN,
-   |         ^^^^^^^^^^^^^
+LL |     let bset_error = BRegexSet::new(&[OPENING_PAREN, r"[a-z]+/.(com|org|net)"]);
+   |                                       ^^^^^^^^^^^^^
 
 error: regex syntax error: unrecognized escape sequence
-  --> $DIR/regex.rs:48:45
+  --> $DIR/regex.rs:37:45
    |
-48 |     let raw_string_error = Regex::new(r"[...//...]");
+LL |     let raw_string_error = Regex::new(r"[...//...]");
    |                                             ^^
 
 error: regex syntax error: unrecognized escape sequence
-  --> $DIR/regex.rs:49:46
+  --> $DIR/regex.rs:38:46
    |
-49 |     let raw_string_error = Regex::new(r#"[...//...]"#);
+LL |     let raw_string_error = Regex::new(r#"[...//...]"#);
    |                                              ^^
 
 error: trivial regex
-  --> $DIR/regex.rs:53:33
+  --> $DIR/regex.rs:42:33
    |
-53 |     let trivial_eq = Regex::new("^foobar$");
+LL |     let trivial_eq = Regex::new("^foobar$");
    |                                 ^^^^^^^^^^
    |
    = help: consider using `==` on `str`s
 
 error: trivial regex
-  --> $DIR/regex.rs:55:48
+  --> $DIR/regex.rs:44:48
    |
-55 |     let trivial_eq_builder = RegexBuilder::new("^foobar$");
+LL |     let trivial_eq_builder = RegexBuilder::new("^foobar$");
    |                                                ^^^^^^^^^^
    |
    = help: consider using `==` on `str`s
 
 error: trivial regex
-  --> $DIR/regex.rs:57:42
+  --> $DIR/regex.rs:46:42
    |
-57 |     let trivial_starts_with = Regex::new("^foobar");
+LL |     let trivial_starts_with = Regex::new("^foobar");
    |                                          ^^^^^^^^^
    |
    = help: consider using `str::starts_with`
 
 error: trivial regex
-  --> $DIR/regex.rs:59:40
+  --> $DIR/regex.rs:48:40
    |
-59 |     let trivial_ends_with = Regex::new("foobar$");
+LL |     let trivial_ends_with = Regex::new("foobar$");
    |                                        ^^^^^^^^^
    |
    = help: consider using `str::ends_with`
 
 error: trivial regex
-  --> $DIR/regex.rs:61:39
+  --> $DIR/regex.rs:50:39
    |
-61 |     let trivial_contains = Regex::new("foobar");
+LL |     let trivial_contains = Regex::new("foobar");
    |                                       ^^^^^^^^
    |
    = help: consider using `str::contains`
 
 error: trivial regex
-  --> $DIR/regex.rs:63:39
+  --> $DIR/regex.rs:52:39
    |
-63 |     let trivial_contains = Regex::new(NOT_A_REAL_REGEX);
+LL |     let trivial_contains = Regex::new(NOT_A_REAL_REGEX);
    |                                       ^^^^^^^^^^^^^^^^
    |
    = help: consider using `str::contains`
 
 error: trivial regex
-  --> $DIR/regex.rs:65:40
+  --> $DIR/regex.rs:54:40
    |
-65 |     let trivial_backslash = Regex::new("a/.b");
+LL |     let trivial_backslash = Regex::new("a/.b");
    |                                        ^^^^^^^
    |
    = help: consider using `str::contains`
 
 error: trivial regex
-  --> $DIR/regex.rs:68:36
+  --> $DIR/regex.rs:57:36
    |
-68 |     let trivial_empty = Regex::new("");
+LL |     let trivial_empty = Regex::new("");
    |                                    ^^
    |
    = help: the regex is unlikely to be useful as it is
 
 error: trivial regex
-  --> $DIR/regex.rs:70:36
+  --> $DIR/regex.rs:59:36
    |
-70 |     let trivial_empty = Regex::new("^");
+LL |     let trivial_empty = Regex::new("^");
    |                                    ^^^
    |
    = help: the regex is unlikely to be useful as it is
 
 error: trivial regex
-  --> $DIR/regex.rs:72:36
+  --> $DIR/regex.rs:61:36
    |
-72 |     let trivial_empty = Regex::new("^$");
+LL |     let trivial_empty = Regex::new("^$");
    |                                    ^^^^
    |
    = help: consider using `str::is_empty`
 
 error: trivial regex
-  --> $DIR/regex.rs:74:44
+  --> $DIR/regex.rs:63:44
    |
-74 |     let binary_trivial_empty = BRegex::new("^$");
+LL |     let binary_trivial_empty = BRegex::new("^$");
    |                                            ^^^^
    |
    = help: consider using `str::is_empty`