[INFO] fetching crate ticklock 0.0.8... [INFO] checking ticklock-0.0.8 against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] extracting crate ticklock 0.0.8 into /workspace/builds/worker-4-tc1/source [INFO] validating manifest of crates.io crate ticklock 0.0.8 on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate ticklock 0.0.8 [INFO] finished tweaking crates.io crate ticklock 0.0.8 [INFO] tweaked toml for crates.io crate ticklock 0.0.8 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 7 packages [INFO] [stderr] Adding cast v0.2.7 (latest: v0.3.0) [INFO] [stderr] Adding nb v0.1.3 (latest: v1.1.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 52d6dcc86b2ff875148038ceffa8660daa033d3131f4670df64682fe5d82db9d [INFO] running `Command { std: "docker" "start" "-a" "52d6dcc86b2ff875148038ceffa8660daa033d3131f4670df64682fe5d82db9d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "52d6dcc86b2ff875148038ceffa8660daa033d3131f4670df64682fe5d82db9d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "52d6dcc86b2ff875148038ceffa8660daa033d3131f4670df64682fe5d82db9d", kill_on_drop: false }` [INFO] [stdout] 52d6dcc86b2ff875148038ceffa8660daa033d3131f4670df64682fe5d82db9d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8a6cd15a75e59549da709875261e9b10160dbde33370a72fc7a7454a3b0ff8d5 [INFO] running `Command { std: "docker" "start" "-a" "8a6cd15a75e59549da709875261e9b10160dbde33370a72fc7a7454a3b0ff8d5", kill_on_drop: false }` [INFO] [stderr] Checking nb v1.1.0 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Compiling cast v0.2.7 [INFO] [stderr] Checking nb v0.1.3 [INFO] [stderr] Checking ticklock v0.0.8 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `nb` is imported redundantly [INFO] [stdout] --> src/timer.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use nb; [INFO] [stdout] | ^^ the item `nb` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Into` is imported redundantly [INFO] [stdout] --> src/timer.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use core::convert::Into; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/core/src/prelude/mod.rs:47:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Into` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `cast` is imported redundantly [INFO] [stdout] --> src/clock.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use cast; [INFO] [stdout] | ^^^^ the item `cast` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `nb` is imported redundantly [INFO] [stdout] --> src/timer.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use nb; [INFO] [stdout] | ^^ the item `nb` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Into` is imported redundantly [INFO] [stdout] --> src/timer.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use core::convert::Into; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/core/src/prelude/mod.rs:47:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Into` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `cast` is imported redundantly [INFO] [stdout] --> src/clock.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use cast; [INFO] [stdout] | ^^^^ the item `cast` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/clock.rs:258:22 [INFO] [stdout] | [INFO] [stdout] 258 | assert_eq!(2.clamp(1, 3), 2); [INFO] [stdout] | ^^^^^ multiple `clamp` found [INFO] [stdout] | [INFO] [stdout] note: candidate #1 is defined in the trait `Ord` [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/core/src/cmp.rs:898:5 [INFO] [stdout] note: candidate #2 is defined in an impl of the trait `U32Ext` for the type `u32` [INFO] [stdout] --> src/clock.rs:202:5 [INFO] [stdout] | [INFO] [stdout] 202 | fn clamp(self, min: u32, max: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 258 | assert_eq!(Ord::clamp(2, 1, 3), 2); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 258 | assert_eq!(U32Ext::clamp(2, 1, 3), 2); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/clock.rs:259:23 [INFO] [stdout] | [INFO] [stdout] 259 | assert_eq!(20.clamp(1, 3), 3); [INFO] [stdout] | ^^^^^ multiple `clamp` found [INFO] [stdout] | [INFO] [stdout] note: candidate #1 is defined in the trait `Ord` [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/core/src/cmp.rs:898:5 [INFO] [stdout] note: candidate #2 is defined in an impl of the trait `U32Ext` for the type `u32` [INFO] [stdout] --> src/clock.rs:202:5 [INFO] [stdout] | [INFO] [stdout] 202 | fn clamp(self, min: u32, max: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 259 | assert_eq!(Ord::clamp(20, 1, 3), 3); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 259 | assert_eq!(U32Ext::clamp(20, 1, 3), 3); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/clock.rs:260:22 [INFO] [stdout] | [INFO] [stdout] 260 | assert_eq!(0.clamp(1, 3), 1); [INFO] [stdout] | ^^^^^ multiple `clamp` found [INFO] [stdout] | [INFO] [stdout] note: candidate #1 is defined in the trait `Ord` [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/core/src/cmp.rs:898:5 [INFO] [stdout] note: candidate #2 is defined in an impl of the trait `U32Ext` for the type `u32` [INFO] [stdout] --> src/clock.rs:202:5 [INFO] [stdout] | [INFO] [stdout] 202 | fn clamp(self, min: u32, max: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 260 | assert_eq!(Ord::clamp(0, 1, 3), 1); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 260 | assert_eq!(U32Ext::clamp(0, 1, 3), 1); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0034`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ticklock` (lib test) due to 4 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "8a6cd15a75e59549da709875261e9b10160dbde33370a72fc7a7454a3b0ff8d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8a6cd15a75e59549da709875261e9b10160dbde33370a72fc7a7454a3b0ff8d5", kill_on_drop: false }` [INFO] [stdout] 8a6cd15a75e59549da709875261e9b10160dbde33370a72fc7a7454a3b0ff8d5