[INFO] cloning repository https://github.com/Young-TW/nz-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Young-TW/nz-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYoung-TW%2Fnz-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYoung-TW%2Fnz-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f8fbf59296977b1d9516f1e08a81e58f1710173c [INFO] checking Young-TW/nz-rs/f8fbf59296977b1d9516f1e08a81e58f1710173c against try#db4e1d23234d93b5e96ecc768b35d9090c32cddf for pr-149901 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYoung-TW%2Fnz-rs" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Young-TW/nz-rs [INFO] finished tweaking git repo https://github.com/Young-TW/nz-rs [INFO] tweaked toml for git repo https://github.com/Young-TW/nz-rs written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Young-TW/nz-rs on toolchain db4e1d23234d93b5e96ecc768b35d9090c32cddf [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+db4e1d23234d93b5e96ecc768b35d9090c32cddf" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Young-TW/nz-rs 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" "+db4e1d23234d93b5e96ecc768b35d9090c32cddf" "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-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db4e1d23234d93b5e96ecc768b35d9090c32cddf" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b6264137040ffbe24eb88f3359b338f3fa48508afc3250baa2a9af98d81a7073 [INFO] running `Command { std: "docker" "start" "-a" "b6264137040ffbe24eb88f3359b338f3fa48508afc3250baa2a9af98d81a7073", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b6264137040ffbe24eb88f3359b338f3fa48508afc3250baa2a9af98d81a7073", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b6264137040ffbe24eb88f3359b338f3fa48508afc3250baa2a9af98d81a7073", kill_on_drop: false }` [INFO] [stdout] b6264137040ffbe24eb88f3359b338f3fa48508afc3250baa2a9af98d81a7073 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db4e1d23234d93b5e96ecc768b35d9090c32cddf" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 74e88b3d52a84041f728bd6ac1013b732d3e90cd0626d30cb243e395ac68d540 [INFO] running `Command { std: "docker" "start" "-a" "74e88b3d52a84041f728bd6ac1013b732d3e90cd0626d30cb243e395ac68d540", kill_on_drop: false }` [INFO] [stderr] Checking nz-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: type `nzSign` should have an upper camel case name [INFO] [stdout] --> src/nzsign.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum nzSign { [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `NzSign` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `nzSign` should have an upper camel case name [INFO] [stdout] --> src/nzsign.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum nzSign { [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `NzSign` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::num::NonZero::::new_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/nzint.rs:36:15 [INFO] [stdout] | [INFO] [stdout] 36 | NzInt(NonZeroI64::new_unchecked(v)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/nzint.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | pub unsafe fn new_unchecked(v: i64) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::num::NonZero::::new_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/nzint.rs:36:15 [INFO] [stdout] | [INFO] [stdout] 36 | NzInt(NonZeroI64::new_unchecked(v)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/nzint.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | pub unsafe fn new_unchecked(v: i64) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `checked_sub`, `checked_mul`, `checked_neg`, `checked_abs`, and `signum` are never used [INFO] [stdout] --> src/nzint.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl NzInt { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn checked_sub(self, rhs: NzInt) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn checked_mul(self, rhs: NzInt) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn checked_neg(self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn checked_abs(self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | pub fn signum(self) -> NzInt { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `one` and `neg_one` are never used [INFO] [stdout] --> src/nzint.rs:223:12 [INFO] [stdout] | [INFO] [stdout] 220 | impl NzInt { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 223 | pub fn one() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 228 | pub fn neg_one() -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `not`, `xor`, `to_i8`, `from_i8`, and `to_bool` are never used [INFO] [stdout] --> src/nzsign.rs:13:22 [INFO] [stdout] | [INFO] [stdout] 8 | impl nzSign { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 13 | #[inline] pub fn not(self) -> Self { if self.is_true() { nzSign::Neg } else { nzSign::Pos } } [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | #[inline] pub fn xor(self, rhs: nzSign) -> nzSign { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | #[inline] pub fn to_i8(self) -> i8 { self as i8 } [INFO] [stdout] | ^^^^^ [INFO] [stdout] 32 | #[inline] pub fn from_i8(v: i8) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | #[inline] pub fn to_bool(self) -> bool { self.is_true() } [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `checked_sub`, `checked_mul`, `checked_neg`, `checked_abs`, and `signum` are never used [INFO] [stdout] --> src/nzint.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl NzInt { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn checked_sub(self, rhs: NzInt) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn checked_mul(self, rhs: NzInt) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn checked_neg(self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn checked_abs(self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | pub fn signum(self) -> NzInt { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `one` and `neg_one` are never used [INFO] [stdout] --> src/nzint.rs:223:12 [INFO] [stdout] | [INFO] [stdout] 220 | impl NzInt { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 223 | pub fn one() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 228 | pub fn neg_one() -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `not`, `xor`, `to_i8`, `from_i8`, and `to_bool` are never used [INFO] [stdout] --> src/nzsign.rs:13:22 [INFO] [stdout] | [INFO] [stdout] 8 | impl nzSign { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 13 | #[inline] pub fn not(self) -> Self { if self.is_true() { nzSign::Neg } else { nzSign::Pos } } [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | #[inline] pub fn xor(self, rhs: nzSign) -> nzSign { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | #[inline] pub fn to_i8(self) -> i8 { self as i8 } [INFO] [stdout] | ^^^^^ [INFO] [stdout] 32 | #[inline] pub fn from_i8(v: i8) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | #[inline] pub fn to_bool(self) -> bool { self.is_true() } [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.07s [INFO] running `Command { std: "docker" "inspect" "74e88b3d52a84041f728bd6ac1013b732d3e90cd0626d30cb243e395ac68d540", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "74e88b3d52a84041f728bd6ac1013b732d3e90cd0626d30cb243e395ac68d540", kill_on_drop: false }` [INFO] [stdout] 74e88b3d52a84041f728bd6ac1013b732d3e90cd0626d30cb243e395ac68d540