[INFO] fetching crate nnsdao_sdk_basic 0.1.1... [INFO] testing nnsdao_sdk_basic-0.1.1 against master#0e21a27075a8c508f00d1a4430497f17ce93d5c9 for pr-98839 [INFO] extracting crate nnsdao_sdk_basic 0.1.1 into /workspace/builds/worker-3/source [INFO] validating manifest of crates.io crate nnsdao_sdk_basic 0.1.1 on toolchain 0e21a27075a8c508f00d1a4430497f17ce93d5c9 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+0e21a27075a8c508f00d1a4430497f17ce93d5c9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate nnsdao_sdk_basic 0.1.1 [INFO] finished tweaking crates.io crate nnsdao_sdk_basic 0.1.1 [INFO] tweaked toml for crates.io crate nnsdao_sdk_basic 0.1.1 written to /workspace/builds/worker-3/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+0e21a27075a8c508f00d1a4430497f17ce93d5c9" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+0e21a27075a8c508f00d1a4430497f17ce93d5c9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:5873ed620acfc3295992aedd9294443d62a478a48ba243bc5e6c4f5abaffa05f" "/opt/rustwide/cargo-home/bin/cargo" "+0e21a27075a8c508f00d1a4430497f17ce93d5c9" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 34931991a97fb9fce7869c5b716fad9d17a441c1e4f0a07b193e048cba04f9a2 [INFO] running `Command { std: "docker" "start" "-a" "34931991a97fb9fce7869c5b716fad9d17a441c1e4f0a07b193e048cba04f9a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "34931991a97fb9fce7869c5b716fad9d17a441c1e4f0a07b193e048cba04f9a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "34931991a97fb9fce7869c5b716fad9d17a441c1e4f0a07b193e048cba04f9a2", kill_on_drop: false }` [INFO] [stdout] 34931991a97fb9fce7869c5b716fad9d17a441c1e4f0a07b193e048cba04f9a2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "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:5873ed620acfc3295992aedd9294443d62a478a48ba243bc5e6c4f5abaffa05f" "/opt/rustwide/cargo-home/bin/cargo" "+0e21a27075a8c508f00d1a4430497f17ce93d5c9" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 008a5f997c78661d11a5383bc6b6ddaec2655354ff77c7687805a1d4d168130a [INFO] running `Command { std: "docker" "start" "-a" "008a5f997c78661d11a5383bc6b6ddaec2655354ff77c7687805a1d4d168130a", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling proc-macro2 v1.0.40 [INFO] [stderr] Compiling quote v1.0.20 [INFO] [stderr] Compiling unicode-ident v1.0.1 [INFO] [stderr] Compiling syn v1.0.98 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling serde_derive v1.0.138 [INFO] [stderr] Compiling serde v1.0.138 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling regex-syntax v0.6.27 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling smallvec v1.9.0 [INFO] [stderr] Compiling either v1.7.0 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling hashbrown v0.12.1 [INFO] [stderr] Compiling siphasher v0.3.10 [INFO] [stderr] Compiling new_debug_unreachable v1.0.4 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling once_cell v1.13.0 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling rustversion v1.0.7 [INFO] [stderr] Compiling diff v0.1.13 [INFO] [stderr] Compiling pico-args v0.4.2 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling unicode-xid v0.2.3 [INFO] [stderr] Compiling anyhow v1.0.58 [INFO] [stderr] Compiling beef v0.5.2 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling cpufeatures v0.2.2 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling termcolor v1.1.3 [INFO] [stderr] Compiling base32 v0.4.0 [INFO] [stderr] Compiling typed-arena v2.0.1 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling unicode-width v0.1.9 [INFO] [stderr] Compiling paste v1.0.7 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling leb128 v0.2.5 [INFO] [stderr] Compiling async-trait v0.1.56 [INFO] [stderr] Compiling lalrpop-util v0.19.8 [INFO] [stderr] Compiling itertools v0.10.3 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling bit-set v0.5.2 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling indexmap v1.9.1 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling codespan-reporting v0.11.1 [INFO] [stderr] Compiling pretty v0.10.0 [INFO] [stderr] Compiling ena v0.14.0 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling dirs-sys-next v0.1.2 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling dirs-next v2.0.0 [INFO] [stderr] Compiling term v0.7.0 [INFO] [stderr] Compiling petgraph v0.6.2 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling regex v1.6.0 [INFO] [stderr] Compiling string_cache v0.8.4 [INFO] [stderr] Compiling ascii-canvas v3.0.0 [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 lalrpop v0.19.8 [INFO] [stderr] Compiling thiserror-impl v1.0.31 [INFO] [stderr] Compiling binread_derive v2.1.0 [INFO] [stderr] Compiling logos-derive v0.12.1 [INFO] [stderr] Compiling candid_derive v0.4.5 [INFO] [stderr] Compiling thiserror v1.0.31 [INFO] [stderr] Compiling logos v0.12.1 [INFO] [stderr] Compiling binread v2.2.0 [INFO] [stderr] Compiling toml v0.5.9 [INFO] [stderr] Compiling serde_bytes v0.11.6 [INFO] [stderr] Compiling serde_tokenstream v0.1.3 [INFO] [stderr] Compiling ic-types v0.3.0 [INFO] [stderr] Compiling proc-macro-crate v1.1.3 [INFO] [stderr] Compiling candid v0.7.14 [INFO] [stderr] Compiling num_enum_derive v0.5.7 [INFO] [stderr] Compiling num_enum v0.5.7 [INFO] [stderr] Compiling ic-cdk v0.5.2 [INFO] [stderr] Compiling ic-cdk-macros v0.5.2 [INFO] [stderr] Compiling nnsdao_sdk_basic v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 45.97s [INFO] running `Command { std: "docker" "inspect" "008a5f997c78661d11a5383bc6b6ddaec2655354ff77c7687805a1d4d168130a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "008a5f997c78661d11a5383bc6b6ddaec2655354ff77c7687805a1d4d168130a", kill_on_drop: false }` [INFO] [stdout] 008a5f997c78661d11a5383bc6b6ddaec2655354ff77c7687805a1d4d168130a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "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:5873ed620acfc3295992aedd9294443d62a478a48ba243bc5e6c4f5abaffa05f" "/opt/rustwide/cargo-home/bin/cargo" "+0e21a27075a8c508f00d1a4430497f17ce93d5c9" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ab6734b3d662eaba9382bdf25a18b7b97f06205e12ef0c2886c9a3ac865c23c5 [INFO] running `Command { std: "docker" "start" "-a" "ab6734b3d662eaba9382bdf25a18b7b97f06205e12ef0c2886c9a3ac865c23c5", kill_on_drop: false }` [INFO] [stderr] Compiling nnsdao_sdk_basic v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 3.77s [INFO] running `Command { std: "docker" "inspect" "ab6734b3d662eaba9382bdf25a18b7b97f06205e12ef0c2886c9a3ac865c23c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ab6734b3d662eaba9382bdf25a18b7b97f06205e12ef0c2886c9a3ac865c23c5", kill_on_drop: false }` [INFO] [stdout] ab6734b3d662eaba9382bdf25a18b7b97f06205e12ef0c2886c9a3ac865c23c5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "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:5873ed620acfc3295992aedd9294443d62a478a48ba243bc5e6c4f5abaffa05f" "/opt/rustwide/cargo-home/bin/cargo" "+0e21a27075a8c508f00d1a4430497f17ce93d5c9" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 1645dc7a80aab5c6a797f0d59c14e68dc2745a97816f941b43fd02932219b065 [INFO] running `Command { std: "docker" "start" "-a" "1645dc7a80aab5c6a797f0d59c14e68dc2745a97816f941b43fd02932219b065", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/nnsdao_sdk_basic-9719689a1cc8c90a) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests nnsdao_sdk_basic [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test src/lib.rs - (line 4) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 4) stdout ---- [INFO] [stdout] error[E0706]: functions in traits cannot be declared `async` [INFO] [stdout] --> src/lib.rs:9:2 [INFO] [stdout] | [INFO] [stdout] 7 | async fn is_member(&self, _member: Principal) -> Result { [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | __`async` because of this [INFO] [stdout] | | [INFO] [stdout] 8 | | Ok(true) [INFO] [stdout] 9 | | } [INFO] [stdout] | |__^ [INFO] [stdout] | [INFO] [stdout] = note: `async` trait functions are not currently supported [INFO] [stdout] = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait [INFO] [stdout] [INFO] [stdout] error[E0706]: functions in traits cannot be declared `async` [INFO] [stdout] --> src/lib.rs:12:2 [INFO] [stdout] | [INFO] [stdout] 10 | async fn handle_proposal(&self) -> Result<(), String> { [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | __`async` because of this [INFO] [stdout] | | [INFO] [stdout] 11 | | Ok(()) [INFO] [stdout] 12 | | } [INFO] [stdout] | |__^ [INFO] [stdout] | [INFO] [stdout] = note: `async` trait functions are not currently supported [INFO] [stdout] = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `async_trait` in this scope [INFO] [stdout] --> src/lib.rs:7:3 [INFO] [stdout] | [INFO] [stdout] 5 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this attribute macro: [INFO] [stdout] async_trait::async_trait [INFO] [stdout] = note: `async_trait` is in scope, but it is a crate, not an attribute [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `CandidType` in this scope [INFO] [stdout] --> src/lib.rs:5:33 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Clone, Debug, Default, CandidType, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this derive macro: [INFO] [stdout] candid::CandidType [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/lib.rs:5:45 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Clone, Debug, Default, CandidType, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing one of these items: [INFO] [stdout] candid::Deserialize [INFO] [stdout] serde::Deserialize [INFO] [stdout] serde_derive::Deserialize [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `DaoCustomFn` in this scope [INFO] [stdout] --> src/lib.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 6 | impl DaoCustomFn for CustomFn { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 | use nnsdao_sdk_basic::DaoCustomFn; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Principal` in this scope [INFO] [stdout] --> src/lib.rs:9:37 [INFO] [stdout] | [INFO] [stdout] 7 | async fn is_member(&self, _member: Principal) -> Result { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use candid::Principal; [INFO] [stdout] | [INFO] [stdout] 2 | use ic_cdk::export::Principal; [INFO] [stdout] | [INFO] [stdout] 2 | use ic_types::Principal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DaoBasic` [INFO] [stdout] --> src/lib.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 14 | let dao_basic = DaoBasic::new(CustomFn::default()); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use nnsdao_sdk_basic::DaoBasic; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0433, E0706. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 4) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.14s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "1645dc7a80aab5c6a797f0d59c14e68dc2745a97816f941b43fd02932219b065", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1645dc7a80aab5c6a797f0d59c14e68dc2745a97816f941b43fd02932219b065", kill_on_drop: false }` [INFO] [stdout] 1645dc7a80aab5c6a797f0d59c14e68dc2745a97816f941b43fd02932219b065