[INFO] cloning repository https://github.com/sam0x17/safe-math [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sam0x17/safe-math" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsam0x17%2Fsafe-math", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsam0x17%2Fsafe-math'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fd8e8167ff95761d9b6407e2feec47032c2311ca [INFO] checking sam0x17/safe-math against master#d0835adc4e114eac911150b3692b830b5583223a for pr-149195-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsam0x17%2Fsafe-math" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-4-tc1/source/rust-toolchain.toml [INFO] started tweaking git repo https://github.com/sam0x17/safe-math [INFO] finished tweaking git repo https://github.com/sam0x17/safe-math [INFO] tweaked toml for git repo https://github.com/sam0x17/safe-math written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/sam0x17/safe-math on toolchain d0835adc4e114eac911150b3692b830b5583223a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d0835adc4e114eac911150b3692b830b5583223a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/sam0x17/safe-math 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" "+d0835adc4e114eac911150b3692b830b5583223a" "fetch" "--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] Downloading crates ... [INFO] [stderr] Downloaded quoth-macros v0.2.1 [INFO] [stderr] Downloaded safe-string v0.2.0 [INFO] [stderr] Downloaded crabtime-internal v1.1.4 [INFO] [stderr] Downloaded crabtime v1.1.4 [INFO] [stderr] Downloaded toml_edit v0.23.9 [INFO] [stderr] Downloaded quoth v0.2.1 [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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+d0835adc4e114eac911150b3692b830b5583223a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 41178e899771c11ad648d4709159b89b9e3becb9d44f5ba248f52a973cc7ed14 [INFO] running `Command { std: "docker" "start" "-a" "41178e899771c11ad648d4709159b89b9e3becb9d44f5ba248f52a973cc7ed14", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "41178e899771c11ad648d4709159b89b9e3becb9d44f5ba248f52a973cc7ed14", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "41178e899771c11ad648d4709159b89b9e3becb9d44f5ba248f52a973cc7ed14", kill_on_drop: false }` [INFO] [stdout] 41178e899771c11ad648d4709159b89b9e3becb9d44f5ba248f52a973cc7ed14 [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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+d0835adc4e114eac911150b3692b830b5583223a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 095199743e310e260cb1bdc7a856c8b05370012ea1c966febdffb8c05c97f386 [INFO] running `Command { std: "docker" "start" "-a" "095199743e310e260cb1bdc7a856c8b05370012ea1c966febdffb8c05c97f386", kill_on_drop: false }` [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling proc-macro2 v1.0.103 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling unicode-ident v1.0.22 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling quote v1.0.42 [INFO] [stderr] Compiling hashbrown v0.16.1 [INFO] [stderr] Compiling semver v1.0.27 [INFO] [stderr] Checking memchr v2.7.6 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling toml_write v0.1.2 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling winnow v0.7.14 [INFO] [stderr] Compiling crabtime-internal v1.1.4 [INFO] [stderr] Checking aho-corasick v1.1.4 [INFO] [stderr] Checking regex-syntax v0.8.8 [INFO] [stderr] Compiling indexmap v2.12.1 [INFO] [stderr] Compiling syn v2.0.111 [INFO] [stderr] Compiling rust_decimal v1.39.0 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking safe-string v0.2.0 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking regex-automata v0.4.13 [INFO] [stderr] Compiling serde_spanned v0.6.9 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Checking regex v1.12.2 [INFO] [stderr] Compiling quoth-macros v0.2.1 [INFO] [stderr] Checking quoth v0.2.1 [INFO] [stderr] Compiling toml v0.8.23 [INFO] [stderr] Checking crabtime v1.1.4 [INFO] [stderr] Checking safe-bigmath v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] error: macros that expand to items must be delimited with braces or followed by a semicolon [INFO] [stdout] --> src/decimal.rs:130:1 [INFO] [stdout] | [INFO] [stdout] 130 | #[crabtime::function] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 370 | gen_decimal_ops!(); [INFO] [stdout] | ------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `crabtime::eval_function` which comes from the expansion of the macro `gen_decimal_ops` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: No 'Cargo.toml' files found in parent directories of '/opt/rustwide/src/decimal'. [INFO] [stdout] --> src/decimal.rs:130:1 [INFO] [stdout] | [INFO] [stdout] 130 | #[crabtime::function] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 370 | gen_decimal_ops!(); [INFO] [stdout] | ------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `crabtime::eval_function` which comes from the expansion of the macro `gen_decimal_ops` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: macros that expand to items must be delimited with braces or followed by a semicolon [INFO] [stdout] --> src/decimal.rs:372:1 [INFO] [stdout] | [INFO] [stdout] 372 | #[crabtime::function] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 415 | gen_decimal_divs!(); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `crabtime::eval_function` which comes from the expansion of the macro `gen_decimal_divs` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: No 'Cargo.toml' files found in parent directories of '/opt/rustwide/src/decimal'. [INFO] [stdout] --> src/decimal.rs:372:1 [INFO] [stdout] | [INFO] [stdout] 372 | #[crabtime::function] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 415 | gen_decimal_divs!(); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `crabtime::eval_function` which comes from the expansion of the macro `gen_decimal_divs` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: macros that expand to items must be delimited with braces or followed by a semicolon [INFO] [stdout] --> src/decimal.rs:130:1 [INFO] [stdout] | [INFO] [stdout] 130 | #[crabtime::function] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 370 | gen_decimal_ops!(); [INFO] [stdout] | ------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `crabtime::eval_function` which comes from the expansion of the macro `gen_decimal_ops` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: No 'Cargo.toml' files found in parent directories of '/opt/rustwide/src/decimal'. [INFO] [stdout] --> src/decimal.rs:130:1 [INFO] [stdout] | [INFO] [stdout] 130 | #[crabtime::function] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 370 | gen_decimal_ops!(); [INFO] [stdout] | ------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `crabtime::eval_function` which comes from the expansion of the macro `gen_decimal_ops` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: macros that expand to items must be delimited with braces or followed by a semicolon [INFO] [stdout] --> src/decimal.rs:372:1 [INFO] [stdout] | [INFO] [stdout] 372 | #[crabtime::function] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 415 | gen_decimal_divs!(); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `crabtime::eval_function` which comes from the expansion of the macro `gen_decimal_divs` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: No 'Cargo.toml' files found in parent directories of '/opt/rustwide/src/decimal'. [INFO] [stdout] --> src/decimal.rs:372:1 [INFO] [stdout] | [INFO] [stdout] 372 | #[crabtime::function] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 415 | gen_decimal_divs!(); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `crabtime::eval_function` which comes from the expansion of the macro `gen_decimal_divs` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: cannot add `SafeDec<3>` to `SafeDec<3>` [INFO] [stdout] --> src/decimal.rs:585:23 [INFO] [stdout] | [INFO] [stdout] 585 | let c = a.clone() + b; [INFO] [stdout] | --------- ^ - SafeDec<3> [INFO] [stdout] | | [INFO] [stdout] | SafeDec<3> [INFO] [stdout] | [INFO] [stdout] note: an implementation of `core::ops::Add` might be missing for `SafeDec<3>` [INFO] [stdout] --> src/decimal.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct SafeDec(SafeInt); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ must implement `core::ops::Add` [INFO] [stdout] note: the trait `core::ops::Add` must be implemented [INFO] [stdout] --> /rustc/d0835adc4e114eac911150b3692b830b5583223a/library/core/src/ops/arith.rs:77:0 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: cannot subtract `SafeDec<3>` from `SafeDec<3>` [INFO] [stdout] --> src/decimal.rs:598:23 [INFO] [stdout] | [INFO] [stdout] 598 | let c = a.clone() - b; [INFO] [stdout] | --------- ^ - SafeDec<3> [INFO] [stdout] | | [INFO] [stdout] | SafeDec<3> [INFO] [stdout] | [INFO] [stdout] note: an implementation of `core::ops::Sub` might be missing for `SafeDec<3>` [INFO] [stdout] --> src/decimal.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct SafeDec(SafeInt); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ must implement `core::ops::Sub` [INFO] [stdout] note: the trait `core::ops::Sub` must be implemented [INFO] [stdout] --> /rustc/d0835adc4e114eac911150b3692b830b5583223a/library/core/src/ops/arith.rs:190:0 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot multiply `u64` by `SafeDec<3>` [INFO] [stdout] --> src/decimal.rs:618:15 [INFO] [stdout] | [INFO] [stdout] 618 | let c = a * b; [INFO] [stdout] | ^ no implementation for `u64 * SafeDec<3>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `core::ops::Mul>` is not implemented for `u64` [INFO] [stdout] = help: the following other types implement trait `core::ops::Mul`: [INFO] [stdout] `&u64` implements `core::ops::Mul<&BigInt>` [INFO] [stdout] `&u64` implements `core::ops::Mul<&BigUint>` [INFO] [stdout] `&u64` implements `core::ops::Mul` [INFO] [stdout] `&u64` implements `core::ops::Mul` [INFO] [stdout] `&u64` implements `core::ops::Mul` [INFO] [stdout] `&u64` implements `core::ops::Mul` [INFO] [stdout] `u64` implements `core::ops::Mul<&BigInt>` [INFO] [stdout] `u64` implements `core::ops::Mul<&BigUint>` [INFO] [stdout] and 6 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/decimal.rs:618:9 [INFO] [stdout] | [INFO] [stdout] 618 | let c = a * b; [INFO] [stdout] | ^ [INFO] [stdout] 619 | assert_eq!(c.to_string().as_str(), "-991.368"); [INFO] [stdout] | - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `c` an explicit type [INFO] [stdout] | [INFO] [stdout] 618 | let c: /* Type */ = a * b; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot multiply `SafeInt` by `SafeDec<10>` [INFO] [stdout] --> src/decimal.rs:688:15 [INFO] [stdout] | [INFO] [stdout] 688 | let c = a * b; [INFO] [stdout] | ^ no implementation for `SafeInt * SafeDec<10>` [INFO] [stdout] | [INFO] [stdout] help: the trait `core::ops::Mul>` is not implemented for `SafeInt` [INFO] [stdout] --> src/integer.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct SafeInt(BigInt); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `core::ops::Mul`: [INFO] [stdout] `&SafeInt` implements `core::ops::Mul` [INFO] [stdout] `&SafeInt` implements `core::ops::Mul` [INFO] [stdout] `&SafeInt` implements `core::ops::Mul` [INFO] [stdout] `&SafeInt` implements `core::ops::Mul` [INFO] [stdout] `&SafeInt` implements `core::ops::Mul` [INFO] [stdout] `&SafeInt` implements `core::ops::Mul` [INFO] [stdout] `&SafeInt` implements `core::ops::Mul` [INFO] [stdout] `&SafeInt` implements `core::ops::Mul` [INFO] [stdout] and 20 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/decimal.rs:688:9 [INFO] [stdout] | [INFO] [stdout] 688 | let c = a * b; [INFO] [stdout] | ^ [INFO] [stdout] 689 | assert_eq!(c.to_string(), "0.0000500000"); [INFO] [stdout] | - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `c` an explicit type [INFO] [stdout] | [INFO] [stdout] 688 | let c: /* Type */ = a * b; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `safe-bigmath` (lib) due to 4 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] Some errors have detailed explanations: E0277, E0282, E0369. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `safe-bigmath` (lib test) due to 10 previous errors [INFO] running `Command { std: "docker" "inspect" "095199743e310e260cb1bdc7a856c8b05370012ea1c966febdffb8c05c97f386", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "095199743e310e260cb1bdc7a856c8b05370012ea1c966febdffb8c05c97f386", kill_on_drop: false }` [INFO] [stdout] 095199743e310e260cb1bdc7a856c8b05370012ea1c966febdffb8c05c97f386