[INFO] fetching crate nam-num-traits 0.2.20-nam.0... [INFO] checking nam-num-traits-0.2.20-nam.0 against master#4455c8937007f3cc3c078375a335d86dbab391ce for pr-140956 [INFO] extracting crate nam-num-traits 0.2.20-nam.0 into /workspace/builds/worker-0-tc1/source [INFO] started tweaking crates.io crate nam-num-traits 0.2.20-nam.0 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate nam-num-traits 0.2.20-nam.0 [INFO] tweaked toml for crates.io crate nam-num-traits 0.2.20-nam.0 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate nam-num-traits 0.2.20-nam.0 on toolchain 4455c8937007f3cc3c078375a335d86dbab391ce [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4455c8937007f3cc3c078375a335d86dbab391ce" "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" "+4455c8937007f3cc3c078375a335d86dbab391ce" "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] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 2 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4455c8937007f3cc3c078375a335d86dbab391ce" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+4455c8937007f3cc3c078375a335d86dbab391ce" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1403ff6f333b7a0da2f01116a842314b387d9283f7cfa147472225dc2cedb798 [INFO] running `Command { std: "docker" "start" "-a" "1403ff6f333b7a0da2f01116a842314b387d9283f7cfa147472225dc2cedb798", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1403ff6f333b7a0da2f01116a842314b387d9283f7cfa147472225dc2cedb798", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1403ff6f333b7a0da2f01116a842314b387d9283f7cfa147472225dc2cedb798", kill_on_drop: false }` [INFO] [stdout] 1403ff6f333b7a0da2f01116a842314b387d9283f7cfa147472225dc2cedb798 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+4455c8937007f3cc3c078375a335d86dbab391ce" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9b8736bd3514f22227c51960b27be44ed844c4f2e618319d7d4f65d8acbfc68c [INFO] running `Command { std: "docker" "start" "-a" "9b8736bd3514f22227c51960b27be44ed844c4f2e618319d7d4f65d8acbfc68c", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling nam-num-traits v0.2.20-nam.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/ops/overflowing.rs:109:27 [INFO] [stdout] | [INFO] [stdout] 108 | fn overflowing_add(a: T, b: T) -> (T, bool) { [INFO] [stdout] | - expected this type parameter [INFO] [stdout] 109 | a.overflowing_add(&b) [INFO] [stdout] | --------------- ^^ expected type parameter `T`, found `&T` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type parameter `_` [INFO] [stdout] found reference `&_` [INFO] [stdout] help: the return type of this call is `&T` due to the type of the argument passed [INFO] [stdout] --> src/ops/overflowing.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | a.overflowing_add(&b) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^--^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the return type of `overflowing_add` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/ops/overflowing.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | fn overflowing_add(self, v: Rhs) -> (Self::Output, bool); [INFO] [stdout] | ^^^^^^^^^^^^^^^ - [INFO] [stdout] help: consider removing the borrow [INFO] [stdout] | [INFO] [stdout] 109 - a.overflowing_add(&b) [INFO] [stdout] 109 + a.overflowing_add(b) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/ops/overflowing.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 108 | fn overflowing_add(a: T, b: T) -> (T, bool) { [INFO] [stdout] | - expected this type parameter --------- expected `(T, bool)` because of return type [INFO] [stdout] 109 | a.overflowing_add(&b) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ expected `(T, bool)`, found `(::Output, bool)` [INFO] [stdout] | [INFO] [stdout] = note: expected tuple `(T, _)` [INFO] [stdout] found tuple `(::Output, _)` [INFO] [stdout] help: consider further restricting this bound [INFO] [stdout] | [INFO] [stdout] 108 | fn overflowing_add>(a: T, b: T) -> (T, bool) { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/ops/overflowing.rs:112:27 [INFO] [stdout] | [INFO] [stdout] 111 | fn overflowing_sub(a: T, b: T) -> (T, bool) { [INFO] [stdout] | - expected this type parameter [INFO] [stdout] 112 | a.overflowing_sub(&b) [INFO] [stdout] | --------------- ^^ expected type parameter `T`, found `&T` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type parameter `_` [INFO] [stdout] found reference `&_` [INFO] [stdout] help: the return type of this call is `&T` due to the type of the argument passed [INFO] [stdout] --> src/ops/overflowing.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 112 | a.overflowing_sub(&b) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^--^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the return type of `overflowing_sub` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/ops/overflowing.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | fn overflowing_sub(self, v: Rhs) -> (Self::Output, bool); [INFO] [stdout] | ^^^^^^^^^^^^^^^ - [INFO] [stdout] help: consider removing the borrow [INFO] [stdout] | [INFO] [stdout] 112 - a.overflowing_sub(&b) [INFO] [stdout] 112 + a.overflowing_sub(b) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/ops/overflowing.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 111 | fn overflowing_sub(a: T, b: T) -> (T, bool) { [INFO] [stdout] | - expected this type parameter --------- expected `(T, bool)` because of return type [INFO] [stdout] 112 | a.overflowing_sub(&b) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ expected `(T, bool)`, found `(::Output, bool)` [INFO] [stdout] | [INFO] [stdout] = note: expected tuple `(T, _)` [INFO] [stdout] found tuple `(::Output, _)` [INFO] [stdout] help: consider further restricting this bound [INFO] [stdout] | [INFO] [stdout] 111 | fn overflowing_sub>(a: T, b: T) -> (T, bool) { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/ops/overflowing.rs:115:27 [INFO] [stdout] | [INFO] [stdout] 114 | fn overflowing_mul(a: T, b: T) -> (T, bool) { [INFO] [stdout] | - expected this type parameter [INFO] [stdout] 115 | a.overflowing_mul(&b) [INFO] [stdout] | --------------- ^^ expected type parameter `T`, found `&T` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type parameter `_` [INFO] [stdout] found reference `&_` [INFO] [stdout] help: the return type of this call is `&T` due to the type of the argument passed [INFO] [stdout] --> src/ops/overflowing.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | a.overflowing_mul(&b) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^--^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the return type of `overflowing_mul` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/ops/overflowing.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 89 | fn overflowing_mul(self, v: Rhs) -> (Self::Output, bool); [INFO] [stdout] | ^^^^^^^^^^^^^^^ - [INFO] [stdout] help: consider removing the borrow [INFO] [stdout] | [INFO] [stdout] 115 - a.overflowing_mul(&b) [INFO] [stdout] 115 + a.overflowing_mul(b) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/ops/overflowing.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 114 | fn overflowing_mul(a: T, b: T) -> (T, bool) { [INFO] [stdout] | - expected this type parameter --------- expected `(T, bool)` because of return type [INFO] [stdout] 115 | a.overflowing_mul(&b) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ expected `(T, bool)`, found `(::Output, bool)` [INFO] [stdout] | [INFO] [stdout] = note: expected tuple `(T, _)` [INFO] [stdout] found tuple `(::Output, _)` [INFO] [stdout] help: consider further restricting this bound [INFO] [stdout] | [INFO] [stdout] 114 | fn overflowing_mul>(a: T, b: T) -> (T, bool) { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `num_traits` [INFO] [stdout] --> tests/cast.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use num_traits::cast::*; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `num_traits` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `num_traits`, use `cargo add num_traits` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `nam-num-traits` (lib test) due to 6 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `nam-num-traits` (test "cast") due to 1 previous error [INFO] running `Command { std: "docker" "inspect" "9b8736bd3514f22227c51960b27be44ed844c4f2e618319d7d4f65d8acbfc68c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9b8736bd3514f22227c51960b27be44ed844c4f2e618319d7d4f65d8acbfc68c", kill_on_drop: false }` [INFO] [stdout] 9b8736bd3514f22227c51960b27be44ed844c4f2e618319d7d4f65d8acbfc68c