Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update clippy to fix toolstate #66158

Closed
wants to merge 1 commit into from
Closed

Conversation

tesuji
Copy link
Contributor

@tesuji tesuji commented Nov 6, 2019

Close #66150.
Close #62558 thanks to @msizanoen1 .

@rust-highfive
Copy link
Collaborator

r? @nikomatsakis

(rust_highfive has picked a reviewer for you, use r? to override)

@tesuji
Copy link
Contributor Author

tesuji commented Nov 6, 2019

r? @Manishearth

@rust-highfive
Copy link
Collaborator

⚠️ Warning ⚠️

  • These commits modify submodules.

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 6, 2019
@Manishearth
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Nov 6, 2019

📌 Commit 8ec83cf has been approved by Manishearth

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 6, 2019
@Manishearth
Copy link
Member

@bors p=2

@tesuji
Copy link
Contributor Author

tesuji commented Nov 6, 2019

cc @msizanoen1 in case they are interested.

pietroalbini added a commit to pietroalbini/rust that referenced this pull request Nov 6, 2019
@rust-highfive
Copy link
Collaborator

The job x86_64-gnu-tools of your PR failed (pretty log, raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
2019-11-06T14:49:18.8645508Z ##[command]git remote add origin https://github.com/rust-lang/rust
2019-11-06T14:49:18.8841203Z ##[command]git config gc.auto 0
2019-11-06T14:49:18.8899850Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2019-11-06T14:49:18.8961463Z ##[command]git config --get-all http.proxy
2019-11-06T14:49:19.4240687Z ##[command]git -c http.extraheader="AUTHORIZATION: basic ***" fetch --force --tags --prune --progress --no-recurse-submodules --depth=2 origin +refs/heads/*:refs/remotes/origin/* +refs/pull/66158/merge:refs/remotes/pull/66158/merge
---
2019-11-06T16:31:30.5688990Z     Finished release [optimized] target(s) in 11m 12s
2019-11-06T16:33:28.3052992Z Error: there are broken links
2019-11-06T16:33:28.3056713Z  Caused By: "https://doc.rust-lang.org/nightly/nightly-rustc/syntax/parse/struct.ParseSess.html" returned 404 Not Found
2019-11-06T16:33:28.3057448Z  Caused By: "https://doc.rust-lang.org/nightly/nightly-rustc/syntax/parse/struct.ParseSess.html#method.buffer_lint" returned 404 Not Found
2019-11-06T16:33:28.3058002Z  Caused By: "***/tree/master/src/libsyntax/ext/tt" returned 404 Not Found
2019-11-06T16:33:28.3058673Z  Caused By: "https://doc.rust-lang.org/nightly/nightly-rustc/syntax/ext/tt/macro_parser/fn.parse.html" returned 404 Not Found
2019-11-06T16:33:28.3058986Z  Caused By: "https://doc.rust-lang.org/nightly/nightly-rustc/syntax/ext/tt/macro_rules/" returned 404 Not Found
2019-11-06T16:33:28.3059292Z  Caused By: "https://doc.rust-lang.org/nightly/nightly-rustc/syntax/ext/tt/macro_parser/" returned 404 Not Found
2019-11-06T16:33:28.3059776Z  Caused By: "https://github.com/rust-lang/chalk/blob/master/src/test/wf.rs" returned 404 Not Found
---
2019-11-06T16:48:44.8281918Z 
2019-11-06T16:48:44.8282173Z ------------------------------------------
2019-11-06T16:48:44.8282223Z stderr:
2019-11-06T16:48:44.8282470Z ------------------------------------------
2019-11-06T16:48:44.8283819Z {"message":"can't find crate for `clippy_lints`","code":{"code":"E0463","explanation":"\nA plugin/crate was declared but cannot be found. Erroneous code example:\n\n```compile_fail,E0463\n#![feature(plugin)]\n#![plugin(cookie_monster)] // error: can't find crate for `cookie_monster`\nextern crate cake_is_a_lie; // error: can't find crate for `cake_is_a_lie`\n```\n\nYou need to link your code to the relevant crate in order to be able to use it\n(through Cargo or the `-L` option of rustc example). Plugins are crates as\nwell, and you link to them the same way.\n"},"level":"error","spans":[{"file_name":"tests/ui/lint_without_lint_pass.rs","byte_start":142,"byte_end":168,"line_start":9,"line_end":9,"column_start":1,"column_end":27,"is_primary":true,"text":[{"text":"extern crate clippy_lints;","highlight_start":1,"highlight_end":27}],"label":"can't find crate","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0463]: can't find crate for `clippy_lints`\n  --> tests/ui/lint_without_lint_pass.rs:9:1\n   |\nLL | extern crate clippy_lints;\n   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate\n\n"}
2019-11-06T16:48:44.8284594Z {"message":"For more information about this error, try `rustc --explain E0463`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about this error, try `rustc --explain E0463`.\n"}
2019-11-06T16:48:44.8284649Z 
2019-11-06T16:48:44.8284899Z ------------------------------------------
2019-11-06T16:48:44.8284953Z 
---
2019-11-06T16:48:44.8286990Z expected stderr:
2019-11-06T16:48:44.8287035Z error: trivial regex
2019-11-06T16:48:44.8287264Z   --> $DIR/regex.rs:13:45
2019-11-06T16:48:44.8287311Z    |
2019-11-06T16:48:44.8287376Z LL |     let pipe_in_wrong_position = Regex::new("|");
2019-11-06T16:48:44.8287471Z    |
2019-11-06T16:48:44.8287740Z    = note: `-D clippy::trivial-regex` implied by `-D warnings`
2019-11-06T16:48:44.8287796Z    = help: the regex is unlikely to be useful as it is
2019-11-06T16:48:44.8287828Z 
2019-11-06T16:48:44.8287828Z 
2019-11-06T16:48:44.8287871Z error: trivial regex
2019-11-06T16:48:44.8288111Z   --> $DIR/regex.rs:14:60
2019-11-06T16:48:44.8288166Z    |
2019-11-06T16:48:44.8288214Z LL |     let pipe_in_wrong_position_builder = RegexBuilder::new("|");
2019-11-06T16:48:44.8288331Z    |
2019-11-06T16:48:44.8288484Z    = help: the regex is unlikely to be useful as it is
2019-11-06T16:48:44.8288521Z 
2019-11-06T16:48:44.8288521Z 
2019-11-06T16:48:44.8288588Z error: regex syntax error: invalid character class range, the start must be <= the end
2019-11-06T16:48:44.8288884Z    |
2019-11-06T16:48:44.8288884Z    |
2019-11-06T16:48:44.8289141Z LL |     let wrong_char_ranice = Regex::new("[z-a]");
2019-11-06T16:48:44.8289237Z    |
2019-11-06T16:48:44.8289237Z    |
2019-11-06T16:48:44.8289503Z    = note: `-D clippy::invalid-regex` implied by `-D warnings`
2019-11-06T16:48:44.8289538Z 
2019-11-06T16:48:44.8289586Z error: regex syntax error: invalid character class range, the start must be <= the end
2019-11-06T16:48:44.8289984Z    |
2019-11-06T16:48:44.8289984Z    |
2019-11-06T16:48:44.8290232Z LL |     let some_unicode = Regex::new("[é-è]");
2019-11-06T16:48:44.8290333Z 
2019-11-06T16:48:44.8290387Z error: regex syntax error on position 0: unclosed group
2019-11-06T16:48:44.8290609Z   --> $DIR/regex.rs:18:33
2019-11-06T16:48:44.8290655Z    |
2019-11-06T16:48:44.8290655Z    |
2019-11-06T16:48:44.8290718Z LL |     let some_regex = Regex::new(OPENING_PAREN);
2019-11-06T16:48:44.8290797Z 
2019-11-06T16:48:44.8290856Z error: trivial regex
2019-11-06T16:48:44.8291073Z   --> $DIR/regex.rs:20:53
2019-11-06T16:48:44.8291118Z    |
2019-11-06T16:48:44.8291118Z    |
2019-11-06T16:48:44.8291164Z LL |     let binary_pipe_in_wrong_position = BRegex::new("|");
2019-11-06T16:48:44.8291274Z    |
2019-11-06T16:48:44.8291319Z    = help: the regex is unlikely to be useful as it is
2019-11-06T16:48:44.8291377Z 
2019-11-06T16:48:44.8291423Z error: regex syntax error on position 0: unclosed group
2019-11-06T16:48:44.8291423Z error: regex syntax error on position 0: unclosed group
2019-11-06T16:48:44.8291645Z   --> $DIR/regex.rs:21:41
2019-11-06T16:48:44.8291690Z    |
2019-11-06T16:48:44.8291761Z LL |     let some_binary_regex = BRegex::new(OPENING_PAREN);
2019-11-06T16:48:44.8291843Z 
2019-11-06T16:48:44.8291905Z error: regex syntax error on position 0: unclosed group
2019-11-06T16:48:44.8292128Z   --> $DIR/regex.rs:22:56
2019-11-06T16:48:44.8292174Z    |
2019-11-06T16:48:44.8292174Z    |
2019-11-06T16:48:44.8292224Z LL |     let some_binary_regex_builder = BRegexBuilder::new(OPENING_PAREN);
2019-11-06T16:48:44.8292327Z 
2019-11-06T16:48:44.8292372Z error: regex syntax error on position 0: unclosed group
2019-11-06T16:48:44.8292609Z   --> $DIR/regex.rs:34:37
2019-11-06T16:48:44.8292663Z    |
2019-11-06T16:48:44.8292663Z    |
2019-11-06T16:48:44.8292937Z LL |     let set_error = RegexSet::new(&[OPENING_PAREN, r"[a-z]+/.(com|org|net)"]);
2019-11-06T16:48:44.8293040Z 
2019-11-06T16:48:44.8293084Z error: regex syntax error on position 0: unclosed group
2019-11-06T16:48:44.8293310Z   --> $DIR/regex.rs:35:39
2019-11-06T16:48:44.8293380Z    |
2019-11-06T16:48:44.8293380Z    |
2019-11-06T16:48:44.8293651Z LL |     let bset_error = BRegexSet::new(&[OPENING_PAREN, r"[a-z]+/.(com|org|net)"]);
2019-11-06T16:48:44.8293753Z 
2019-11-06T16:48:44.8293798Z error: regex syntax error: unrecognized escape sequence
2019-11-06T16:48:44.8294017Z   --> $DIR/regex.rs:37:45
2019-11-06T16:48:44.8294061Z    |
2019-11-06T16:48:44.8294061Z    |
2019-11-06T16:48:44.8294125Z LL |     let raw_string_error = Regex::new(r"[...//...]");
2019-11-06T16:48:44.8294212Z 
2019-11-06T16:48:44.8294277Z error: regex syntax error: unrecognized escape sequence
2019-11-06T16:48:44.8294498Z   --> $DIR/regex.rs:38:46
2019-11-06T16:48:44.8294544Z    |
2019-11-06T16:48:44.8294544Z    |
2019-11-06T16:48:44.8294590Z LL |     let raw_string_error = Regex::new(r#"[...//...]"#);
2019-11-06T16:48:44.8294778Z 
2019-11-06T16:48:44.8294818Z error: trivial regex
2019-11-06T16:48:44.8295076Z   --> $DIR/regex.rs:42:33
2019-11-06T16:48:44.8295122Z    |
2019-11-06T16:48:44.8295122Z    |
2019-11-06T16:48:44.8295166Z LL |     let trivial_eq = Regex::new("^foobar$");
2019-11-06T16:48:44.8295274Z    |
2019-11-06T16:48:44.8295274Z    |
2019-11-06T16:48:44.8295318Z    = help: consider using `==` on `str`s
2019-11-06T16:48:44.8295387Z error: trivial regex
2019-11-06T16:48:44.8295623Z   --> $DIR/regex.rs:44:48
2019-11-06T16:48:44.8295667Z    |
2019-11-06T16:48:44.8295667Z    |
2019-11-06T16:48:44.8295713Z LL |     let trivial_eq_builder = RegexBuilder::new("^foobar$");
2019-11-06T16:48:44.8295913Z    |
2019-11-06T16:48:44.8295913Z    |
2019-11-06T16:48:44.8295957Z    = help: consider using `==` on `str`s
2019-11-06T16:48:44.8296046Z error: trivial regex
2019-11-06T16:48:44.8296619Z   --> $DIR/regex.rs:46:42
2019-11-06T16:48:44.8296670Z    |
2019-11-06T16:48:44.8296670Z    |
2019-11-06T16:48:44.8296736Z LL |     let trivial_starts_with = Regex::new("^foobar");
2019-11-06T16:48:44.8296827Z    |
2019-11-06T16:48:44.8296889Z    = help: consider using `str::starts_with`
2019-11-06T16:48:44.8296918Z 
2019-11-06T16:48:44.8296958Z error: trivial regex
2019-11-06T16:48:44.8296958Z error: trivial regex
2019-11-06T16:48:44.8297181Z   --> $DIR/regex.rs:48:40
2019-11-06T16:48:44.8297243Z    |
2019-11-06T16:48:44.8297289Z LL |     let trivial_ends_with = Regex::new("foobar$");
2019-11-06T16:48:44.8297410Z    |
2019-11-06T16:48:44.8297453Z    = help: consider using `str::ends_with`
2019-11-06T16:48:44.8297482Z 
2019-11-06T16:48:44.8297521Z error: trivial regex
---
2019-11-06T16:48:44.8298042Z 
2019-11-06T16:48:44.8298101Z error: trivial regex
2019-11-06T16:48:44.8298322Z   --> $DIR/regex.rs:52:39
2019-11-06T16:48:44.8298366Z    |
2019-11-06T16:48:44.8298429Z LL |     let trivial_contains = Regex::new(NOT_A_REAL_REGEX);
2019-11-06T16:48:44.8298525Z    |
2019-11-06T16:48:44.8298568Z    = help: consider using `str::contains`
2019-11-06T16:48:44.8298615Z 
2019-11-06T16:48:44.8298663Z error: trivial regex
2019-11-06T16:48:44.8298663Z error: trivial regex
2019-11-06T16:48:44.8298884Z   --> $DIR/regex.rs:54:40
2019-11-06T16:48:44.8298946Z    |
2019-11-06T16:48:44.8298991Z LL |     let trivial_backslash = Regex::new("a/.b");
2019-11-06T16:48:44.8299083Z    |
2019-11-06T16:48:44.8299154Z    = help: consider using `str::contains`
2019-11-06T16:48:44.8299185Z 
2019-11-06T16:48:44.8299225Z error: trivial regex
---
2019-11-06T16:48:44.8299745Z 
2019-11-06T16:48:44.8299787Z error: trivial regex
2019-11-06T16:48:44.8300022Z   --> $DIR/regex.rs:59:36
2019-11-06T16:48:44.8300068Z    |
2019-11-06T16:48:44.8300112Z LL |     let trivial_empty = Regex::new("^");
2019-11-06T16:48:44.8300228Z    |
2019-11-06T16:48:44.8300273Z    = help: the regex is unlikely to be useful as it is
2019-11-06T16:48:44.8300303Z 
2019-11-06T16:48:44.8300362Z error: trivial regex
2019-11-06T16:48:44.8300362Z error: trivial regex
2019-11-06T16:48:44.8300685Z   --> $DIR/regex.rs:61:36
2019-11-06T16:48:44.8300737Z    |
2019-11-06T16:48:44.8300801Z LL |     let trivial_empty = Regex::new("^$");
2019-11-06T16:48:44.8300892Z    |
2019-11-06T16:48:44.8300953Z    = help: consider using `str::is_empty`
2019-11-06T16:48:44.8300982Z 
2019-11-06T16:48:44.8301024Z error: trivial regex
2019-11-06T16:48:44.8301024Z error: trivial regex
2019-11-06T16:48:44.8301264Z   --> $DIR/regex.rs:63:44
2019-11-06T16:48:44.8301326Z    |
2019-11-06T16:48:44.8301373Z LL |     let binary_trivial_empty = BRegex::new("^$");
2019-11-06T16:48:44.8301484Z    |
2019-11-06T16:48:44.8301639Z    = help: consider using `str::is_empty`
2019-11-06T16:48:44.8301668Z 
2019-11-06T16:48:44.8301711Z error: aborting due to 23 previous errors
---
2019-11-06T16:48:44.8302364Z -  --> $DIR/regex.rs:13:45
2019-11-06T16:48:44.8302601Z +error[E0463]: can't find crate for `regex`
2019-11-06T16:48:44.8302835Z +  --> $DIR/regex.rs:4:1
2019-11-06T16:48:44.8302883Z     |
2019-11-06T16:48:44.8303127Z -LL |     let pipe_in_wrong_position = Regex::new("|");
2019-11-06T16:48:44.8303589Z -   |
2019-11-06T16:48:44.8303839Z -   = note: `-D clippy::trivial-regex` implied by `-D warnings`
2019-11-06T16:48:44.8304087Z -   = help: the regex is unlikely to be useful as it is
2019-11-06T16:48:44.8304153Z +LL | extern crate regex;
2019-11-06T16:48:44.8304153Z +LL | extern crate regex;
2019-11-06T16:48:44.8304396Z +   | ^^^^^^^^^^^^^^^^^^^ can't find crate
2019-11-06T16:48:44.8304442Z  
2019-11-06T16:48:44.8304665Z -error: trivial regex
2019-11-06T16:48:44.8304882Z -  --> $DIR/regex.rs:14:60
2019-11-06T16:48:44.8305081Z -   |
2019-11-06T16:48:44.8305344Z -LL |     let pipe_in_wrong_position_builder = RegexBuilder::new("|");
2019-11-06T16:48:44.8305824Z -   |
2019-11-06T16:48:44.8306065Z -   = help: the regex is unlikely to be useful as it is
2019-11-06T16:48:44.8306386Z +error: aborting due to previous error
2019-11-06T16:48:44.8306444Z  
2019-11-06T16:48:44.8306444Z  
2019-11-06T16:48:44.8306762Z -error: regex syntax error: invalid character class range, the start must be <= the end
2019-11-06T16:48:44.8307217Z -   |
2019-11-06T16:48:44.8307217Z -   |
2019-11-06T16:48:44.8307457Z -LL |     let wrong_char_ranice = Regex::new("[z-a]");
2019-11-06T16:48:44.8307929Z -   |
2019-11-06T16:48:44.8307929Z -   |
2019-11-06T16:48:44.8308179Z -   = note: `-D clippy::invalid-regex` implied by `-D warnings`
2019-11-06T16:48:44.8308392Z -
2019-11-06T16:48:44.8308666Z -error: regex syntax error: invalid character class range, the start must be <= the end
2019-11-06T16:48:44.8309773Z -   |
2019-11-06T16:48:44.8309773Z -   |
2019-11-06T16:48:44.8310064Z -LL |     let some_unicode = Regex::new("[é-è]");
2019-11-06T16:48:44.8310500Z -
2019-11-06T16:48:44.8310764Z -error: regex syntax error on position 0: unclosed group
2019-11-06T16:48:44.8310986Z -  --> $DIR/regex.rs:18:33
2019-11-06T16:48:44.8311182Z -   |
2019-11-06T16:48:44.8311182Z -   |
2019-11-06T16:48:44.8311439Z -LL |     let some_regex = Regex::new(OPENING_PAREN);
2019-11-06T16:48:44.8311876Z -
2019-11-06T16:48:44.8312087Z -error: trivial regex
2019-11-06T16:48:44.8312340Z -  --> $DIR/regex.rs:20:53
2019-11-06T16:48:44.8312535Z -   |
2019-11-06T16:48:44.8312535Z -   |
2019-11-06T16:48:44.8313774Z -LL |     let binary_pipe_in_wrong_position = BRegex::new("|");
2019-11-06T16:48:44.8318932Z -   |
2019-11-06T16:48:44.8320484Z -   = help: the regex is unlikely to be useful as it is
2019-11-06T16:48:44.8320763Z -
2019-11-06T16:48:44.8321016Z -error: regex syntax error on position 0: unclosed group
2019-11-06T16:48:44.8321016Z -error: regex syntax error on position 0: unclosed group
2019-11-06T16:48:44.8321236Z -  --> $DIR/regex.rs:21:41
2019-11-06T16:48:44.8321434Z -   |
2019-11-06T16:48:44.8321706Z -LL |     let some_binary_regex = BRegex::new(OPENING_PAREN);
2019-11-06T16:48:44.8322148Z -
2019-11-06T16:48:44.8322411Z -error: regex syntax error on position 0: unclosed group
2019-11-06T16:48:44.8322631Z -  --> $DIR/regex.rs:22:56
2019-11-06T16:48:44.8322829Z -   |
2019-11-06T16:48:44.8322829Z -   |
2019-11-06T16:48:44.8323113Z -LL |     let some_binary_regex_builder = BRegexBuilder::new(OPENING_PAREN);
2019-11-06T16:48:44.8323701Z -
2019-11-06T16:48:44.8323966Z -error: regex syntax error on position 0: unclosed group
2019-11-06T16:48:44.8324187Z -  --> $DIR/regex.rs:34:37
2019-11-06T16:48:44.8324390Z -   |
2019-11-06T16:48:44.8324390Z -   |
2019-11-06T16:48:44.8324667Z -LL |     let set_error = RegexSet::new(&[OPENING_PAREN, r"[a-z]+/.(com|org|net)"]);
2019-11-06T16:48:44.8325137Z -
2019-11-06T16:48:44.8325381Z -error: regex syntax error on position 0: unclosed group
2019-11-06T16:48:44.8325622Z -  --> $DIR/regex.rs:35:39
2019-11-06T16:48:44.8325818Z -   |
2019-11-06T16:48:44.8325818Z -   |
2019-11-06T16:48:44.8326090Z -LL |     let bset_error = BRegexSet::new(&[OPENING_PAREN, r"[a-z]+/.(com|org|net)"]);
2019-11-06T16:48:44.8326886Z -
2019-11-06T16:48:44.8327143Z -error: regex syntax error: unrecognized escape sequence
2019-11-06T16:48:44.8327380Z -  --> $DIR/regex.rs:37:45
2019-11-06T16:48:44.8327577Z -   |
2019-11-06T16:48:44.8327577Z -   |
2019-11-06T16:48:44.8327824Z -LL |     let raw_string_error = Regex::new(r"[...//...]");
2019-11-06T16:48:44.8328294Z -
2019-11-06T16:48:44.8328538Z -error: regex syntax error: unrecognized escape sequence
2019-11-06T16:48:44.8328758Z -  --> $DIR/regex.rs:38:46
2019-11-06T16:48:44.8328974Z -   |
2019-11-06T16:48:44.8328974Z -   |
2019-11-06T16:48:44.8329225Z -LL |     let raw_string_error = Regex::new(r#"[...//...]"#);
2019-11-06T16:48:44.8329682Z -
2019-11-06T16:48:44.8329895Z -error: trivial regex
2019-11-06T16:48:44.8330111Z -  --> $DIR/regex.rs:42:33
2019-11-06T16:48:44.8330305Z -   |
2019-11-06T16:48:44.8330305Z -   |
2019-11-06T16:48:44.8330561Z -LL |     let trivial_eq = Regex::new("^foobar$");
2019-11-06T16:48:44.8331010Z -   |
2019-11-06T16:48:44.8331010Z -   |
2019-11-06T16:48:44.8331259Z -   = help: consider using `==` on `str`s
2019-11-06T16:48:44.8331659Z -error: trivial regex
2019-11-06T16:48:44.8331892Z -  --> $DIR/regex.rs:44:48
2019-11-06T16:48:44.8332089Z -   |
2019-11-06T16:48:44.8332089Z -   |
2019-11-06T16:48:44.8332349Z -LL |     let trivial_eq_builder = RegexBuilder::new("^foobar$");
2019-11-06T16:48:44.8332831Z -   |
2019-11-06T16:48:44.8332831Z -   |
2019-11-06T16:48:44.8333058Z -   = help: consider using `==` on `str`s
2019-11-06T16:48:44.8333477Z -error: trivial regex
2019-11-06T16:48:44.8333693Z -  --> $DIR/regex.rs:46:42
2019-11-06T16:48:44.8333889Z -   |
2019-11-06T16:48:44.8333889Z -   |
2019-11-06T16:48:44.8334153Z -LL |     let trivial_starts_with = Regex::new("^foobar");
2019-11-06T16:48:44.8334599Z -   |
2019-11-06T16:48:44.8334829Z -   = help: consider using `str::starts_with`
2019-11-06T16:48:44.8335057Z -
2019-11-06T16:48:44.8335268Z -error: trivial regex
2019-11-06T16:48:44.8335268Z -error: trivial regex
2019-11-06T16:48:44.8335484Z -  --> $DIR/regex.rs:48:40
2019-11-06T16:48:44.8335696Z -   |
2019-11-06T16:48:44.8335938Z -LL |     let trivial_ends_with = Regex::new("foobar$");
2019-11-06T16:48:44.8336901Z -   |
2019-11-06T16:48:44.8337138Z -   = help: consider using `str::ends_with`
2019-11-06T16:48:44.8337333Z -
2019-11-06T16:48:44.8337541Z -error: trivial regex
---
2019-11-06T16:48:44.8339117Z -
2019-11-06T16:48:44.8339327Z -error: trivial regex
2019-11-06T16:48:44.8339650Z -  --> $DIR/regex.rs:52:39
2019-11-06T16:48:44.8339846Z -   |
2019-11-06T16:48:44.8340116Z -LL |     let trivial_contains = Regex::new(NOT_A_REAL_REGEX);
2019-11-06T16:48:44.8340569Z -   |
2019-11-06T16:48:44.8340825Z -   = help: consider using `str::contains`
2019-11-06T16:48:44.8341018Z -
2019-11-06T16:48:44.8341224Z -error: trivial regex
2019-11-06T16:48:44.8341224Z -error: trivial regex
2019-11-06T16:48:44.8341456Z -  --> $DIR/regex.rs:54:40
2019-11-06T16:48:44.8341653Z -   |
2019-11-06T16:48:44.8341891Z -LL |     let trivial_backslash = Regex::new("a/.b");
2019-11-06T16:48:44.8342352Z -   |
2019-11-06T16:48:44.8342579Z -   = help: consider using `str::contains`
2019-11-06T16:48:44.8342769Z -
2019-11-06T16:48:44.8342993Z -error: trivial regex
---
2019-11-06T16:48:44.8344561Z -
2019-11-06T16:48:44.8344774Z -error: trivial regex
2019-11-06T16:48:44.8344998Z -  --> $DIR/regex.rs:59:36
2019-11-06T16:48:44.8345213Z -   |
2019-11-06T16:48:44.8345449Z -LL |     let trivial_empty = Regex::new("^");
2019-11-06T16:48:44.8345878Z -   |
2019-11-06T16:48:44.8346478Z -   = help: the regex is unlikely to be useful as it is
2019-11-06T16:48:44.8346730Z -
2019-11-06T16:48:44.8346942Z -error: trivial regex
2019-11-06T16:48:44.8346942Z -error: trivial regex
2019-11-06T16:48:44.8347186Z -  --> $DIR/regex.rs:61:36
2019-11-06T16:48:44.8347381Z -   |
2019-11-06T16:48:44.8347614Z -LL |     let trivial_empty = Regex::new("^$");
2019-11-06T16:48:44.8348066Z -   |
2019-11-06T16:48:44.8348306Z -   = help: consider using `str::is_empty`
2019-11-06T16:48:44.8348497Z -
2019-11-06T16:48:44.8348723Z -error: trivial regex
2019-11-06T16:48:44.8348723Z -error: trivial regex
2019-11-06T16:48:44.8348946Z -  --> $DIR/regex.rs:63:44
2019-11-06T16:48:44.8349356Z -   |
2019-11-06T16:48:44.8349631Z -LL |     let binary_trivial_empty = BRegex::new("^$");
2019-11-06T16:48:44.8350087Z -   |
2019-11-06T16:48:44.8350335Z -   = help: consider using `str::is_empty`
2019-11-06T16:48:44.8350528Z -
2019-11-06T16:48:44.8350807Z -error: aborting due to 23 previous errors
---
2019-11-06T16:48:44.8354341Z 
2019-11-06T16:48:44.8354575Z ------------------------------------------
2019-11-06T16:48:44.8354622Z stderr:
2019-11-06T16:48:44.8354848Z ------------------------------------------
2019-11-06T16:48:44.8356117Z {"message":"can't find crate for `regex`","code":{"code":"E0463","explanation":"\nA plugin/crate was declared but cannot be found. Erroneous code example:\n\n```compile_fail,E0463\n#![feature(plugin)]\n#![plugin(cookie_monster)] // error: can't find crate for `cookie_monster`\nextern crate cake_is_a_lie; // error: can't find crate for `cake_is_a_lie`\n```\n\nYou need to link your code to the relevant crate in order to be able to use it\n(through Cargo or the `-L` option of rustc example). Plugins are crates as\nwell, and you link to them the same way.\n"},"level":"error","spans":[{"file_name":"tests/ui/regex.rs","byte_start":95,"byte_end":114,"line_start":4,"line_end":4,"column_start":1,"column_end":20,"is_primary":true,"text":[{"text":"extern crate regex;","highlight_start":1,"highlight_end":20}],"label":"can't find crate","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0463]: can't find crate for `regex`\n  --> tests/ui/regex.rs:4:1\n   |\nLL | extern crate regex;\n   | ^^^^^^^^^^^^^^^^^^^ can't find crate\n\n"}
2019-11-06T16:48:44.8357190Z {"message":"For more information about this error, try `rustc --explain E0463`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about this error, try `rustc --explain E0463`.\n"}
2019-11-06T16:48:44.8357245Z 
2019-11-06T16:48:44.8357480Z ------------------------------------------
2019-11-06T16:48:44.8357531Z 
2019-11-06T16:48:44.8357531Z 
2019-11-06T16:48:44.8357560Z 
2019-11-06T16:48:44.8357800Z ---- [ui] ui/used_underscore_binding.rs stdout ----
2019-11-06T16:48:44.8357851Z normalized stderr:
2019-11-06T16:48:44.8358105Z error[E0463]: can't find crate for `clippy_lints`
2019-11-06T16:48:44.8358345Z   --> $DIR/used_underscore_binding.rs:12:10
2019-11-06T16:48:44.8358392Z    |
2019-11-06T16:48:44.8358453Z LL |   #[derive(DeriveSomething)]
2019-11-06T16:48:44.8358543Z LL | | struct Baz;
2019-11-06T16:48:44.8358584Z LL | |
2019-11-06T16:48:44.8358584Z LL | |
2019-11-06T16:48:44.8358653Z LL | | macro_rules! test_macro {
2019-11-06T16:48:44.8358737Z LL | |
2019-11-06T16:48:44.8358808Z LL | | /// Tests that we lint if we use a binding with a single leading underscore
2019-11-06T16:48:44.8359036Z    | |_^ can't find crate
2019-11-06T16:48:44.8359071Z 
2019-11-06T16:48:44.8359071Z 
2019-11-06T16:48:44.8359226Z error: aborting due to previous error
2019-11-06T16:48:44.8359281Z 
2019-11-06T16:48:44.8359563Z For more information about this error, try `rustc --explain E0463`.
2019-11-06T16:48:44.8359599Z 
2019-11-06T16:48:44.8359624Z 
2019-11-06T16:48:44.8359683Z expected stderr:
2019-11-06T16:48:44.8359741Z error: used binding `_foo` which is prefixed with an underscore. A leading underscore signals that a binding will not be used.
2019-11-06T16:48:44.8360054Z    |
2019-11-06T16:48:44.8360054Z    |
2019-11-06T16:48:44.8360096Z LL |     _foo + 1
2019-11-06T16:48:44.8360198Z    |
2019-11-06T16:48:44.8360561Z    = note: `-D clippy::used-underscore-binding` implied by `-D warnings`
2019-11-06T16:48:44.8360597Z 
2019-11-06T16:48:44.8360597Z 
2019-11-06T16:48:44.8360651Z error: used binding `_foo` which is prefixed with an underscore. A leading underscore signals that a binding will not be used.
2019-11-06T16:48:44.8360971Z    |
2019-11-06T16:48:44.8361015Z LL |     println!("{}", _foo);
2019-11-06T16:48:44.8361077Z    |                    ^^^^
2019-11-06T16:48:44.8361106Z 
2019-11-06T16:48:44.8361106Z 
2019-11-06T16:48:44.8361159Z error: used binding `_foo` which is prefixed with an underscore. A leading underscore signals that a binding will not be used.
2019-11-06T16:48:44.8361470Z    |
2019-11-06T16:48:44.8361470Z    |
2019-11-06T16:48:44.8361513Z LL |     assert_eq!(_foo, _foo);
2019-11-06T16:48:44.8361607Z 
2019-11-06T16:48:44.8361607Z 
2019-11-06T16:48:44.8361659Z error: used binding `_foo` which is prefixed with an underscore. A leading underscore signals that a binding will not be used.
2019-11-06T16:48:44.8361977Z    |
2019-11-06T16:48:44.8361977Z    |
2019-11-06T16:48:44.8362022Z LL |     assert_eq!(_foo, _foo);
2019-11-06T16:48:44.8362093Z 
2019-11-06T16:48:44.8362093Z 
2019-11-06T16:48:44.8362176Z error: used binding `_underscore_field` which is prefixed with an underscore. A leading underscore signals that a binding will not be used.
2019-11-06T16:48:44.8362467Z    |
2019-11-06T16:48:44.8362467Z    |
2019-11-06T16:48:44.8362526Z LL |     s._underscore_field += 1;
2019-11-06T16:48:44.8362601Z 
2019-11-06T16:48:44.8362644Z error: aborting due to 5 previous errors
2019-11-06T16:48:44.8362690Z 
2019-11-06T16:48:44.8362716Z 
2019-11-06T16:48:44.8362716Z 
2019-11-06T16:48:44.8362741Z 
2019-11-06T16:48:44.8362782Z diff of stderr:
2019-11-06T16:48:44.8362810Z 
2019-11-06T16:48:44.8363148Z -error: used binding `_foo` which is prefixed with an underscore. A leading underscore signals that a binding will not be used.
2019-11-06T16:48:44.8363649Z +error[E0463]: can't find crate for `clippy_lints`
2019-11-06T16:48:44.8363913Z +  --> $DIR/used_underscore_binding.rs:12:10
2019-11-06T16:48:44.8363963Z     |
2019-11-06T16:48:44.8363963Z     |
2019-11-06T16:48:44.8364174Z -LL |     _foo + 1
2019-11-06T16:48:44.8364593Z -   |
2019-11-06T16:48:44.8364871Z -   = note: `-D clippy::used-underscore-binding` implied by `-D warnings`
2019-11-06T16:48:44.8364871Z -   = note: `-D clippy::used-underscore-binding` implied by `-D warnings`
2019-11-06T16:48:44.8364924Z +LL |   #[derive(DeriveSomething)]
2019-11-06T16:48:44.8365105Z +LL | | struct Baz;
2019-11-06T16:48:44.8365148Z +LL | |
2019-11-06T16:48:44.8365148Z +LL | |
2019-11-06T16:48:44.8365341Z +LL | | macro_rules! test_macro {
2019-11-06T16:48:44.8365383Z +...  |
2019-11-06T16:48:44.8365473Z +LL | | /// Tests that we lint if we use a binding with a single leading underscore
2019-11-06T16:48:44.8365832Z +   | |_^ can't find crate
2019-11-06T16:48:44.8365876Z  
2019-11-06T16:48:44.8365876Z  
2019-11-06T16:48:44.8366186Z -error: used binding `_foo` which is prefixed with an underscore. A leading underscore signals that a binding will not be used.
2019-11-06T16:48:44.8367275Z -   |
2019-11-06T16:48:44.8367496Z -LL |     println!("{}", _foo);
2019-11-06T16:48:44.8367736Z -   |                    ^^^^
2019-11-06T16:48:44.8367785Z +error: aborting due to previous error
2019-11-06T16:48:44.8367785Z +error: aborting due to previous error
2019-11-06T16:48:44.8367827Z  
2019-11-06T16:48:44.8368153Z -error: used binding `_foo` which is prefixed with an underscore. A leading underscore signals that a binding will not be used.
2019-11-06T16:48:44.8368598Z -   |
2019-11-06T16:48:44.8368598Z -   |
2019-11-06T16:48:44.8368835Z -LL |     assert_eq!(_foo, _foo);
2019-11-06T16:48:44.8369349Z -
2019-11-06T16:48:44.8369349Z -
2019-11-06T16:48:44.8369660Z -error: used binding `_foo` which is prefixed with an underscore. A leading underscore signals that a binding will not be used.
2019-11-06T16:48:44.8370124Z -   |
2019-11-06T16:48:44.8370124Z -   |
2019-11-06T16:48:44.8370344Z -LL |     assert_eq!(_foo, _foo);
2019-11-06T16:48:44.8370789Z -
2019-11-06T16:48:44.8370789Z -
2019-11-06T16:48:44.8371124Z -error: used binding `_underscore_field` which is prefixed with an underscore. A leading underscore signals that a binding will not be used.
2019-11-06T16:48:44.8371581Z -   |
2019-11-06T16:48:44.8371581Z -   |
2019-11-06T16:48:44.8371806Z -LL |     s._underscore_field += 1;
2019-11-06T16:48:44.8372240Z -
2019-11-06T16:48:44.8372471Z -error: aborting due to 5 previous errors
2019-11-06T16:48:44.8372663Z -
2019-11-06T16:48:44.8372939Z +For more information about this error, try `rustc --explain E0463`.
---
2019-11-06T16:48:44.8375806Z 
2019-11-06T16:48:44.8376039Z ------------------------------------------
2019-11-06T16:48:44.8376085Z stderr:
2019-11-06T16:48:44.8376633Z ------------------------------------------
2019-11-06T16:48:44.8379680Z {"message":"can't find crate for `clippy_lints`","code":{"code":"E0463","explanation":"\nA plugin/crate was declared but cannot be found. Erroneous code example:\n\n```compile_fail,E0463\n#![feature(plugin)]\n#![plugin(cookie_monster)] // error: can't find crate for `cookie_monster`\nextern crate cake_is_a_lie; // error: can't find crate for `cake_is_a_lie`\n```\n\nYou need to link your code to the relevant crate in order to be able to use it\n(through Cargo or the `-L` option of rustc example). Plugins are crates as\nwell, and you link to them the same way.\n"},"level":"error","spans":[{"file_name":"tests/ui/used_underscore_binding.rs","byte_start":340,"byte_end":7513128,"line_start":12,"line_end":22,"column_start":10,"column_end":2,"is_primary":true,"text":[],"label":"can't find crate","suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"tests/ui/used_underscore_binding.rs","byte_start":340,"byte_end":355,"line_start":12,"line_end":12,"column_start":10,"column_end":25,"is_primary":false,"text":[{"text":"#[derive(DeriveSomething)]","highlight_start":10,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"#[derive(DeriveSomething)]","def_site_span":{"file_name":"/checkout/src/tools/clippy/tests/ui/auxiliary/proc_macro_derive.rs","byte_start":215,"byte_end":549,"line_start":11,"line_end":22,"column_start":1,"column_end":2,"is_primary":false,"text":[{"text":"","highlight_start":1,"highlight_end":1},{"text":"","highlight_start":1,"highlight_end":1},{"text":"","highlight_start":1,"highlight_end":1},{"text":"","highlight_start":1,"highlight_end":1},{"text":"","highlight_start":1,"highlight_end":1},{"text":"","highlight_start":1,"highlight_end":1},{"text":"","highlight_start":1,"highlight_end":1},{"text":"","highlight_start":1,"highlight_end":1},{"text":"","highlight_start":1,"highlight_end":1},{"text":"","highlight_start":1,"highlight_end":1},{"text":"","highlight_start":1,"highlight_end":1},{"text":"","highlight_start":1,"highlight_end":2}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[],"rendered":"error[E0463]: can't find crate for `clippy_lints`\n  --> tests/ui/used_underscore_binding.rs:12:10\n   |\nLL |   #[derive(DeriveSomething)]\n   |  __________^\nLL | | struct Baz;\nLL | |\nLL | | macro_rules! test_macro {\n...  |\nLL | |\nLL | | /// Tests that we lint if we use a binding with a single leading underscore\n   | |_^ can't find crate\n\n"}
2019-11-06T16:48:44.8380811Z {"message":"For more information about this error, try `rustc --explain E0463`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about this error, try `rustc --explain E0463`.\n"}
2019-11-06T16:48:44.8380892Z 
2019-11-06T16:48:44.8381128Z ------------------------------------------
2019-11-06T16:48:44.8381163Z 
---
2019-11-06T16:48:44.8382831Z expected stderr:
2019-11-06T16:48:44.8382877Z error: useless lint attribute
2019-11-06T16:48:44.8383125Z   --> $DIR/useless_attribute.rs:6:1
2019-11-06T16:48:44.8383171Z    |
2019-11-06T16:48:44.8383215Z LL | #[allow(dead_code)]
2019-11-06T16:48:44.8383455Z    | ^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![allow(dead_code)]`
2019-11-06T16:48:44.8383791Z    = note: `-D clippy::useless-attribute` implied by `-D warnings`
2019-11-06T16:48:44.8383826Z 
2019-11-06T16:48:44.8383887Z error: useless lint attribute
2019-11-06T16:48:44.8384113Z   --> $DIR/useless_attribute.rs:7:1
2019-11-06T16:48:44.8384113Z   --> $DIR/useless_attribute.rs:7:1
2019-11-06T16:48:44.8384160Z    |
2019-11-06T16:48:44.8384429Z LL | #[cfg_attr(feature = "cargo-clippy", allow(dead_code))]
2019-11-06T16:48:44.8384776Z    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![cfg_attr(feature = "cargo-clippy", allow(dead_code)`
2019-11-06T16:48:44.8384986Z error: aborting due to 2 previous errors
2019-11-06T16:48:44.8385015Z 
2019-11-06T16:48:44.8385042Z 
2019-11-06T16:48:44.8385067Z 
2019-11-06T16:48:44.8385067Z 
2019-11-06T16:48:44.8385108Z diff of stderr:
2019-11-06T16:48:44.8385153Z 
2019-11-06T16:48:44.8385400Z -error: useless lint attribute
2019-11-06T16:48:44.8385640Z -  --> $DIR/useless_attribute.rs:6:1
2019-11-06T16:48:44.8385905Z +error[E0463]: can't find crate for `clippy_lints`
2019-11-06T16:48:44.8386510Z +  --> $DIR/useless_attribute.rs:14:1
2019-11-06T16:48:44.8386568Z     |
2019-11-06T16:48:44.8387144Z -LL | #[allow(dead_code)]
2019-11-06T16:48:44.8387457Z -   | ^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![allow(dead_code)]`
2019-11-06T16:48:44.8387914Z -   = note: `-D clippy::useless-attribute` implied by `-D warnings`
2019-11-06T16:48:44.8387985Z +LL | extern crate clippy_lints;
2019-11-06T16:48:44.8388225Z +   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
2019-11-06T16:48:44.8388273Z  
2019-11-06T16:48:44.8388273Z  
2019-11-06T16:48:44.8388519Z -error: useless lint attribute
2019-11-06T16:48:44.8388750Z -  --> $DIR/useless_attribute.rs:7:1
2019-11-06T16:48:44.8388947Z -   |
2019-11-06T16:48:44.8393223Z -LL | #[cfg_attr(feature = "cargo-clippy", allow(dead_code))]
2019-11-06T16:48:44.8393669Z -   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![cfg_attr(feature = "cargo-clippy", allow(dead_code)`
2019-11-06T16:48:44.8393792Z  
2019-11-06T16:48:44.8394032Z -error: aborting due to 2 previous errors
2019-11-06T16:48:44.8394229Z -
2019-11-06T16:48:44.8395940Z +For more information about this error, try `rustc --explain E0463`.
---
2019-11-06T16:48:44.8399540Z 
2019-11-06T16:48:44.8399793Z ------------------------------------------
2019-11-06T16:48:44.8399841Z stderr:
2019-11-06T16:48:44.8400066Z ------------------------------------------
2019-11-06T16:48:44.8401400Z {"message":"can't find crate for `clippy_lints`","code":{"code":"E0463","explanation":"\nA plugin/crate was declared but cannot be found. Erroneous code example:\n\n```compile_fail,E0463\n#![feature(plugin)]\n#![plugin(cookie_monster)] // error: can't find crate for `cookie_monster`\nextern crate cake_is_a_lie; // error: can't find crate for `cake_is_a_lie`\n```\n\nYou need to link your code to the relevant crate in order to be able to use it\n(through Cargo or the `-L` option of rustc example). Plugins are crates as\nwell, and you link to them the same way.\n"},"level":"error","spans":[{"file_name":"tests/ui/useless_attribute.rs","byte_start":327,"byte_end":353,"line_start":14,"line_end":14,"column_start":1,"column_end":27,"is_primary":true,"text":[{"text":"extern crate clippy_lints;","highlight_start":1,"highlight_end":27}],"label":"can't find crate","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0463]: can't find crate for `clippy_lints`\n  --> tests/ui/useless_attribute.rs:14:1\n   |\nLL | extern crate clippy_lints;\n   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate\n\n"}
2019-11-06T16:48:44.8402282Z {"message":"For more information about this error, try `rustc --explain E0463`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about this error, try `rustc --explain E0463`.\n"}
2019-11-06T16:48:44.8402338Z 
2019-11-06T16:48:44.8402571Z ------------------------------------------
2019-11-06T16:48:44.8402620Z 
---
2019-11-06T17:26:57.9740551Z Verifying status of rustfmt...
2019-11-06T17:26:57.9755782Z Verifying status of clippy-driver...
2019-11-06T17:26:57.9770087Z This PR updated 'src/tools/clippy', verifying if status is 'test-pass'...
2019-11-06T17:26:57.9781586Z 
2019-11-06T17:26:57.9782196Z ⚠️ We detected that this PR updated 'clippy-driver', but its tests failed.
2019-11-06T17:26:57.9782506Z 
2019-11-06T17:26:57.9790841Z If you do intend to update 'clippy-driver', please check the error messages above and
2019-11-06T17:26:57.9790938Z commit another update.
2019-11-06T17:26:57.9790979Z 
2019-11-06T17:26:57.9791570Z If you do NOT intend to update 'clippy-driver', please ensure you did not accidentally
2019-11-06T17:26:57.9794313Z change the submodule at 'src/tools/clippy'. You may ask your reviewer for the
2019-11-06T17:26:57.9797344Z proper steps.
2019-11-06T17:26:57.9875323Z   local time: Wed Nov  6 17:26:57 UTC 2019
2019-11-06T17:26:58.0967673Z   network time: Wed, 06 Nov 2019 17:26:58 GMT
2019-11-06T17:26:58.0968511Z == end clock drift check ==
2019-11-06T17:26:59.4349844Z 
2019-11-06T17:26:59.4349844Z 
2019-11-06T17:26:59.4477004Z ##[error]Bash exited with code '3'.
2019-11-06T17:26:59.4553969Z ##[section]Starting: Checkout
2019-11-06T17:26:59.4556296Z ==============================================================================
2019-11-06T17:26:59.4556364Z Task         : Get sources
2019-11-06T17:26:59.4556432Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

@tesuji
Copy link
Contributor Author

tesuji commented Nov 6, 2019

@bors r-

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Nov 6, 2019
@Manishearth
Copy link
Member

This is because some of our tests import clippy_lints

@Mark-Simulacrum we've got some tests for internal lints so we'd like to keep doing this, is there a way for us to continue to extern crate clippy_lints without triggering this error?

@Manishearth
Copy link
Member

Opened rust-lang/rust-clippy#4784 , however this means that we're unable to test internal lints.

Is there a reason why clippy is getting loaded as a plugin there? I can't reproduce this locally with rustup-tooclhain-install-master.

@rust-highfive
Copy link
Collaborator

The job x86_64-gnu-tools of your PR failed (pretty log, raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
2019-11-06T19:43:59.2566326Z ##[command]git remote add origin https://github.com/rust-lang/rust
2019-11-06T19:43:59.2730096Z ##[command]git config gc.auto 0
2019-11-06T19:43:59.2796880Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2019-11-06T19:43:59.2860930Z ##[command]git config --get-all http.proxy
2019-11-06T19:43:59.3012213Z ##[command]git -c http.extraheader="AUTHORIZATION: basic ***" fetch --force --tags --prune --progress --no-recurse-submodules --depth=2 origin +refs/heads/*:refs/remotes/origin/* +refs/pull/66158/merge:refs/remotes/pull/66158/merge
---
2019-11-06T21:19:43.8247102Z     Finished release [optimized] target(s) in 10m 26s
2019-11-06T21:21:50.5626576Z Error: there are broken links
2019-11-06T21:21:50.5629104Z  Caused By: "https://doc.rust-lang.org/nightly/nightly-rustc/syntax/parse/struct.ParseSess.html" returned 404 Not Found
2019-11-06T21:21:50.5629986Z  Caused By: "https://doc.rust-lang.org/nightly/nightly-rustc/syntax/parse/struct.ParseSess.html#method.buffer_lint" returned 404 Not Found
2019-11-06T21:21:50.5630554Z  Caused By: "***/tree/master/src/libsyntax/ext/tt" returned 404 Not Found
2019-11-06T21:21:50.5631254Z  Caused By: "https://doc.rust-lang.org/nightly/nightly-rustc/syntax/ext/tt/macro_parser/fn.parse.html" returned 404 Not Found
2019-11-06T21:21:50.5631539Z  Caused By: "https://doc.rust-lang.org/nightly/nightly-rustc/syntax/ext/tt/macro_rules/" returned 404 Not Found
2019-11-06T21:21:50.5631797Z  Caused By: "https://doc.rust-lang.org/nightly/nightly-rustc/syntax/ext/tt/macro_parser/" returned 404 Not Found
2019-11-06T21:21:50.5632056Z  Caused By: "https://github.com/rust-lang/chalk/blob/master/src/test/wf.rs" returned 404 Not Found
---
2019-11-06T21:36:06.7077047Z 
2019-11-06T21:36:06.7077283Z ------------------------------------------
2019-11-06T21:36:06.7077328Z stderr:
2019-11-06T21:36:06.7077546Z ------------------------------------------
2019-11-06T21:36:06.7079694Z {"message":"can't find crate for `clippy_lints`","code":{"code":"E0463","explanation":"\nA plugin/crate was declared but cannot be found. Erroneous code example:\n\n```compile_fail,E0463\n#![feature(plugin)]\n#![plugin(cookie_monster)] // error: can't find crate for `cookie_monster`\nextern crate cake_is_a_lie; // error: can't find crate for `cake_is_a_lie`\n```\n\nYou need to link your code to the relevant crate in order to be able to use it\n(through Cargo or the `-L` option of rustc example). Plugins are crates as\nwell, and you link to them the same way.\n"},"level":"error","spans":[{"file_name":"tests/ui/lint_without_lint_pass.rs","byte_start":142,"byte_end":168,"line_start":9,"line_end":9,"column_start":1,"column_end":27,"is_primary":true,"text":[{"text":"extern crate clippy_lints;","highlight_start":1,"highlight_end":27}],"label":"can't find crate","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0463]: can't find crate for `clippy_lints`\n  --> tests/ui/lint_without_lint_pass.rs:9:1\n   |\nLL | extern crate clippy_lints;\n   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate\n\n"}
2019-11-06T21:36:06.7080478Z {"message":"For more information about this error, try `rustc --explain E0463`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about this error, try `rustc --explain E0463`.\n"}
2019-11-06T21:36:06.7080537Z 
2019-11-06T21:36:06.7080701Z ------------------------------------------
2019-11-06T21:36:06.7080734Z 
---
2019-11-06T21:36:06.7082862Z expected stderr:
2019-11-06T21:36:06.7082917Z error: trivial regex
2019-11-06T21:36:06.7083091Z   --> $DIR/regex.rs:13:45
2019-11-06T21:36:06.7083130Z    |
2019-11-06T21:36:06.7083185Z LL |     let pipe_in_wrong_position = Regex::new("|");
2019-11-06T21:36:06.7083344Z    |
2019-11-06T21:36:06.7083565Z    = note: `-D clippy::trivial-regex` implied by `-D warnings`
2019-11-06T21:36:06.7083627Z    = help: the regex is unlikely to be useful as it is
2019-11-06T21:36:06.7083661Z 
2019-11-06T21:36:06.7083661Z 
2019-11-06T21:36:06.7083696Z error: trivial regex
2019-11-06T21:36:06.7083887Z   --> $DIR/regex.rs:14:60
2019-11-06T21:36:06.7083925Z    |
2019-11-06T21:36:06.7083965Z LL |     let pipe_in_wrong_position_builder = RegexBuilder::new("|");
2019-11-06T21:36:06.7084067Z    |
2019-11-06T21:36:06.7084106Z    = help: the regex is unlikely to be useful as it is
2019-11-06T21:36:06.7084132Z 
2019-11-06T21:36:06.7084132Z 
2019-11-06T21:36:06.7084192Z error: regex syntax error: invalid character class range, the start must be <= the end
2019-11-06T21:36:06.7084407Z    |
2019-11-06T21:36:06.7084407Z    |
2019-11-06T21:36:06.7084769Z LL |     let wrong_char_ranice = Regex::new("[z-a]");
2019-11-06T21:36:06.7084865Z    |
2019-11-06T21:36:06.7084865Z    |
2019-11-06T21:36:06.7085377Z    = note: `-D clippy::invalid-regex` implied by `-D warnings`
2019-11-06T21:36:06.7085426Z 
2019-11-06T21:36:06.7085467Z error: regex syntax error: invalid character class range, the start must be <= the end
2019-11-06T21:36:06.7085678Z    |
2019-11-06T21:36:06.7085678Z    |
2019-11-06T21:36:06.7085855Z LL |     let some_unicode = Regex::new("[é-è]");
2019-11-06T21:36:06.7085919Z 
2019-11-06T21:36:06.7085969Z error: regex syntax error on position 0: unclosed group
2019-11-06T21:36:06.7086127Z   --> $DIR/regex.rs:18:33
2019-11-06T21:36:06.7086160Z    |
2019-11-06T21:36:06.7086160Z    |
2019-11-06T21:36:06.7086211Z LL |     let some_regex = Regex::new(OPENING_PAREN);
2019-11-06T21:36:06.7086281Z 
2019-11-06T21:36:06.7086313Z error: trivial regex
2019-11-06T21:36:06.7087303Z   --> $DIR/regex.rs:20:53
2019-11-06T21:36:06.7087357Z    |
2019-11-06T21:36:06.7087357Z    |
2019-11-06T21:36:06.7087402Z LL |     let binary_pipe_in_wrong_position = BRegex::new("|");
2019-11-06T21:36:06.7087525Z    |
2019-11-06T21:36:06.7087570Z    = help: the regex is unlikely to be useful as it is
2019-11-06T21:36:06.7087600Z 
2019-11-06T21:36:06.7087662Z error: regex syntax error on position 0: unclosed group
2019-11-06T21:36:06.7087662Z error: regex syntax error on position 0: unclosed group
2019-11-06T21:36:06.7087866Z   --> $DIR/regex.rs:21:41
2019-11-06T21:36:06.7087909Z    |
2019-11-06T21:36:06.7087971Z LL |     let some_binary_regex = BRegex::new(OPENING_PAREN);
2019-11-06T21:36:06.7088052Z 
2019-11-06T21:36:06.7088097Z error: regex syntax error on position 0: unclosed group
2019-11-06T21:36:06.7088313Z   --> $DIR/regex.rs:22:56
2019-11-06T21:36:06.7088363Z    |
2019-11-06T21:36:06.7088363Z    |
2019-11-06T21:36:06.7088411Z LL |     let some_binary_regex_builder = BRegexBuilder::new(OPENING_PAREN);
2019-11-06T21:36:06.7088512Z 
2019-11-06T21:36:06.7088650Z error: regex syntax error on position 0: unclosed group
2019-11-06T21:36:06.7088881Z   --> $DIR/regex.rs:34:37
2019-11-06T21:36:06.7088940Z    |
2019-11-06T21:36:06.7088940Z    |
2019-11-06T21:36:06.7089190Z LL |     let set_error = RegexSet::new(&[OPENING_PAREN, r"[a-z]+/.(com|org|net)"]);
2019-11-06T21:36:06.7089289Z 
2019-11-06T21:36:06.7089333Z error: regex syntax error on position 0: unclosed group
2019-11-06T21:36:06.7089532Z   --> $DIR/regex.rs:35:39
2019-11-06T21:36:06.7089575Z    |
2019-11-06T21:36:06.7089575Z    |
2019-11-06T21:36:06.7089841Z LL |     let bset_error = BRegexSet::new(&[OPENING_PAREN, r"[a-z]+/.(com|org|net)"]);
2019-11-06T21:36:06.7090165Z 
2019-11-06T21:36:06.7090217Z error: regex syntax error: unrecognized escape sequence
2019-11-06T21:36:06.7090555Z   --> $DIR/regex.rs:37:45
2019-11-06T21:36:06.7090587Z    |
2019-11-06T21:36:06.7090587Z    |
2019-11-06T21:36:06.7090629Z LL |     let raw_string_error = Regex::new(r"[...//...]");
2019-11-06T21:36:06.7090706Z 
2019-11-06T21:36:06.7090741Z error: regex syntax error: unrecognized escape sequence
2019-11-06T21:36:06.7090912Z   --> $DIR/regex.rs:38:46
2019-11-06T21:36:06.7090945Z    |
2019-11-06T21:36:06.7090945Z    |
2019-11-06T21:36:06.7090984Z LL |     let raw_string_error = Regex::new(r#"[...//...]"#);
2019-11-06T21:36:06.7091062Z 
2019-11-06T21:36:06.7091092Z error: trivial regex
2019-11-06T21:36:06.7091244Z   --> $DIR/regex.rs:42:33
2019-11-06T21:36:06.7091293Z    |
2019-11-06T21:36:06.7091293Z    |
2019-11-06T21:36:06.7091326Z LL |     let trivial_eq = Regex::new("^foobar$");
2019-11-06T21:36:06.7091418Z    |
2019-11-06T21:36:06.7091418Z    |
2019-11-06T21:36:06.7091452Z    = help: consider using `==` on `str`s
2019-11-06T21:36:06.7091505Z error: trivial regex
2019-11-06T21:36:06.7091684Z   --> $DIR/regex.rs:44:48
2019-11-06T21:36:06.7091718Z    |
2019-11-06T21:36:06.7091718Z    |
2019-11-06T21:36:06.7091753Z LL |     let trivial_eq_builder = RegexBuilder::new("^foobar$");
2019-11-06T21:36:06.7091842Z    |
2019-11-06T21:36:06.7091842Z    |
2019-11-06T21:36:06.7091875Z    = help: consider using `==` on `str`s
2019-11-06T21:36:06.7091945Z error: trivial regex
2019-11-06T21:36:06.7092101Z   --> $DIR/regex.rs:46:42
2019-11-06T21:36:06.7092134Z    |
2019-11-06T21:36:06.7092134Z    |
2019-11-06T21:36:06.7092168Z LL |     let trivial_starts_with = Regex::new("^foobar");
2019-11-06T21:36:06.7092252Z    |
2019-11-06T21:36:06.7092292Z    = help: consider using `str::starts_with`
2019-11-06T21:36:06.7092333Z 
2019-11-06T21:36:06.7092540Z error: trivial regex
2019-11-06T21:36:06.7092540Z error: trivial regex
2019-11-06T21:36:06.7092952Z   --> $DIR/regex.rs:48:40
2019-11-06T21:36:06.7093166Z    |
2019-11-06T21:36:06.7093226Z LL |     let trivial_ends_with = Regex::new("foobar$");
2019-11-06T21:36:06.7093485Z    |
2019-11-06T21:36:06.7093540Z    = help: consider using `str::ends_with`
2019-11-06T21:36:06.7093567Z 
2019-11-06T21:36:06.7093601Z error: trivial regex
---
2019-11-06T21:36:06.7094025Z 
2019-11-06T21:36:06.7094059Z error: trivial regex
2019-11-06T21:36:06.7094259Z   --> $DIR/regex.rs:52:39
2019-11-06T21:36:06.7094296Z    |
2019-11-06T21:36:06.7094336Z LL |     let trivial_contains = Regex::new(NOT_A_REAL_REGEX);
2019-11-06T21:36:06.7094497Z    |
2019-11-06T21:36:06.7094539Z    = help: consider using `str::contains`
2019-11-06T21:36:06.7094564Z 
2019-11-06T21:36:06.7094615Z error: trivial regex
2019-11-06T21:36:06.7094615Z error: trivial regex
2019-11-06T21:36:06.7094806Z   --> $DIR/regex.rs:54:40
2019-11-06T21:36:06.7094844Z    |
2019-11-06T21:36:06.7094898Z LL |     let trivial_backslash = Regex::new("a/.b");
2019-11-06T21:36:06.7094978Z    |
2019-11-06T21:36:06.7095032Z    = help: consider using `str::contains`
2019-11-06T21:36:06.7095060Z 
2019-11-06T21:36:06.7095100Z error: trivial regex
---
2019-11-06T21:36:06.7095668Z 
2019-11-06T21:36:06.7095706Z error: trivial regex
2019-11-06T21:36:06.7095951Z   --> $DIR/regex.rs:59:36
2019-11-06T21:36:06.7095992Z    |
2019-11-06T21:36:06.7096033Z LL |     let trivial_empty = Regex::new("^");
2019-11-06T21:36:06.7096801Z    |
2019-11-06T21:36:06.7096846Z    = help: the regex is unlikely to be useful as it is
2019-11-06T21:36:06.7096877Z 
2019-11-06T21:36:06.7096940Z error: trivial regex
2019-11-06T21:36:06.7096940Z error: trivial regex
2019-11-06T21:36:06.7097166Z   --> $DIR/regex.rs:61:36
2019-11-06T21:36:06.7097210Z    |
2019-11-06T21:36:06.7097254Z LL |     let trivial_empty = Regex::new("^$");
2019-11-06T21:36:06.7097360Z    |
2019-11-06T21:36:06.7097413Z    = help: consider using `str::is_empty`
2019-11-06T21:36:06.7097459Z 
2019-11-06T21:36:06.7097500Z error: trivial regex
2019-11-06T21:36:06.7097500Z error: trivial regex
2019-11-06T21:36:06.7097704Z   --> $DIR/regex.rs:63:44
2019-11-06T21:36:06.7097747Z    |
2019-11-06T21:36:06.7097816Z LL |     let binary_trivial_empty = BRegex::new("^$");
2019-11-06T21:36:06.7097907Z    |
2019-11-06T21:36:06.7097969Z    = help: consider using `str::is_empty`
2019-11-06T21:36:06.7097998Z 
2019-11-06T21:36:06.7098040Z error: aborting due to 23 previous errors
---
2019-11-06T21:36:06.7099388Z -  --> $DIR/regex.rs:13:45
2019-11-06T21:36:06.7099606Z +error[E0463]: can't find crate for `regex`
2019-11-06T21:36:06.7099803Z +  --> $DIR/regex.rs:4:1
2019-11-06T21:36:06.7100032Z     |
2019-11-06T21:36:06.7100209Z -LL |     let pipe_in_wrong_position = Regex::new("|");
2019-11-06T21:36:06.7100519Z -   |
2019-11-06T21:36:06.7100720Z -   = note: `-D clippy::trivial-regex` implied by `-D warnings`
2019-11-06T21:36:06.7100897Z -   = help: the regex is unlikely to be useful as it is
2019-11-06T21:36:06.7100934Z +LL | extern crate regex;
2019-11-06T21:36:06.7100934Z +LL | extern crate regex;
2019-11-06T21:36:06.7101112Z +   | ^^^^^^^^^^^^^^^^^^^ can't find crate
2019-11-06T21:36:06.7101147Z  
2019-11-06T21:36:06.7101291Z -error: trivial regex
2019-11-06T21:36:06.7101457Z -  --> $DIR/regex.rs:14:60
2019-11-06T21:36:06.7101596Z -   |
2019-11-06T21:36:06.7101781Z -LL |     let pipe_in_wrong_position_builder = RegexBuilder::new("|");
2019-11-06T21:36:06.7102121Z -   |
2019-11-06T21:36:06.7103219Z -   = help: the regex is unlikely to be useful as it is
2019-11-06T21:36:06.7103280Z +error: aborting due to previous error
2019-11-06T21:36:06.7103332Z  
2019-11-06T21:36:06.7103332Z  
2019-11-06T21:36:06.7103534Z -error: regex syntax error: invalid character class range, the start must be <= the end
2019-11-06T21:36:06.7104026Z -   |
2019-11-06T21:36:06.7104026Z -   |
2019-11-06T21:36:06.7104732Z -LL |     let wrong_char_ranice = Regex::new("[z-a]");
2019-11-06T21:36:06.7105153Z -   |
2019-11-06T21:36:06.7105153Z -   |
2019-11-06T21:36:06.7105359Z -   = note: `-D clippy::invalid-regex` implied by `-D warnings`
2019-11-06T21:36:06.7105515Z -
2019-11-06T21:36:06.7105756Z -error: regex syntax error: invalid character class range, the start must be <= the end
2019-11-06T21:36:06.7106626Z -   |
2019-11-06T21:36:06.7106626Z -   |
2019-11-06T21:36:06.7106886Z -LL |     let some_unicode = Regex::new("[é-è]");
2019-11-06T21:36:06.7107277Z -
2019-11-06T21:36:06.7108013Z -error: regex syntax error on position 0: unclosed group
2019-11-06T21:36:06.7108258Z -  --> $DIR/regex.rs:18:33
2019-11-06T21:36:06.7108433Z -   |
2019-11-06T21:36:06.7108433Z -   |
2019-11-06T21:36:06.7108652Z -LL |     let some_regex = Regex::new(OPENING_PAREN);
2019-11-06T21:36:06.7109080Z -
2019-11-06T21:36:06.7109267Z -error: trivial regex
2019-11-06T21:36:06.7109480Z -  --> $DIR/regex.rs:20:53
2019-11-06T21:36:06.7109656Z -   |
2019-11-06T21:36:06.7109656Z -   |
2019-11-06T21:36:06.7109890Z -LL |     let binary_pipe_in_wrong_position = BRegex::new("|");
2019-11-06T21:36:06.7110313Z -   |
2019-11-06T21:36:06.7110534Z -   = help: the regex is unlikely to be useful as it is
2019-11-06T21:36:06.7110706Z -
2019-11-06T21:36:06.7111092Z -error: regex syntax error on position 0: unclosed group
2019-11-06T21:36:06.7111092Z -error: regex syntax error on position 0: unclosed group
2019-11-06T21:36:06.7111262Z -  --> $DIR/regex.rs:21:41
2019-11-06T21:36:06.7111410Z -   |
2019-11-06T21:36:06.7111785Z -LL |     let some_binary_regex = BRegex::new(OPENING_PAREN);
2019-11-06T21:36:06.7112266Z -
2019-11-06T21:36:06.7112444Z -error: regex syntax error on position 0: unclosed group
2019-11-06T21:36:06.7112628Z -  --> $DIR/regex.rs:22:56
2019-11-06T21:36:06.7112769Z -   |
2019-11-06T21:36:06.7112769Z -   |
2019-11-06T21:36:06.7112962Z -LL |     let some_binary_regex_builder = BRegexBuilder::new(OPENING_PAREN);
2019-11-06T21:36:06.7113310Z -
2019-11-06T21:36:06.7113487Z -error: regex syntax error on position 0: unclosed group
2019-11-06T21:36:06.7113662Z -  --> $DIR/regex.rs:34:37
2019-11-06T21:36:06.7113800Z -   |
2019-11-06T21:36:06.7113800Z -   |
2019-11-06T21:36:06.7113999Z -LL |     let set_error = RegexSet::new(&[OPENING_PAREN, r"[a-z]+/.(com|org|net)"]);
2019-11-06T21:36:06.7114335Z -
2019-11-06T21:36:06.7114523Z -error: regex syntax error on position 0: unclosed group
2019-11-06T21:36:06.7114682Z -  --> $DIR/regex.rs:35:39
2019-11-06T21:36:06.7115031Z -   |
2019-11-06T21:36:06.7115031Z -   |
2019-11-06T21:36:06.7115224Z -LL |     let bset_error = BRegexSet::new(&[OPENING_PAREN, r"[a-z]+/.(com|org|net)"]);
2019-11-06T21:36:06.7115736Z -
2019-11-06T21:36:06.7116184Z -error: regex syntax error: unrecognized escape sequence
2019-11-06T21:36:06.7116356Z -  --> $DIR/regex.rs:37:45
2019-11-06T21:36:06.7116672Z -   |
2019-11-06T21:36:06.7116672Z -   |
2019-11-06T21:36:06.7117108Z -LL |     let raw_string_error = Regex::new(r"[...//...]");
2019-11-06T21:36:06.7117523Z -
2019-11-06T21:36:06.7117745Z -error: regex syntax error: unrecognized escape sequence
2019-11-06T21:36:06.7117942Z -  --> $DIR/regex.rs:38:46
2019-11-06T21:36:06.7118116Z -   |
2019-11-06T21:36:06.7118116Z -   |
2019-11-06T21:36:06.7118613Z -LL |     let raw_string_error = Regex::new(r#"[...//...]"#);
2019-11-06T21:36:06.7119023Z -
2019-11-06T21:36:06.7119229Z -error: trivial regex
2019-11-06T21:36:06.7119427Z -  --> $DIR/regex.rs:42:33
2019-11-06T21:36:06.7119601Z -   |
2019-11-06T21:36:06.7119601Z -   |
2019-11-06T21:36:06.7119947Z -LL |     let trivial_eq = Regex::new("^foobar$");
2019-11-06T21:36:06.7120669Z -   |
2019-11-06T21:36:06.7120669Z -   |
2019-11-06T21:36:06.7120838Z -   = help: consider using `==` on `str`s
2019-11-06T21:36:06.7121148Z -error: trivial regex
2019-11-06T21:36:06.7121309Z -  --> $DIR/regex.rs:44:48
2019-11-06T21:36:06.7121468Z -   |
2019-11-06T21:36:06.7121468Z -   |
2019-11-06T21:36:06.7121813Z -LL |     let trivial_eq_builder = RegexBuilder::new("^foobar$");
2019-11-06T21:36:06.7122152Z -   |
2019-11-06T21:36:06.7122152Z -   |
2019-11-06T21:36:06.7122317Z -   = help: consider using `==` on `str`s
2019-11-06T21:36:06.7122693Z -error: trivial regex
2019-11-06T21:36:06.7122864Z -  --> $DIR/regex.rs:46:42
2019-11-06T21:36:06.7123003Z -   |
2019-11-06T21:36:06.7123003Z -   |
2019-11-06T21:36:06.7123181Z -LL |     let trivial_starts_with = Regex::new("^foobar");
2019-11-06T21:36:06.7123525Z -   |
2019-11-06T21:36:06.7123693Z -   = help: consider using `str::starts_with`
2019-11-06T21:36:06.7123846Z -
2019-11-06T21:36:06.7124219Z -error: trivial regex
2019-11-06T21:36:06.7124219Z -error: trivial regex
2019-11-06T21:36:06.7124564Z -  --> $DIR/regex.rs:48:40
2019-11-06T21:36:06.7124709Z -   |
2019-11-06T21:36:06.7124968Z -LL |     let trivial_ends_with = Regex::new("foobar$");
2019-11-06T21:36:06.7125294Z -   |
2019-11-06T21:36:06.7125481Z -   = help: consider using `str::ends_with`
2019-11-06T21:36:06.7125624Z -
2019-11-06T21:36:06.7125778Z -error: trivial regex
---
2019-11-06T21:36:06.7127513Z -
2019-11-06T21:36:06.7127715Z -error: trivial regex
2019-11-06T21:36:06.7127911Z -  --> $DIR/regex.rs:52:39
2019-11-06T21:36:06.7128083Z -   |
2019-11-06T21:36:06.7128311Z -LL |     let trivial_contains = Regex::new(NOT_A_REAL_REGEX);
2019-11-06T21:36:06.7128737Z -   |
2019-11-06T21:36:06.7128946Z -   = help: consider using `str::contains`
2019-11-06T21:36:06.7129134Z -
2019-11-06T21:36:06.7129319Z -error: trivial regex
2019-11-06T21:36:06.7129319Z -error: trivial regex
2019-11-06T21:36:06.7129514Z -  --> $DIR/regex.rs:54:40
2019-11-06T21:36:06.7129703Z -   |
2019-11-06T21:36:06.7129924Z -LL |     let trivial_backslash = Regex::new("a/.b");
2019-11-06T21:36:06.7130613Z -   |
2019-11-06T21:36:06.7130786Z -   = help: consider using `str::contains`
2019-11-06T21:36:06.7130925Z -
2019-11-06T21:36:06.7131078Z -error: trivial regex
---
2019-11-06T21:36:06.7132233Z -
2019-11-06T21:36:06.7132557Z -error: trivial regex
2019-11-06T21:36:06.7132713Z -  --> $DIR/regex.rs:59:36
2019-11-06T21:36:06.7132851Z -   |
2019-11-06T21:36:06.7133033Z -LL |     let trivial_empty = Regex::new("^");
2019-11-06T21:36:06.7133342Z -   |
2019-11-06T21:36:06.7133542Z -   = help: the regex is unlikely to be useful as it is
2019-11-06T21:36:06.7133680Z -
2019-11-06T21:36:06.7133829Z -error: trivial regex
2019-11-06T21:36:06.7133829Z -error: trivial regex
2019-11-06T21:36:06.7133986Z -  --> $DIR/regex.rs:61:36
2019-11-06T21:36:06.7134139Z -   |
2019-11-06T21:36:06.7134403Z -LL |     let trivial_empty = Regex::new("^$");
2019-11-06T21:36:06.7134760Z -   |
2019-11-06T21:36:06.7134924Z -   = help: consider using `str::is_empty`
2019-11-06T21:36:06.7135058Z -
2019-11-06T21:36:06.7135222Z -error: trivial regex
2019-11-06T21:36:06.7135222Z -error: trivial regex
2019-11-06T21:36:06.7135379Z -  --> $DIR/regex.rs:63:44
2019-11-06T21:36:06.7135516Z -   |
2019-11-06T21:36:06.7135690Z -LL |     let binary_trivial_empty = BRegex::new("^$");
2019-11-06T21:36:06.7136026Z -   |
2019-11-06T21:36:06.7136565Z -   = help: consider using `str::is_empty`
2019-11-06T21:36:06.7136765Z -
2019-11-06T21:36:06.7136979Z -error: aborting due to 23 previous errors
---
2019-11-06T21:36:06.7141473Z 
2019-11-06T21:36:06.7141661Z ------------------------------------------
2019-11-06T21:36:06.7141698Z stderr:
2019-11-06T21:36:06.7141866Z ------------------------------------------
2019-11-06T21:36:06.7142970Z {"message":"can't find crate for `regex`","code":{"code":"E0463","explanation":"\nA plugin/crate was declared but cannot be found. Erroneous code example:\n\n```compile_fail,E0463\n#![feature(plugin)]\n#![plugin(cookie_monster)] // error: can't find crate for `cookie_monster`\nextern crate cake_is_a_lie; // error: can't find crate for `cake_is_a_lie`\n```\n\nYou need to link your code to the relevant crate in order to be able to use it\n(through Cargo or the `-L` option of rustc example). Plugins are crates as\nwell, and you link to them the same way.\n"},"level":"error","spans":[{"file_name":"tests/ui/regex.rs","byte_start":95,"byte_end":114,"line_start":4,"line_end":4,"column_start":1,"column_end":20,"is_primary":true,"text":[{"text":"extern crate regex;","highlight_start":1,"highlight_end":20}],"label":"can't find crate","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0463]: can't find crate for `regex`\n  --> tests/ui/regex.rs:4:1\n   |\nLL | extern crate regex;\n   | ^^^^^^^^^^^^^^^^^^^ can't find crate\n\n"}
2019-11-06T21:36:06.7143625Z {"message":"For more information about this error, try `rustc --explain E0463`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about this error, try `rustc --explain E0463`.\n"}
2019-11-06T21:36:06.7143684Z 
2019-11-06T21:36:06.7143851Z ------------------------------------------
2019-11-06T21:36:06.7143877Z 
2019-11-06T21:36:06.7143877Z 
2019-11-06T21:36:06.7143916Z 
2019-11-06T21:36:06.7144089Z ---- [ui] ui/used_underscore_binding.rs stdout ----
2019-11-06T21:36:06.7144198Z normalized stderr:
2019-11-06T21:36:06.7144391Z error[E0463]: can't find crate for `clippy_lints`
2019-11-06T21:36:06.7144582Z   --> $DIR/used_underscore_binding.rs:12:10
2019-11-06T21:36:06.7144618Z    |
2019-11-06T21:36:06.7144652Z LL |   #[derive(DeriveSomething)]
2019-11-06T21:36:06.7144744Z LL | | struct Baz;
2019-11-06T21:36:06.7144777Z LL | |
2019-11-06T21:36:06.7144777Z LL | |
2019-11-06T21:36:06.7144828Z LL | | macro_rules! test_macro {
2019-11-06T21:36:06.7144892Z LL | |
2019-11-06T21:36:06.7144931Z LL | | /// Tests that we lint if we use a binding with a single leading underscore
2019-11-06T21:36:06.7145113Z    | |_^ can't find crate
2019-11-06T21:36:06.7145140Z 
2019-11-06T21:36:06.7145140Z 
2019-11-06T21:36:06.7145175Z error: aborting due to previous error
2019-11-06T21:36:06.7145197Z 
2019-11-06T21:36:06.7145407Z For more information about this error, try `rustc --explain E0463`.
2019-11-06T21:36:06.7145434Z 
2019-11-06T21:36:06.7145455Z 
2019-11-06T21:36:06.7145495Z expected stderr:
2019-11-06T21:36:06.7145556Z error: used binding `_foo` which is prefixed with an underscore. A leading underscore signals that a binding will not be used.
2019-11-06T21:36:06.7145773Z    |
2019-11-06T21:36:06.7145773Z    |
2019-11-06T21:36:06.7145830Z LL |     _foo + 1
2019-11-06T21:36:06.7145896Z    |
2019-11-06T21:36:06.7146107Z    = note: `-D clippy::used-underscore-binding` implied by `-D warnings`
2019-11-06T21:36:06.7146134Z 
2019-11-06T21:36:06.7146134Z 
2019-11-06T21:36:06.7146351Z error: used binding `_foo` which is prefixed with an underscore. A leading underscore signals that a binding will not be used.
2019-11-06T21:36:06.7146846Z    |
2019-11-06T21:36:06.7146889Z LL |     println!("{}", _foo);
2019-11-06T21:36:06.7146933Z    |                    ^^^^
2019-11-06T21:36:06.7146980Z 
2019-11-06T21:36:06.7146980Z 
2019-11-06T21:36:06.7147033Z error: used binding `_foo` which is prefixed with an underscore. A leading underscore signals that a binding will not be used.
2019-11-06T21:36:06.7147330Z    |
2019-11-06T21:36:06.7147330Z    |
2019-11-06T21:36:06.7147372Z LL |     assert_eq!(_foo, _foo);
2019-11-06T21:36:06.7147452Z 
2019-11-06T21:36:06.7147452Z 
2019-11-06T21:36:06.7147523Z error: used binding `_foo` which is prefixed with an underscore. A leading underscore signals that a binding will not be used.
2019-11-06T21:36:06.7147794Z    |
2019-11-06T21:36:06.7147794Z    |
2019-11-06T21:36:06.7147853Z LL |     assert_eq!(_foo, _foo);
2019-11-06T21:36:06.7147926Z 
2019-11-06T21:36:06.7147926Z 
2019-11-06T21:36:06.7147982Z error: used binding `_underscore_field` which is prefixed with an underscore. A leading underscore signals that a binding will not be used.
2019-11-06T21:36:06.7148278Z    |
2019-11-06T21:36:06.7148278Z    |
2019-11-06T21:36:06.7148320Z LL |     s._underscore_field += 1;
2019-11-06T21:36:06.7148409Z 
2019-11-06T21:36:06.7148452Z error: aborting due to 5 previous errors
2019-11-06T21:36:06.7148480Z 
2019-11-06T21:36:06.7148506Z 
2019-11-06T21:36:06.7148506Z 
2019-11-06T21:36:06.7148642Z 
2019-11-06T21:36:06.7148690Z diff of stderr:
2019-11-06T21:36:06.7148717Z 
2019-11-06T21:36:06.7149032Z -error: used binding `_foo` which is prefixed with an underscore. A leading underscore signals that a binding will not be used.
2019-11-06T21:36:06.7149501Z +error[E0463]: can't find crate for `clippy_lints`
2019-11-06T21:36:06.7149721Z +  --> $DIR/used_underscore_binding.rs:12:10
2019-11-06T21:36:06.7149784Z     |
2019-11-06T21:36:06.7149784Z     |
2019-11-06T21:36:06.7150126Z -LL |     _foo + 1
2019-11-06T21:36:06.7150474Z -   |
2019-11-06T21:36:06.7150880Z -   = note: `-D clippy::used-underscore-binding` implied by `-D warnings`
2019-11-06T21:36:06.7150880Z -   = note: `-D clippy::used-underscore-binding` implied by `-D warnings`
2019-11-06T21:36:06.7151003Z +LL |   #[derive(DeriveSomething)]
2019-11-06T21:36:06.7151104Z +LL | | struct Baz;
2019-11-06T21:36:06.7151336Z +LL | |
2019-11-06T21:36:06.7151336Z +LL | |
2019-11-06T21:36:06.7151375Z +LL | | macro_rules! test_macro {
2019-11-06T21:36:06.7151440Z +...  |
2019-11-06T21:36:06.7151524Z +LL | | /// Tests that we lint if we use a binding with a single leading underscore
2019-11-06T21:36:06.7151917Z +   | |_^ can't find crate
2019-11-06T21:36:06.7151955Z  
2019-11-06T21:36:06.7151955Z  
2019-11-06T21:36:06.7152391Z -error: used binding `_foo` which is prefixed with an underscore. A leading underscore signals that a binding will not be used.
2019-11-06T21:36:06.7152771Z -   |
2019-11-06T21:36:06.7152951Z -LL |     println!("{}", _foo);
2019-11-06T21:36:06.7153132Z -   |                    ^^^^
2019-11-06T21:36:06.7153191Z +error: aborting due to previous error
2019-11-06T21:36:06.7153191Z +error: aborting due to previous error
2019-11-06T21:36:06.7153236Z  
2019-11-06T21:36:06.7153498Z -error: used binding `_foo` which is prefixed with an underscore. A leading underscore signals that a binding will not be used.
2019-11-06T21:36:06.7153874Z -   |
2019-11-06T21:36:06.7153874Z -   |
2019-11-06T21:36:06.7154216Z -LL |     assert_eq!(_foo, _foo);
2019-11-06T21:36:06.7154554Z -
2019-11-06T21:36:06.7154554Z -
2019-11-06T21:36:06.7154966Z -error: used binding `_foo` which is prefixed with an underscore. A leading underscore signals that a binding will not be used.
2019-11-06T21:36:06.7155478Z -   |
2019-11-06T21:36:06.7155478Z -   |
2019-11-06T21:36:06.7155642Z -LL |     assert_eq!(_foo, _foo);
2019-11-06T21:36:06.7156266Z -
2019-11-06T21:36:06.7156266Z -
2019-11-06T21:36:06.7156876Z -error: used binding `_underscore_field` which is prefixed with an underscore. A leading underscore signals that a binding will not be used.
2019-11-06T21:36:06.7157310Z -   |
2019-11-06T21:36:06.7157310Z -   |
2019-11-06T21:36:06.7157515Z -LL |     s._underscore_field += 1;
2019-11-06T21:36:06.7157905Z -
2019-11-06T21:36:06.7158127Z -error: aborting due to 5 previous errors
2019-11-06T21:36:06.7158503Z -
2019-11-06T21:36:06.7158745Z +For more information about this error, try `rustc --explain E0463`.
---
2019-11-06T21:36:06.7161897Z 
2019-11-06T21:36:06.7162088Z ------------------------------------------
2019-11-06T21:36:06.7162127Z stderr:
2019-11-06T21:36:06.7162476Z ------------------------------------------
2019-11-06T21:36:06.7165192Z {"message":"can't find crate for `clippy_lints`","code":{"code":"E0463","explanation":"\nA plugin/crate was declared but cannot be found. Erroneous code example:\n\n```compile_fail,E0463\n#![feature(plugin)]\n#![plugin(cookie_monster)] // error: can't find crate for `cookie_monster`\nextern crate cake_is_a_lie; // error: can't find crate for `cake_is_a_lie`\n```\n\nYou need to link your code to the relevant crate in order to be able to use it\n(through Cargo or the `-L` option of rustc example). Plugins are crates as\nwell, and you link to them the same way.\n"},"level":"error","spans":[{"file_name":"tests/ui/used_underscore_binding.rs","byte_start":340,"byte_end":7513232,"line_start":12,"line_end":22,"column_start":10,"column_end":2,"is_primary":true,"text":[],"label":"can't find crate","suggested_replacement":null,"suggestion_applicability":null,"expansion":{"span":{"file_name":"tests/ui/used_underscore_binding.rs","byte_start":340,"byte_end":355,"line_start":12,"line_end":12,"column_start":10,"column_end":25,"is_primary":false,"text":[{"text":"#[derive(DeriveSomething)]","highlight_start":10,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},"macro_decl_name":"#[derive(DeriveSomething)]","def_site_span":{"file_name":"/checkout/src/tools/clippy/tests/ui/auxiliary/proc_macro_derive.rs","byte_start":215,"byte_end":549,"line_start":11,"line_end":22,"column_start":1,"column_end":2,"is_primary":false,"text":[{"text":"","highlight_start":1,"highlight_end":1},{"text":"","highlight_start":1,"highlight_end":1},{"text":"","highlight_start":1,"highlight_end":1},{"text":"","highlight_start":1,"highlight_end":1},{"text":"","highlight_start":1,"highlight_end":1},{"text":"","highlight_start":1,"highlight_end":1},{"text":"","highlight_start":1,"highlight_end":1},{"text":"","highlight_start":1,"highlight_end":1},{"text":"","highlight_start":1,"highlight_end":1},{"text":"","highlight_start":1,"highlight_end":1},{"text":"","highlight_start":1,"highlight_end":1},{"text":"","highlight_start":1,"highlight_end":2}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}}}],"children":[],"rendered":"error[E0463]: can't find crate for `clippy_lints`\n  --> tests/ui/used_underscore_binding.rs:12:10\n   |\nLL |   #[derive(DeriveSomething)]\n   |  __________^\nLL | | struct Baz;\nLL | |\nLL | | macro_rules! test_macro {\n...  |\nLL | |\nLL | | /// Tests that we lint if we use a binding with a single leading underscore\n   | |_^ can't find crate\n\n"}
2019-11-06T21:36:06.7166071Z {"message":"For more information about this error, try `rustc --explain E0463`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about this error, try `rustc --explain E0463`.\n"}
2019-11-06T21:36:06.7166111Z 
2019-11-06T21:36:06.7166293Z ------------------------------------------
2019-11-06T21:36:06.7166320Z 
---
2019-11-06T21:36:06.7168380Z expected stderr:
2019-11-06T21:36:06.7168424Z error: useless lint attribute
2019-11-06T21:36:06.7168652Z   --> $DIR/useless_attribute.rs:6:1
2019-11-06T21:36:06.7168697Z    |
2019-11-06T21:36:06.7168739Z LL | #[allow(dead_code)]
2019-11-06T21:36:06.7168789Z    | ^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![allow(dead_code)]`
2019-11-06T21:36:06.7169086Z    = note: `-D clippy::useless-attribute` implied by `-D warnings`
2019-11-06T21:36:06.7169119Z 
2019-11-06T21:36:06.7169185Z error: useless lint attribute
2019-11-06T21:36:06.7169394Z   --> $DIR/useless_attribute.rs:7:1
2019-11-06T21:36:06.7169394Z   --> $DIR/useless_attribute.rs:7:1
2019-11-06T21:36:06.7169437Z    |
2019-11-06T21:36:06.7169662Z LL | #[cfg_attr(feature = "cargo-clippy", allow(dead_code))]
2019-11-06T21:36:06.7170007Z    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![cfg_attr(feature = "cargo-clippy", allow(dead_code)`
2019-11-06T21:36:06.7170094Z error: aborting due to 2 previous errors
2019-11-06T21:36:06.7170139Z 
2019-11-06T21:36:06.7170165Z 
2019-11-06T21:36:06.7170190Z 
2019-11-06T21:36:06.7170190Z 
2019-11-06T21:36:06.7170229Z diff of stderr:
2019-11-06T21:36:06.7170424Z 
2019-11-06T21:36:06.7170633Z -error: useless lint attribute
2019-11-06T21:36:06.7170994Z -  --> $DIR/useless_attribute.rs:6:1
2019-11-06T21:36:06.7171196Z +error[E0463]: can't find crate for `clippy_lints`
2019-11-06T21:36:06.7171399Z +  --> $DIR/useless_attribute.rs:14:1
2019-11-06T21:36:06.7171440Z     |
2019-11-06T21:36:06.7171612Z -LL | #[allow(dead_code)]
2019-11-06T21:36:06.7171862Z -   | ^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![allow(dead_code)]`
2019-11-06T21:36:06.7172237Z -   = note: `-D clippy::useless-attribute` implied by `-D warnings`
2019-11-06T21:36:06.7172290Z +LL | extern crate clippy_lints;
2019-11-06T21:36:06.7172503Z +   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
2019-11-06T21:36:06.7172543Z  
2019-11-06T21:36:06.7172543Z  
2019-11-06T21:36:06.7172717Z -error: useless lint attribute
2019-11-06T21:36:06.7172918Z -  --> $DIR/useless_attribute.rs:7:1
2019-11-06T21:36:06.7173075Z -   |
2019-11-06T21:36:06.7173440Z -LL | #[cfg_attr(feature = "cargo-clippy", allow(dead_code))]
2019-11-06T21:36:06.7173886Z -   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![cfg_attr(feature = "cargo-clippy", allow(dead_code)`
2019-11-06T21:36:06.7173968Z  
2019-11-06T21:36:06.7174155Z -error: aborting due to 2 previous errors
2019-11-06T21:36:06.7174306Z -
2019-11-06T21:36:06.7174499Z +For more information about this error, try `rustc --explain E0463`.
---
2019-11-06T21:36:06.7177961Z 
2019-11-06T21:36:06.7178171Z ------------------------------------------
2019-11-06T21:36:06.7178232Z stderr:
2019-11-06T21:36:06.7178439Z ------------------------------------------
2019-11-06T21:36:06.7179744Z {"message":"can't find crate for `clippy_lints`","code":{"code":"E0463","explanation":"\nA plugin/crate was declared but cannot be found. Erroneous code example:\n\n```compile_fail,E0463\n#![feature(plugin)]\n#![plugin(cookie_monster)] // error: can't find crate for `cookie_monster`\nextern crate cake_is_a_lie; // error: can't find crate for `cake_is_a_lie`\n```\n\nYou need to link your code to the relevant crate in order to be able to use it\n(through Cargo or the `-L` option of rustc example). Plugins are crates as\nwell, and you link to them the same way.\n"},"level":"error","spans":[{"file_name":"tests/ui/useless_attribute.rs","byte_start":327,"byte_end":353,"line_start":14,"line_end":14,"column_start":1,"column_end":27,"is_primary":true,"text":[{"text":"extern crate clippy_lints;","highlight_start":1,"highlight_end":27}],"label":"can't find crate","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error[E0463]: can't find crate for `clippy_lints`\n  --> tests/ui/useless_attribute.rs:14:1\n   |\nLL | extern crate clippy_lints;\n   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate\n\n"}
2019-11-06T21:36:06.7180481Z {"message":"For more information about this error, try `rustc --explain E0463`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about this error, try `rustc --explain E0463`.\n"}
2019-11-06T21:36:06.7180704Z 
2019-11-06T21:36:06.7180871Z ------------------------------------------
2019-11-06T21:36:06.7180896Z 
---
2019-11-06T22:12:04.2745029Z Verifying status of rustfmt...
2019-11-06T22:12:04.2761706Z Verifying status of clippy-driver...
2019-11-06T22:12:04.2779639Z This PR updated 'src/tools/clippy', verifying if status is 'test-pass'...
2019-11-06T22:12:04.2789871Z 
2019-11-06T22:12:04.2790557Z ⚠️ We detected that this PR updated 'clippy-driver', but its tests failed.
2019-11-06T22:12:04.2790934Z 
2019-11-06T22:12:04.2791985Z If you do intend to update 'clippy-driver', please check the error messages above and
2019-11-06T22:12:04.2792176Z commit another update.
2019-11-06T22:12:04.2792324Z 
2019-11-06T22:12:04.2792866Z If you do NOT intend to update 'clippy-driver', please ensure you did not accidentally
2019-11-06T22:12:04.2793257Z change the submodule at 'src/tools/clippy'. You may ask your reviewer for the
2019-11-06T22:12:04.2793462Z proper steps.
2019-11-06T22:12:04.2816882Z   local time: Wed Nov  6 22:12:04 UTC 2019
2019-11-06T22:12:04.3786441Z   network time: Wed, 06 Nov 2019 22:12:04 GMT
2019-11-06T22:12:04.3790491Z == end clock drift check ==
2019-11-06T22:12:04.9186581Z 
2019-11-06T22:12:04.9186581Z 
2019-11-06T22:12:04.9290796Z ##[error]Bash exited with code '3'.
2019-11-06T22:12:04.9321068Z ##[section]Starting: Checkout
2019-11-06T22:12:04.9322721Z ==============================================================================
2019-11-06T22:12:04.9322768Z Task         : Get sources
2019-11-06T22:12:04.9322826Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

@msizanoen1
Copy link
Contributor

msizanoen1 commented Nov 7, 2019

I think I know why: the (now removed) deprecated clippy plugin causes clippy_lints to be build twice - once in the host deps directory and the target deps directory.
After the plugin removal, clippy_lints is only built once into the target deps directory. However clippy tests expect it to be in the host deps directory.

@Manishearth
Copy link
Member

Manishearth commented Nov 7, 2019 via email

@tesuji
Copy link
Contributor Author

tesuji commented Nov 7, 2019

Could we add a new feature gate in clippy_lints for solely testing?

@msizanoen1
Copy link
Contributor

How about this:

diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs
index 60f0dccdb07..76a5c88b5f0 100644
--- a/src/bootstrap/test.rs
+++ b/src/bootstrap/test.rs
@@ -569,6 +569,7 @@ impl Step for Clippy {
             cargo.env("RUSTC_LIB_PATH", builder.rustc_libdir(compiler));
             let host_libs = builder
                 .stage_out(compiler, Mode::ToolRustc)
+                .join(&self.host)
                 .join(builder.cargo_dir());
             cargo.env("HOST_LIBS", host_libs);
             // clippy tests need to find the driver

@tesuji
Copy link
Contributor Author

tesuji commented Nov 7, 2019

Testing that patch locally.

@tesuji
Copy link
Contributor Author

tesuji commented Nov 7, 2019

It still failed with another error:

diff of stderr:

+error[E0463]: can't find crate for `clippy_mini_macro_test`
+  --> $DIR/procedural_macro.rs:4:1
+   |
+LL | extern crate clippy_mini_macro_test;
+   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0463`.
+

@msizanoen1
Copy link
Contributor

msizanoen1 commented Nov 7, 2019

After rust-lang/rust-clippy#4786 is merged, reupdate clippy and apply this patch:

diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs
index 60f0dccdb07..a858ed42bad 100644
--- a/src/bootstrap/test.rs
+++ b/src/bootstrap/test.rs
@@ -570,7 +570,12 @@ impl Step for Clippy {
             let host_libs = builder
                 .stage_out(compiler, Mode::ToolRustc)
                 .join(builder.cargo_dir());
+            let target_libs = builder
+                .stage_out(compiler, Mode::ToolRustc)
+                .join(&self.host)
+                .join(builder.cargo_dir());
             cargo.env("HOST_LIBS", host_libs);
+            cargo.env("TARGET_LIBS", target_libs);
             // clippy tests need to find the driver
             cargo.env("CLIPPY_DRIVER_PATH", clippy);
 

@msizanoen1

This comment has been minimized.

@msizanoen1

This comment has been minimized.

@msizanoen1

This comment has been minimized.

@tesuji
Copy link
Contributor Author

tesuji commented Nov 7, 2019

Blocked on rust-lang/rust-clippy#4786

@tesuji

This comment has been minimized.

@rustbot rustbot added the S-blocked Status: Blocked on something else such as an RFC or other implementation work. label Nov 7, 2019
bors added a commit to rust-lang/rust-clippy that referenced this pull request Nov 7, 2019
Remove `extern crate clippy_lints` from tests

This causes rustc's build system to fail because it still tries to load the crate as a plugin: rust-lang/rust#66158 (comment) . I'm not sure _why_ this happens, but for a short term fix we should remove these.

In one case it was just a convenient crate to use so i picked a different test. In another it was load-bearing, I had to delete the test. Idk if there's a better way around this.

changelog: none
@Manishearth
Copy link
Member

superseded by #66207

@Manishearth Manishearth closed this Nov 8, 2019
@tesuji tesuji deleted the clippyup branch November 8, 2019 03:18
bors added a commit to rust-lang/rust-clippy that referenced this pull request Nov 8, 2019
Add the TARGET_LIBS environment variable for rustc CI testing

Needed to fix the test failure in rust-lang/rust#66158.

See rust-lang/rust#66158 (comment)

r? @Manishearth
bors added a commit to rust-lang/rust-clippy that referenced this pull request Nov 8, 2019
Add the TARGET_LIBS environment variable for rustc CI testing

Needed to fix the test failure in rust-lang/rust#66158.

See rust-lang/rust#66158 (comment)

r? @Manishearth

changelog: none
@msizanoen1 msizanoen1 mentioned this pull request Nov 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-blocked Status: Blocked on something else such as an RFC or other implementation work. S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.
Projects
None yet
7 participants