[INFO] fetching crate ontio-std 0.5.0... [INFO] checking ontio-std-0.5.0 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] extracting crate ontio-std 0.5.0 into /workspace/builds/worker-7-tc2/source [INFO] started tweaking crates.io crate ontio-std 0.5.0 [INFO] finished tweaking crates.io crate ontio-std 0.5.0 [INFO] tweaked toml for crates.io crate ontio-std 0.5.0 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate ontio-std 0.5.0 on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 56 packages to latest compatible versions [INFO] [stderr] Adding cfg-if v0.1.10 (available: v1.0.3) [INFO] [stderr] Adding fixed-hash v0.4.0 (available: v0.8.0) [INFO] [stderr] Adding rand v0.7.3 (available: v0.9.2) [INFO] [stderr] Adding sha2 v0.9.9 (available: v0.10.9) [INFO] [stderr] Adding uint v0.8.5 (available: v0.10.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 99cef1999a5b0e2bef8df5f1aa48c3dc36666ea9d157ba320353a821b2aba797 [INFO] running `Command { std: "docker" "start" "-a" "99cef1999a5b0e2bef8df5f1aa48c3dc36666ea9d157ba320353a821b2aba797", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "99cef1999a5b0e2bef8df5f1aa48c3dc36666ea9d157ba320353a821b2aba797", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "99cef1999a5b0e2bef8df5f1aa48c3dc36666ea9d157ba320353a821b2aba797", kill_on_drop: false }` [INFO] [stdout] 99cef1999a5b0e2bef8df5f1aa48c3dc36666ea9d157ba320353a821b2aba797 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9983b419f08fa1eecfc8360a3875adb4046995fa557b1afd9efc790b640ab022 [INFO] running `Command { std: "docker" "start" "-a" "9983b419f08fa1eecfc8360a3875adb4046995fa557b1afd9efc790b640ab022", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling unicode-segmentation v1.12.0 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Checking cfg-if v1.0.3 [INFO] [stderr] Compiling wee_alloc v0.4.5 [INFO] [stderr] Compiling opaque-debug v0.3.1 [INFO] [stderr] Compiling cpufeatures v0.2.17 [INFO] [stderr] Checking static_assertions v0.2.5 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking memory_units v0.4.0 [INFO] [stderr] Checking rustc-hex v2.1.0 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking fixed-hash v0.4.0 [INFO] [stderr] Checking uint v0.8.5 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling num-bigint v0.3.3 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling num-complex v0.3.1 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling sha2 v0.9.9 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Compiling num v0.3.1 [INFO] [stderr] Compiling ontio-codegen v0.2.1 [INFO] [stderr] Compiling ontio-derive-codec v0.2.0 [INFO] [stderr] Checking ontio-std v0.5.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `alloc::prelude` [INFO] [stdout] --> src/lib.rs:64:20 [INFO] [stdout] | [INFO] [stdout] 64 | pub use alloc::prelude::*; [INFO] [stdout] | ^^^^^^^ could not find `prelude` in `alloc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `lang_items` is internal to the compiler or standard library [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(lang_items)] [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:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(core_intrinsics)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using it is strongly discouraged [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `dev` [INFO] [stdout] --> src/types.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / construct_fixed_hash! { [INFO] [stdout] 5 | | /// A byte array of length 32 representing the block hash, etc. [INFO] [stdout] 6 | | /// [INFO] [stdout] 7 | | /// # Example [INFO] [stdout] ... | [INFO] [stdout] 15 | | pub struct H256(32); [INFO] [stdout] 16 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `bump-alloc`, `mock`, `ontio-bump-alloc`, `sha2`, and `std` [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `construct_fixed_hash` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `construct_fixed_hash` may come from an old version of the `fixed_hash` crate, try updating your dependency with `cargo update -p fixed_hash` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the macro `construct_fixed_hash` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `dev` [INFO] [stdout] --> src/types.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | / construct_fixed_hash! { [INFO] [stdout] 19 | | /// A byte array of length 20 representing the Address. [INFO] [stdout] 20 | | /// [INFO] [stdout] 21 | | pub struct H160(20); [INFO] [stdout] 22 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `bump-alloc`, `mock`, `ontio-bump-alloc`, `sha2`, and `std` [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `construct_fixed_hash` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `construct_fixed_hash` may come from an old version of the `fixed_hash` crate, try updating your dependency with `cargo update -p fixed_hash` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `construct_fixed_hash` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0522]: definition of an unknown lang item: `oom` [INFO] [stdout] --> src/lib.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | #[lang = "oom"] [INFO] [stdout] | ^^^^^^^^^^^^^^^ definition of unknown lang item `oom` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `exclusive_range_pattern` has been stable since 1.80.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | #![feature(exclusive_range_pattern)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `panic_info_message` has been stable since 1.81.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | #![feature(panic_info_message)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0635]: unknown feature `alloc_prelude` [INFO] [stdout] --> src/lib.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | #![feature(alloc_prelude)] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `#[no_mangle]` cannot be used on internal language items [INFO] [stdout] --> src/lib.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 31 | #[panic_handler] [INFO] [stdout] 32 | pub fn panic_fmt(info: &core::panic::PanicInfo) -> ! { [INFO] [stdout] | ---------------------------------------------------- should be the internal language item [INFO] [stdout] | [INFO] [stdout] = note: Rustc requires this item to have a specific mangled name. [INFO] [stdout] = note: If you are trying to prevent mangling to ease debugging, many [INFO] [stdout] = note: debuggers support a command such as `rbreak rust_begin_unwind` to [INFO] [stdout] = note: match `.*rust_begin_unwind.*` instead of `break rust_begin_unwind` on a specific name [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `alloc::prelude` [INFO] [stdout] --> src/lib.rs:64:20 [INFO] [stdout] | [INFO] [stdout] 64 | pub use alloc::prelude::*; [INFO] [stdout] | ^^^^^^^ could not find `prelude` in `alloc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `lang_items` is internal to the compiler or standard library [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(lang_items)] [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:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(core_intrinsics)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using it is strongly discouraged [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `dev` [INFO] [stdout] --> src/types.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | / construct_fixed_hash! { [INFO] [stdout] 5 | | /// A byte array of length 32 representing the block hash, etc. [INFO] [stdout] 6 | | /// [INFO] [stdout] 7 | | /// # Example [INFO] [stdout] ... | [INFO] [stdout] 15 | | pub struct H256(32); [INFO] [stdout] 16 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `bump-alloc`, `mock`, `ontio-bump-alloc`, `sha2`, and `std` [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `construct_fixed_hash` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `construct_fixed_hash` may come from an old version of the `fixed_hash` crate, try updating your dependency with `cargo update -p fixed_hash` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the macro `construct_fixed_hash` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `dev` [INFO] [stdout] --> src/types.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | / construct_fixed_hash! { [INFO] [stdout] 19 | | /// A byte array of length 20 representing the Address. [INFO] [stdout] 20 | | /// [INFO] [stdout] 21 | | pub struct H160(20); [INFO] [stdout] 22 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `bump-alloc`, `mock`, `ontio-bump-alloc`, `sha2`, and `std` [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `construct_fixed_hash` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `construct_fixed_hash` may come from an old version of the `fixed_hash` crate, try updating your dependency with `cargo update -p fixed_hash` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `construct_fixed_hash` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0152]: found duplicate lang item `panic_impl` [INFO] [stdout] --> src/lib.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | / pub fn panic_fmt(info: &core::panic::PanicInfo) -> ! { [INFO] [stdout] 33 | | let msg = info.message().map(|msg| format!("{}", msg)).unwrap_or_default(); [INFO] [stdout] 34 | | let (file, line) = if let Some(loc) = info.location() { [INFO] [stdout] 35 | | (loc.file(), loc.line()) [INFO] [stdout] ... | [INFO] [stdout] 42 | | runtime::panic(&panic_msg) [INFO] [stdout] 43 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: the lang item is first defined in crate `std` (which `test` depends on) [INFO] [stdout] = note: first definition in `std` loaded from /opt/rustwide/rustup-home/toolchains/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-9fbdd90241d2d923.rlib [INFO] [stdout] = note: second definition in the local crate (`ontio_std`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0152, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0152`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ontio-std` (lib test) due to 2 previous errors; 4 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: `PanicMessage<'_>` is not an iterator [INFO] [stdout] --> src/lib.rs:33:38 [INFO] [stdout] | [INFO] [stdout] 33 | let msg = info.message().map(|msg| format!("{}", msg)).unwrap_or_default(); [INFO] [stdout] | ^^^ `PanicMessage<'_>` is not an iterator [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `PanicMessage<'_>: core::iter::Iterator` [INFO] [stdout] which is required by `&mut PanicMessage<'_>: core::iter::Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/database/list.rs:115:17 [INFO] [stdout] | [INFO] [stdout] 115 | let mut bulk = &mut self.index_size[ind]; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/database/list.rs:160:17 [INFO] [stdout] | [INFO] [stdout] 160 | let mut last_index_count = self.index_size.last_mut().unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0522, E0599, E0635. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ontio-std` (lib) due to 5 previous errors; 8 warnings emitted [INFO] running `Command { std: "docker" "inspect" "9983b419f08fa1eecfc8360a3875adb4046995fa557b1afd9efc790b640ab022", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9983b419f08fa1eecfc8360a3875adb4046995fa557b1afd9efc790b640ab022", kill_on_drop: false }` [INFO] [stdout] 9983b419f08fa1eecfc8360a3875adb4046995fa557b1afd9efc790b640ab022