[INFO] fetching crate vec_extract_if_polyfill 0.1.0... [INFO] checking vec_extract_if_polyfill-0.1.0 against master#8c32e313cccf7df531e2d49ffb8227bb92304aee for pr-145608-1 [INFO] extracting crate vec_extract_if_polyfill 0.1.0 into /workspace/builds/worker-1-tc1/source [INFO] started tweaking crates.io crate vec_extract_if_polyfill 0.1.0 [INFO] finished tweaking crates.io crate vec_extract_if_polyfill 0.1.0 [INFO] tweaked toml for crates.io crate vec_extract_if_polyfill 0.1.0 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate vec_extract_if_polyfill 0.1.0 on toolchain 8c32e313cccf7df531e2d49ffb8227bb92304aee [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5512d5492032bae35cf17790f2f2c79ff5971c5dc758c5b2244e0f9848fee38a [INFO] running `Command { std: "docker" "start" "-a" "5512d5492032bae35cf17790f2f2c79ff5971c5dc758c5b2244e0f9848fee38a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5512d5492032bae35cf17790f2f2c79ff5971c5dc758c5b2244e0f9848fee38a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5512d5492032bae35cf17790f2f2c79ff5971c5dc758c5b2244e0f9848fee38a", kill_on_drop: false }` [INFO] [stdout] 5512d5492032bae35cf17790f2f2c79ff5971c5dc758c5b2244e0f9848fee38a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a65d07db128d49a08f953dc34d47fb7df5e6ea44b7a9184ca9eb09cf70c509ae [INFO] running `Command { std: "docker" "start" "-a" "a65d07db128d49a08f953dc34d47fb7df5e6ea44b7a9184ca9eb09cf70c509ae", kill_on_drop: false }` [INFO] [stderr] Checking vec_extract_if_polyfill v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:35:22 [INFO] [stdout] | [INFO] [stdout] 35 | fn extract_if(&mut self, filter: F) -> ExtractIf [INFO] [stdout] | ^^^^^^^^^ --------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 35 | fn extract_if(&mut self, filter: F) -> ExtractIf<'_, T, F> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:41:22 [INFO] [stdout] | [INFO] [stdout] 41 | fn extract_if(&mut self, filter: F) -> ExtractIf [INFO] [stdout] | ^^^^^^^^^ --------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 41 | fn extract_if(&mut self, filter: F) -> ExtractIf<'_, T, F> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/lib.rs:158:32 [INFO] [stdout] | [INFO] [stdout] 158 | let mut iter = vec.extract_if(|_| true); [INFO] [stdout] | ^^^^^^^^^^---------- argument #2 is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/8c32e313cccf7df531e2d49ffb8227bb92304aee/library/alloc/src/vec/mod.rs:3970:12 [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 158 | let mut iter = vec.extract_if(|_| true, /* filter */); [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `{closure@src/lib.rs:158:43: 158:46}: RangeBounds` is not satisfied [INFO] [stdout] --> src/lib.rs:158:43 [INFO] [stdout] | [INFO] [stdout] 158 | let mut iter = vec.extract_if(|_| true); [INFO] [stdout] | ---------- ^^^^^^^^ the trait `RangeBounds` is not implemented for closure `{closure@src/lib.rs:158:43: 158:46}` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `Vec::::extract_if` [INFO] [stdout] --> /rustc/8c32e313cccf7df531e2d49ffb8227bb92304aee/library/alloc/src/vec/mod.rs:3970:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/lib.rs:175:32 [INFO] [stdout] | [INFO] [stdout] 175 | let mut iter = vec.extract_if(|_| true); [INFO] [stdout] | ^^^^^^^^^^---------- argument #2 is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/8c32e313cccf7df531e2d49ffb8227bb92304aee/library/alloc/src/vec/mod.rs:3970:12 [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 175 | let mut iter = vec.extract_if(|_| true, /* filter */); [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `{closure@src/lib.rs:175:43: 175:46}: RangeBounds` is not satisfied [INFO] [stdout] --> src/lib.rs:175:43 [INFO] [stdout] | [INFO] [stdout] 175 | let mut iter = vec.extract_if(|_| true); [INFO] [stdout] | ---------- ^^^^^^^^ the trait `RangeBounds` is not implemented for closure `{closure@src/lib.rs:175:43: 175:46}` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `Vec::::extract_if` [INFO] [stdout] --> /rustc/8c32e313cccf7df531e2d49ffb8227bb92304aee/library/alloc/src/vec/mod.rs:3970:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/lib.rs:198:32 [INFO] [stdout] | [INFO] [stdout] 198 | let mut iter = vec.extract_if(|_| false); [INFO] [stdout] | ^^^^^^^^^^----------- argument #2 is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/8c32e313cccf7df531e2d49ffb8227bb92304aee/library/alloc/src/vec/mod.rs:3970:12 [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 198 | let mut iter = vec.extract_if(|_| false, /* filter */); [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `{closure@src/lib.rs:198:43: 198:46}: RangeBounds` is not satisfied [INFO] [stdout] --> src/lib.rs:198:43 [INFO] [stdout] | [INFO] [stdout] 198 | let mut iter = vec.extract_if(|_| false); [INFO] [stdout] | ---------- ^^^^^^^^^ the trait `RangeBounds` is not implemented for closure `{closure@src/lib.rs:198:43: 198:46}` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `Vec::::extract_if` [INFO] [stdout] --> /rustc/8c32e313cccf7df531e2d49ffb8227bb92304aee/library/alloc/src/vec/mod.rs:3970:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/lib.rs:220:32 [INFO] [stdout] | [INFO] [stdout] 220 | let mut iter = vec.extract_if(|_| true); [INFO] [stdout] | ^^^^^^^^^^---------- argument #2 is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/8c32e313cccf7df531e2d49ffb8227bb92304aee/library/alloc/src/vec/mod.rs:3970:12 [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 220 | let mut iter = vec.extract_if(|_| true, /* filter */); [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `{closure@src/lib.rs:220:43: 220:46}: RangeBounds` is not satisfied [INFO] [stdout] --> src/lib.rs:220:43 [INFO] [stdout] | [INFO] [stdout] 220 | let mut iter = vec.extract_if(|_| true); [INFO] [stdout] | ---------- ^^^^^^^^ the trait `RangeBounds` is not implemented for closure `{closure@src/lib.rs:220:43: 220:46}` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `Vec::::extract_if` [INFO] [stdout] --> /rustc/8c32e313cccf7df531e2d49ffb8227bb92304aee/library/alloc/src/vec/mod.rs:3970:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:250:43 [INFO] [stdout] | [INFO] [stdout] 250 | let removed = vec.extract_if(|x| *x % 2 == 0).collect::>(); [INFO] [stdout] | ^ -- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 250 | let removed = vec.extract_if(|x: /* Type */| *x % 2 == 0).collect::>(); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/lib.rs:250:31 [INFO] [stdout] | [INFO] [stdout] 250 | let removed = vec.extract_if(|x| *x % 2 == 0).collect::>(); [INFO] [stdout] | ^^^^^^^^^^----------------- argument #2 is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/8c32e313cccf7df531e2d49ffb8227bb92304aee/library/alloc/src/vec/mod.rs:3970:12 [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 250 | let removed = vec.extract_if(|x| *x % 2 == 0, /* filter */).collect::>(); [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/lib.rs:268:31 [INFO] [stdout] | [INFO] [stdout] 268 | let removed = vec.extract_if(|x| *x % 2 == 0).collect::>(); [INFO] [stdout] | ^^^^^^^^^^----------------- argument #2 is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/8c32e313cccf7df531e2d49ffb8227bb92304aee/library/alloc/src/vec/mod.rs:3970:12 [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 268 | let removed = vec.extract_if(|x| *x % 2 == 0, /* filter */).collect::>(); [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/lib.rs:285:31 [INFO] [stdout] | [INFO] [stdout] 285 | let removed = vec.extract_if(|x| *x % 2 == 0).collect::>(); [INFO] [stdout] | ^^^^^^^^^^----------------- argument #2 is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/8c32e313cccf7df531e2d49ffb8227bb92304aee/library/alloc/src/vec/mod.rs:3970:12 [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 285 | let removed = vec.extract_if(|x| *x % 2 == 0, /* filter */).collect::>(); [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/lib.rs:297:31 [INFO] [stdout] | [INFO] [stdout] 297 | let removed = vec.extract_if(|x| *x % 2 == 0).collect::>(); [INFO] [stdout] | ^^^^^^^^^^----------------- argument #2 is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/8c32e313cccf7df531e2d49ffb8227bb92304aee/library/alloc/src/vec/mod.rs:3970:12 [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 297 | let removed = vec.extract_if(|x| *x % 2 == 0, /* filter */).collect::>(); [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/lib.rs:309:31 [INFO] [stdout] | [INFO] [stdout] 309 | let removed = vec.extract_if(|x| *x % 2 == 0).collect::>(); [INFO] [stdout] | ^^^^^^^^^^----------------- argument #2 is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/8c32e313cccf7df531e2d49ffb8227bb92304aee/library/alloc/src/vec/mod.rs:3970:12 [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 309 | let removed = vec.extract_if(|x| *x % 2 == 0, /* filter */).collect::>(); [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::MakeExtractIf` [INFO] [stdout] --> src/lib.rs:152:9 [INFO] [stdout] | [INFO] [stdout] 152 | use crate::MakeExtractIf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0282. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `vec_extract_if_polyfill` (lib test) due to 14 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "a65d07db128d49a08f953dc34d47fb7df5e6ea44b7a9184ca9eb09cf70c509ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a65d07db128d49a08f953dc34d47fb7df5e6ea44b7a9184ca9eb09cf70c509ae", kill_on_drop: false }` [INFO] [stdout] a65d07db128d49a08f953dc34d47fb7df5e6ea44b7a9184ca9eb09cf70c509ae