-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed failing tests with update-references.sh
- Loading branch information
Showing
3 changed files
with
172 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,171 @@ | ||
error[E0514]: found crate `regex` compiled by an incompatible version of rustc | ||
--> $DIR/regex.rs:4:1 | ||
error: trivial regex | ||
--> $DIR/regex.rs:13:45 | ||
| | ||
LL | extern crate regex; | ||
| ^^^^^^^^^^^^^^^^^^^ | ||
LL | let pipe_in_wrong_position = Regex::new("|"); | ||
| ^^^ | ||
| | ||
= help: please recompile that crate using this compiler (rustc 1.43.0-nightly (a8437cf21 2020-02-27)) | ||
= note: the following crate versions were found: | ||
crate `regex` compiled by rustc 1.43.0-nightly (e3a277943 2020-02-25): /home/devinr/aprog/rust/__forks__/rust-clippy/target/debug/deps/libregex-7640b48dc23b89d0.rlib | ||
= note: `-D clippy::trivial-regex` implied by `-D warnings` | ||
= help: the regex is unlikely to be useful as it is | ||
|
||
error: aborting due to previous error | ||
error: trivial regex | ||
--> $DIR/regex.rs:14:60 | ||
| | ||
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:15:42 | ||
| | ||
LL | let wrong_char_ranice = Regex::new("[z-a]"); | ||
| ^^^ | ||
| | ||
= 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:16:37 | ||
| | ||
LL | let some_unicode = Regex::new("[é-è]"); | ||
| ^^^ | ||
|
||
error: regex syntax error on position 0: unclosed group | ||
--> $DIR/regex.rs:18:33 | ||
| | ||
LL | let some_regex = Regex::new(OPENING_PAREN); | ||
| ^^^^^^^^^^^^^ | ||
|
||
error: trivial regex | ||
--> $DIR/regex.rs:20:53 | ||
| | ||
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:21:41 | ||
| | ||
LL | let some_binary_regex = BRegex::new(OPENING_PAREN); | ||
| ^^^^^^^^^^^^^ | ||
|
||
error: regex syntax error on position 0: unclosed group | ||
--> $DIR/regex.rs:22:56 | ||
| | ||
LL | let some_binary_regex_builder = BRegexBuilder::new(OPENING_PAREN); | ||
| ^^^^^^^^^^^^^ | ||
|
||
error: regex syntax error on position 0: unclosed group | ||
--> $DIR/regex.rs:34:37 | ||
| | ||
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:35:39 | ||
| | ||
LL | let bset_error = BRegexSet::new(&[OPENING_PAREN, r"[a-z]+/.(com|org|net)"]); | ||
| ^^^^^^^^^^^^^ | ||
|
||
error: regex syntax error: unrecognized escape sequence | ||
--> $DIR/regex.rs:37:45 | ||
| | ||
LL | let raw_string_error = Regex::new(r"[...//...]"); | ||
| ^^ | ||
|
||
error: regex syntax error: unrecognized escape sequence | ||
--> $DIR/regex.rs:38:46 | ||
| | ||
LL | let raw_string_error = Regex::new(r#"[...//...]"#); | ||
| ^^ | ||
|
||
error: trivial regex | ||
--> $DIR/regex.rs:42:33 | ||
| | ||
LL | let trivial_eq = Regex::new("^foobar$"); | ||
| ^^^^^^^^^^ | ||
| | ||
= help: consider using `==` on `str`s | ||
|
||
error: trivial regex | ||
--> $DIR/regex.rs:44:48 | ||
| | ||
LL | let trivial_eq_builder = RegexBuilder::new("^foobar$"); | ||
| ^^^^^^^^^^ | ||
| | ||
= help: consider using `==` on `str`s | ||
|
||
error: trivial regex | ||
--> $DIR/regex.rs:46:42 | ||
| | ||
LL | let trivial_starts_with = Regex::new("^foobar"); | ||
| ^^^^^^^^^ | ||
| | ||
= help: consider using `str::starts_with` | ||
|
||
error: trivial regex | ||
--> $DIR/regex.rs:48:40 | ||
| | ||
LL | let trivial_ends_with = Regex::new("foobar$"); | ||
| ^^^^^^^^^ | ||
| | ||
= help: consider using `str::ends_with` | ||
|
||
error: trivial regex | ||
--> $DIR/regex.rs:50:39 | ||
| | ||
LL | let trivial_contains = Regex::new("foobar"); | ||
| ^^^^^^^^ | ||
| | ||
= help: consider using `str::contains` | ||
|
||
error: trivial regex | ||
--> $DIR/regex.rs:52:39 | ||
| | ||
LL | let trivial_contains = Regex::new(NOT_A_REAL_REGEX); | ||
| ^^^^^^^^^^^^^^^^ | ||
| | ||
= help: consider using `str::contains` | ||
|
||
error: trivial regex | ||
--> $DIR/regex.rs:54:40 | ||
| | ||
LL | let trivial_backslash = Regex::new("a/.b"); | ||
| ^^^^^^^ | ||
| | ||
= help: consider using `str::contains` | ||
|
||
error: trivial regex | ||
--> $DIR/regex.rs:57:36 | ||
| | ||
LL | let trivial_empty = Regex::new(""); | ||
| ^^ | ||
| | ||
= help: the regex is unlikely to be useful as it is | ||
|
||
error: trivial regex | ||
--> $DIR/regex.rs:59:36 | ||
| | ||
LL | let trivial_empty = Regex::new("^"); | ||
| ^^^ | ||
| | ||
= help: the regex is unlikely to be useful as it is | ||
|
||
error: trivial regex | ||
--> $DIR/regex.rs:61:36 | ||
| | ||
LL | let trivial_empty = Regex::new("^$"); | ||
| ^^^^ | ||
| | ||
= help: consider using `str::is_empty` | ||
|
||
error: trivial regex | ||
--> $DIR/regex.rs:63:44 | ||
| | ||
LL | let binary_trivial_empty = BRegex::new("^$"); | ||
| ^^^^ | ||
| | ||
= help: consider using `str::is_empty` | ||
|
||
error: aborting due to 23 previous errors | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
error[E0514]: found crate `regex` compiled by an incompatible version of rustc | ||
--> $DIR/single_component_path_imports.rs:6:5 | ||
error: this import is redundant | ||
--> $DIR/single_component_path_imports.rs:6:1 | ||
| | ||
LL | use regex; | ||
| ^^^^^ | ||
| ^^^^^^^^^^ help: remove it entirely | ||
| | ||
= help: please recompile that crate using this compiler (rustc 1.43.0-nightly (a8437cf21 2020-02-27)) | ||
= note: the following crate versions were found: | ||
crate `regex` compiled by rustc 1.43.0-nightly (e3a277943 2020-02-25): /home/devinr/aprog/rust/__forks__/rust-clippy/target/debug/deps/libregex-7640b48dc23b89d0.rlib | ||
= note: `-D clippy::single-component-path-imports` implied by `-D warnings` | ||
|
||
error: aborting due to previous error | ||
|