[INFO] cloning repository https://github.com/masonk/libbsearch [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/masonk/libbsearch" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmasonk%2Flibbsearch", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmasonk%2Flibbsearch'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 451a76f7f0b7c0c0c978d346934d64f2966e2908 [INFO] checking masonk/libbsearch/451a76f7f0b7c0c0c978d346934d64f2966e2908 against master#3139ff09e9d07f7700f8d15ed25a231e29c43627 for pr-121848-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmasonk%2Flibbsearch" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/masonk/libbsearch on toolchain 3139ff09e9d07f7700f8d15ed25a231e29c43627 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3139ff09e9d07f7700f8d15ed25a231e29c43627" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/masonk/libbsearch [INFO] finished tweaking git repo https://github.com/masonk/libbsearch [INFO] tweaked toml for git repo https://github.com/masonk/libbsearch written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/masonk/libbsearch already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3139ff09e9d07f7700f8d15ed25a231e29c43627" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+3139ff09e9d07f7700f8d15ed25a231e29c43627" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8f3991be10870eb70a00af2c419f34e0d2d69651c200f4cb469ef1aab0429993 [INFO] running `Command { std: "docker" "start" "-a" "8f3991be10870eb70a00af2c419f34e0d2d69651c200f4cb469ef1aab0429993", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8f3991be10870eb70a00af2c419f34e0d2d69651c200f4cb469ef1aab0429993", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8f3991be10870eb70a00af2c419f34e0d2d69651c200f4cb469ef1aab0429993", kill_on_drop: false }` [INFO] [stdout] 8f3991be10870eb70a00af2c419f34e0d2d69651c200f4cb469ef1aab0429993 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+3139ff09e9d07f7700f8d15ed25a231e29c43627" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ad08c774c3850c245a4ffc7f383363b3a36962c040453cca63ab50d0fdfe8258 [INFO] running `Command { std: "docker" "start" "-a" "ad08c774c3850c245a4ffc7f383363b3a36962c040453cca63ab50d0fdfe8258", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Checking bsearch v1.0.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0601]: `main` function not found in crate `bsearch` [INFO] [stdout] --> src/main.rs:241:2 [INFO] [stdout] | [INFO] [stdout] 241 | } [INFO] [stdout] | ^ consider adding a `main` function to `src/main.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `range_contains` has been stable since 1.35.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(range_contains)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stdout] warning: the feature `range_contains` has been stable since 1.35.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(range_contains)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `bsearch` (bin "bsearch") due to 2 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:172:52 [INFO] [stdout] | [INFO] [stdout] 172 | Some(idx) => { assert!((0..3).contains(idx), "0 was found in 0..3"); } [INFO] [stdout] | -------- ^^^ expected `&_`, found `usize` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found type `usize` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/3139ff09e9d07f7700f8d15ed25a231e29c43627/library/core/src/ops/range.rs:120:12 [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 172 | Some(idx) => { assert!((0..3).contains(&idx), "0 was found in 0..3"); } [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:187:52 [INFO] [stdout] | [INFO] [stdout] 187 | Some(idx) => { assert!((3..6).contains(idx)); }, [INFO] [stdout] | -------- ^^^ expected `&_`, found `usize` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found type `usize` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/3139ff09e9d07f7700f8d15ed25a231e29c43627/library/core/src/ops/range.rs:120:12 [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 187 | Some(idx) => { assert!((3..6).contains(&idx)); }, [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:196:53 [INFO] [stdout] | [INFO] [stdout] 196 | Some(idx) => { assert!((2..5).contains(idx)); } [INFO] [stdout] | -------- ^^^ expected `&_`, found `usize` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&_` [INFO] [stdout] found type `usize` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/3139ff09e9d07f7700f8d15ed25a231e29c43627/library/core/src/ops/range.rs:120:12 [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 196 | Some(idx) => { assert!((2..5).contains(&idx)); } [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:231:69 [INFO] [stdout] | [INFO] [stdout] 231 | ... Some(actual) => { assert!(expected.contains(actual), "Return idx should be in {:?}, but got {}.", expected, actual); } [INFO] [stdout] | -------- ^^^^^^ expected `&usize`, found `usize` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/3139ff09e9d07f7700f8d15ed25a231e29c43627/library/core/src/ops/range.rs:120:12 [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 231 | Some(actual) => { assert!(expected.contains(&actual), "Return idx should be in {:?}, but got {}.", expected, actual); } [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `bsearch` (bin "bsearch" test) due to 5 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "ad08c774c3850c245a4ffc7f383363b3a36962c040453cca63ab50d0fdfe8258", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ad08c774c3850c245a4ffc7f383363b3a36962c040453cca63ab50d0fdfe8258", kill_on_drop: false }` [INFO] [stdout] ad08c774c3850c245a4ffc7f383363b3a36962c040453cca63ab50d0fdfe8258