[INFO] fetching crate iter-skak 0.2.0... [INFO] checking iter-skak-0.2.0 against master#8c32e313cccf7df531e2d49ffb8227bb92304aee for pr-145608-1 [INFO] extracting crate iter-skak 0.2.0 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate iter-skak 0.2.0 [INFO] finished tweaking crates.io crate iter-skak 0.2.0 [INFO] tweaked toml for crates.io crate iter-skak 0.2.0 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate iter-skak 0.2.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] [stderr] Blocking waiting for file lock on package cache [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] [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-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ee6d65e495ef47833ea482272649666c6311117528b30fe17940fb3b709c188e [INFO] running `Command { std: "docker" "start" "-a" "ee6d65e495ef47833ea482272649666c6311117528b30fe17940fb3b709c188e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ee6d65e495ef47833ea482272649666c6311117528b30fe17940fb3b709c188e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ee6d65e495ef47833ea482272649666c6311117528b30fe17940fb3b709c188e", kill_on_drop: false }` [INFO] [stdout] ee6d65e495ef47833ea482272649666c6311117528b30fe17940fb3b709c188e [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 87ff96f623d59466d6a8d59a8373fb7a3e48aeb3abdde31dddabff59ae9bd26c [INFO] running `Command { std: "docker" "start" "-a" "87ff96f623d59466d6a8d59a8373fb7a3e48aeb3abdde31dddabff59ae9bd26c", kill_on_drop: false }` [INFO] [stderr] Checking iter-skak v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the feature `rustc_attrs` is internal to the compiler or standard library [INFO] [stdout] --> src/lib.rs:1:29 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(core_intrinsics, rustc_attrs, iter_advance_by, try_trait_v2, try_blocks)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using it is strongly discouraged [INFO] [stdout] = note: `#[warn(internal_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `core_intrinsics` is internal to the compiler or standard library [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(core_intrinsics, rustc_attrs, iter_advance_by, try_trait_v2, try_blocks)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using it is strongly discouraged [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `advance_by` has an incompatible type for trait [INFO] [stdout] --> src/lib.rs:110:43 [INFO] [stdout] | [INFO] [stdout] 110 | fn advance_by(&mut self, n: usize) -> Result<(), usize> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ expected `NonZero`, found `usize` [INFO] [stdout] | [INFO] [stdout] = note: expected signature `fn(&mut Skip<_>, _) -> Result<_, NonZero>` [INFO] [stdout] found signature `fn(&mut Skip<_>, _) -> Result<_, usize>` [INFO] [stdout] help: change the output type to match the trait [INFO] [stdout] | [INFO] [stdout] 110 - fn advance_by(&mut self, n: usize) -> Result<(), usize> { [INFO] [stdout] 110 + fn advance_by(&mut self, n: usize) -> Result<(), NonZero> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `saturating_sub` found for struct `NonZero` in the current scope [INFO] [stdout] --> src/lib.rs:120:54 [INFO] [stdout] | [INFO] [stdout] 120 | let advanced_without_skip = advanced.saturating_sub(self.n); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `saturating_mul` with a similar name [INFO] [stdout] | [INFO] [stdout] 120 - let advanced_without_skip = advanced.saturating_sub(self.n); [INFO] [stdout] 120 + let advanced_without_skip = advanced.saturating_mul(self.n); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `rustc_attrs` is internal to the compiler or standard library [INFO] [stdout] --> src/lib.rs:1:29 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(core_intrinsics, rustc_attrs, iter_advance_by, try_trait_v2, try_blocks)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using it is strongly discouraged [INFO] [stdout] = note: `#[warn(internal_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `core_intrinsics` is internal to the compiler or standard library [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(core_intrinsics, rustc_attrs, iter_advance_by, try_trait_v2, try_blocks)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using it is strongly discouraged [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `advance_by` has an incompatible type for trait [INFO] [stdout] --> src/lib.rs:110:43 [INFO] [stdout] | [INFO] [stdout] 110 | fn advance_by(&mut self, n: usize) -> Result<(), usize> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ expected `NonZero`, found `usize` [INFO] [stdout] | [INFO] [stdout] = note: expected signature `fn(&mut Skip<_>, _) -> Result<_, NonZero>` [INFO] [stdout] found signature `fn(&mut Skip<_>, _) -> Result<_, usize>` [INFO] [stdout] help: change the output type to match the trait [INFO] [stdout] | [INFO] [stdout] 110 - fn advance_by(&mut self, n: usize) -> Result<(), usize> { [INFO] [stdout] 110 + fn advance_by(&mut self, n: usize) -> Result<(), NonZero> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:121:48 [INFO] [stdout] | [INFO] [stdout] 121 | self.n = self.n.saturating_sub(advanced); [INFO] [stdout] | -------------- ^^^^^^^^ expected `usize`, found `NonZero` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type `usize` [INFO] [stdout] found struct `NonZero` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/8c32e313cccf7df531e2d49ffb8227bb92304aee/library/core/src/num/mod.rs:1248:5 [INFO] [stdout] = note: this error originates in the macro `uint_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: call `Into::into` on this expression to convert `NonZero` into `usize` [INFO] [stdout] | [INFO] [stdout] 121 | self.n = self.n.saturating_sub(advanced.into()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:129:32 [INFO] [stdout] | [INFO] [stdout] 110 | fn advance_by(&mut self, n: usize) -> Result<(), usize> { [INFO] [stdout] | ----------------- expected `Result<(), usize>` because of return type [INFO] [stdout] ... [INFO] [stdout] 129 | ret @ Ok(_) => ret, [INFO] [stdout] | ^^^ expected `Result<(), usize>`, found `Result<(), NonZero>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<_, usize>` [INFO] [stdout] found enum `Result<_, NonZero>` [INFO] [stdout] help: use `?` to coerce and return an appropriate `Err`, and wrap the resulting value in `Ok` so the expression remains of type `Result` [INFO] [stdout] | [INFO] [stdout] 129 | ret @ Ok(_) => Ok(ret?), [INFO] [stdout] | +++ ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot subtract-assign `NonZero` from `usize` [INFO] [stdout] --> src/lib.rs:131:25 [INFO] [stdout] | [INFO] [stdout] 131 | rem -= advanced; [INFO] [stdout] | ^^ no implementation for `usize -= NonZero` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SubAssign>` is not implemented for `usize` [INFO] [stdout] = help: the following other types implement trait `SubAssign`: [INFO] [stdout] `usize` implements `SubAssign<&usize>` [INFO] [stdout] `usize` implements `SubAssign` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0053, E0277, E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0053`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `saturating_sub` found for struct `NonZero` in the current scope [INFO] [stdout] --> src/lib.rs:120:54 [INFO] [stdout] | [INFO] [stdout] 120 | let advanced_without_skip = advanced.saturating_sub(self.n); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `saturating_mul` with a similar name [INFO] [stdout] | [INFO] [stdout] 120 - let advanced_without_skip = advanced.saturating_sub(self.n); [INFO] [stdout] 120 + let advanced_without_skip = advanced.saturating_mul(self.n); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `iter-skak` (lib) due to 5 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:121:48 [INFO] [stdout] | [INFO] [stdout] 121 | self.n = self.n.saturating_sub(advanced); [INFO] [stdout] | -------------- ^^^^^^^^ expected `usize`, found `NonZero` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type `usize` [INFO] [stdout] found struct `NonZero` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/8c32e313cccf7df531e2d49ffb8227bb92304aee/library/core/src/num/mod.rs:1248:5 [INFO] [stdout] = note: this error originates in the macro `uint_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: call `Into::into` on this expression to convert `NonZero` into `usize` [INFO] [stdout] | [INFO] [stdout] 121 | self.n = self.n.saturating_sub(advanced.into()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:129:32 [INFO] [stdout] | [INFO] [stdout] 110 | fn advance_by(&mut self, n: usize) -> Result<(), usize> { [INFO] [stdout] | ----------------- expected `Result<(), usize>` because of return type [INFO] [stdout] ... [INFO] [stdout] 129 | ret @ Ok(_) => ret, [INFO] [stdout] | ^^^ expected `Result<(), usize>`, found `Result<(), NonZero>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<_, usize>` [INFO] [stdout] found enum `Result<_, NonZero>` [INFO] [stdout] help: use `?` to coerce and return an appropriate `Err`, and wrap the resulting value in `Ok` so the expression remains of type `Result` [INFO] [stdout] | [INFO] [stdout] 129 | ret @ Ok(_) => Ok(ret?), [INFO] [stdout] | +++ ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot subtract-assign `NonZero` from `usize` [INFO] [stdout] --> src/lib.rs:131:25 [INFO] [stdout] | [INFO] [stdout] 131 | rem -= advanced; [INFO] [stdout] | ^^ no implementation for `usize -= NonZero` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SubAssign>` is not implemented for `usize` [INFO] [stdout] = help: the following other types implement trait `SubAssign`: [INFO] [stdout] `usize` implements `SubAssign<&usize>` [INFO] [stdout] `usize` implements `SubAssign` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0053, E0277, E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0053`. [INFO] [stdout] [INFO] [stderr] error: could not compile `iter-skak` (lib test) due to 5 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "87ff96f623d59466d6a8d59a8373fb7a3e48aeb3abdde31dddabff59ae9bd26c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "87ff96f623d59466d6a8d59a8373fb7a3e48aeb3abdde31dddabff59ae9bd26c", kill_on_drop: false }` [INFO] [stdout] 87ff96f623d59466d6a8d59a8373fb7a3e48aeb3abdde31dddabff59ae9bd26c