[INFO] fetching crate iter-skak 0.2.0... [INFO] checking iter-skak-0.2.0 against master#8a703520e80d87d4423c01f9d4fbc9e5f6533a02 for pr-154205-1 [INFO] extracting crate iter-skak 0.2.0 into /workspace/builds/worker-7-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-7-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate iter-skak 0.2.0 on toolchain 8a703520e80d87d4423c01f9d4fbc9e5f6533a02 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8a703520e80d87d4423c01f9d4fbc9e5f6533a02" "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" "+8a703520e80d87d4423c01f9d4fbc9e5f6533a02" "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" "+8a703520e80d87d4423c01f9d4fbc9e5f6533a02" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+8a703520e80d87d4423c01f9d4fbc9e5f6533a02" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 27ec9c41a6caea2a7884b7e728ced14313c438cc57b520164b31f285534cc3c7 [INFO] running `Command { std: "docker" "start" "-a" "27ec9c41a6caea2a7884b7e728ced14313c438cc57b520164b31f285534cc3c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "27ec9c41a6caea2a7884b7e728ced14313c438cc57b520164b31f285534cc3c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "27ec9c41a6caea2a7884b7e728ced14313c438cc57b520164b31f285534cc3c7", kill_on_drop: false }` [INFO] [stdout] 27ec9c41a6caea2a7884b7e728ced14313c438cc57b520164b31f285534cc3c7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+8a703520e80d87d4423c01f9d4fbc9e5f6533a02" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c1a233a5a1497605e9d1dd2e554cf6cabcd37fd50e72405dc3ed57fa584412e3 [INFO] running `Command { std: "docker" "start" "-a" "c1a233a5a1497605e9d1dd2e554cf6cabcd37fd50e72405dc3ed57fa584412e3", 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] 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[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] 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/8a703520e80d87d4423c01f9d4fbc9e5f6533a02/library/core/src/num/uint_macros.rs:2398:21 [INFO] [stdout] --> /rustc/8a703520e80d87d4423c01f9d4fbc9e5f6533a02/library/core/src/num/mod.rs:1395:4 [INFO] [stdout] ::: /rustc/8a703520e80d87d4423c01f9d4fbc9e5f6533a02/library/core/src/num/mod.rs:1419:5 [INFO] [stdout] | [INFO] [stdout] = note: in this macro invocation [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: `usize` implements trait `SubAssign` [INFO] [stdout] --> /rustc/8a703520e80d87d4423c01f9d4fbc9e5f6533a02/library/core/src/ops/arith.rs:859:8 [INFO] [stdout] | [INFO] [stdout] = note: `SubAssign` [INFO] [stdout] ::: /rustc/8a703520e80d87d4423c01f9d4fbc9e5f6533a02/library/core/src/ops/arith.rs:872:0 [INFO] [stdout] | [INFO] [stdout] = note: in this macro invocation [INFO] [stdout] --> /rustc/8a703520e80d87d4423c01f9d4fbc9e5f6533a02/library/core/src/internal_macros.rs:61:8 [INFO] [stdout] | [INFO] [stdout] = note: `SubAssign<&usize>` [INFO] [stdout] = note: this error originates in the macro `sub_assign_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [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] 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] [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/8a703520e80d87d4423c01f9d4fbc9e5f6533a02/library/core/src/num/uint_macros.rs:2398:21 [INFO] [stdout] --> /rustc/8a703520e80d87d4423c01f9d4fbc9e5f6533a02/library/core/src/num/mod.rs:1395:4 [INFO] [stdout] ::: /rustc/8a703520e80d87d4423c01f9d4fbc9e5f6533a02/library/core/src/num/mod.rs:1419:5 [INFO] [stdout] | [INFO] [stdout] = note: in this macro invocation [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: `usize` implements trait `SubAssign` [INFO] [stdout] --> /rustc/8a703520e80d87d4423c01f9d4fbc9e5f6533a02/library/core/src/ops/arith.rs:859:8 [INFO] [stdout] | [INFO] [stdout] = note: `SubAssign` [INFO] [stdout] ::: /rustc/8a703520e80d87d4423c01f9d4fbc9e5f6533a02/library/core/src/ops/arith.rs:872:0 [INFO] [stdout] | [INFO] [stdout] = note: in this macro invocation [INFO] [stdout] --> /rustc/8a703520e80d87d4423c01f9d4fbc9e5f6533a02/library/core/src/internal_macros.rs:61:8 [INFO] [stdout] | [INFO] [stdout] = note: `SubAssign<&usize>` [INFO] [stdout] = note: this error originates in the macro `sub_assign_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [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) due to 5 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "c1a233a5a1497605e9d1dd2e554cf6cabcd37fd50e72405dc3ed57fa584412e3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c1a233a5a1497605e9d1dd2e554cf6cabcd37fd50e72405dc3ed57fa584412e3", kill_on_drop: false }` [INFO] [stdout] c1a233a5a1497605e9d1dd2e554cf6cabcd37fd50e72405dc3ed57fa584412e3