[INFO] cloning repository https://github.com/Sotatek-CuongTran/rust-test-cache-macro [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Sotatek-CuongTran/rust-test-cache-macro" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSotatek-CuongTran%2Frust-test-cache-macro", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSotatek-CuongTran%2Frust-test-cache-macro'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 06da06f145645db2f922d29e500376b9c4126749 [INFO] building Sotatek-CuongTran/rust-test-cache-macro against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSotatek-CuongTran%2Frust-test-cache-macro" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Sotatek-CuongTran/rust-test-cache-macro [INFO] finished tweaking git repo https://github.com/Sotatek-CuongTran/rust-test-cache-macro [INFO] tweaked toml for git repo https://github.com/Sotatek-CuongTran/rust-test-cache-macro written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Sotatek-CuongTran/rust-test-cache-macro on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Sotatek-CuongTran/rust-test-cache-macro 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ethereum-types v0.12.1 [INFO] [stderr] Downloaded bb8-redis v0.7.0 [INFO] [stderr] Downloaded bb8 v0.6.2 [INFO] [stderr] Downloaded primitive-types v0.10.1 [INFO] [stderr] Downloaded ethabi v16.0.0 [INFO] [stderr] Downloaded bb8 v0.7.1 [INFO] [stderr] Downloaded bytes v0.6.0 [INFO] [stderr] Downloaded secp256k1 v0.21.3 [INFO] [stderr] Downloaded cc v1.1.30 [INFO] [stderr] Downloaded web3 v0.18.0 [INFO] [stderr] Downloaded redis v0.18.0 [INFO] [stderr] Downloaded tokio-util v0.4.0 [INFO] [stderr] Downloaded redis v0.27.4 [INFO] [stderr] Downloaded syn v2.0.79 [INFO] [stderr] Downloaded tokio v0.3.7 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d2d7b8af129bf60efad1a72ac5336bd03a5562435853ba253b126c236f100eaa [INFO] running `Command { std: "docker" "start" "-a" "d2d7b8af129bf60efad1a72ac5336bd03a5562435853ba253b126c236f100eaa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d2d7b8af129bf60efad1a72ac5336bd03a5562435853ba253b126c236f100eaa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d2d7b8af129bf60efad1a72ac5336bd03a5562435853ba253b126c236f100eaa", kill_on_drop: false }` [INFO] [stdout] d2d7b8af129bf60efad1a72ac5336bd03a5562435853ba253b126c236f100eaa [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5745cdd37d6381d336c07d93fa9f217c1c47c7c368817128ba84e641e9743c77 [INFO] running `Command { std: "docker" "start" "-a" "5745cdd37d6381d336c07d93fa9f217c1c47c7c368817128ba84e641e9743c77", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.87 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling cc v1.1.30 [INFO] [stderr] Compiling hashbrown v0.15.0 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling tokio v0.3.7 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling bytes v0.6.0 [INFO] [stderr] Compiling rlp v0.5.2 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling byte-slice-cast v1.2.2 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Compiling uint v0.9.5 [INFO] [stderr] Compiling unicode-segmentation v1.12.0 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling regex-automata v0.4.8 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling impl-rlp v0.3.0 [INFO] [stderr] Compiling bytes v0.5.6 [INFO] [stderr] Compiling sha3 v0.9.1 [INFO] [stderr] Compiling tracing-log v0.1.4 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling matchers v0.0.1 [INFO] [stderr] Compiling indexmap v2.6.0 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling sha-1 v0.9.8 [INFO] [stderr] Compiling thread_local v1.1.8 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling dtoa v0.4.8 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling atoi v0.3.3 [INFO] [stderr] Compiling arc-swap v1.7.1 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling mio v0.7.14 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling openssl-sys v0.9.103 [INFO] [stderr] Compiling secp256k1-sys v0.4.2 [INFO] [stderr] Compiling syn v2.0.79 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Compiling openssl v0.10.66 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling regex v1.11.0 [INFO] [stderr] Compiling secp256k1 v0.21.3 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling tokio-util v0.4.0 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling async-trait v0.1.83 [INFO] [stderr] Compiling pin-project-internal v1.1.6 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling pin-project v1.1.6 [INFO] [stderr] Compiling tokio v1.40.0 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling parity-scale-codec-derive v2.3.1 [INFO] [stderr] Compiling impl-trait-for-tuples v0.2.2 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling tracing-futures v0.2.5 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling structopt v0.3.26 [INFO] [stderr] Compiling fixed-hash v0.7.0 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling bb8 v0.6.2 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling soketto v0.7.1 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Compiling impl-serde v0.3.2 [INFO] [stderr] Compiling parity-scale-codec v2.3.1 [INFO] [stderr] Compiling tracing-serde v0.1.3 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling ethbloom v0.11.1 [INFO] [stderr] Compiling impl-codec v0.5.1 [INFO] [stderr] Compiling primitive-types v0.10.1 [INFO] [stderr] Compiling jsonrpc-core v18.0.0 [INFO] [stderr] Compiling tracing-subscriber v0.2.25 [INFO] [stderr] Compiling tokio-util v0.7.12 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tokio-stream v0.1.16 [INFO] [stderr] Compiling tokio-util v0.6.10 [INFO] [stderr] Compiling web3-async-native-tls v0.4.0 [INFO] [stderr] Compiling bb8 v0.7.1 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling combine v4.6.7 [INFO] [stderr] Compiling ethereum-types v0.12.1 [INFO] [stderr] Compiling mini-redis v0.4.1 [INFO] [stderr] Compiling ethabi v16.0.0 [INFO] [stderr] Compiling hyper v0.14.30 [INFO] [stderr] Compiling redis v0.18.0 [INFO] [stderr] Compiling redis v0.27.4 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling web3 v0.18.0 [INFO] [stderr] Compiling bb8-redis v0.7.0 [INFO] [stderr] Compiling cached_macro v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `attr` [INFO] [stdout] --> src/lib.rs:74:19 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn test_macro(attr: TokenStream, item: TokenStream) -> TokenStream { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_attr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] attr: 20 [INFO] [stdout] item: pub async fn expensive_calculation(input: u64) -> Result> [INFO] [stdout] { [INFO] [stdout] tokio::time::sleep(tokio::time::Duration::from_secs(2)).await; Ok::>(input as i64 * 2) [INFO] [stdout] } [INFO] [stdout] attr: 10 [INFO] [stdout] item: pub async fn get_ethereum_balance_rpc(address: &str) -> Result> [INFO] [stdout] { [INFO] [stdout] let rpc_url = "https://ethereum-rpc.publicnode.com"; let transport = [INFO] [stdout] web3::transports::Http::new(rpc_url)?; let web3 = [INFO] [stdout] web3::Web3::new(transport); let address = H160::from_str(address)?; let [INFO] [stdout] balance = web3.eth().balance(address, None).await?; let balance_eth = [INFO] [stdout] wei_to_eth(balance); Ok(balance_eth) [INFO] [stdout] } [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 16s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: redis v0.18.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3` [INFO] running `Command { std: "docker" "inspect" "5745cdd37d6381d336c07d93fa9f217c1c47c7c368817128ba84e641e9743c77", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5745cdd37d6381d336c07d93fa9f217c1c47c7c368817128ba84e641e9743c77", kill_on_drop: false }` [INFO] [stdout] 5745cdd37d6381d336c07d93fa9f217c1c47c7c368817128ba84e641e9743c77 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 93aaa160683b9b42a74c9c45b128fe449368de1e25a46d246e5e92b14a2560e8 [INFO] running `Command { std: "docker" "start" "-a" "93aaa160683b9b42a74c9c45b128fe449368de1e25a46d246e5e92b14a2560e8", kill_on_drop: false }` [INFO] [stderr] Compiling cached_macro v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `attr` [INFO] [stdout] --> src/lib.rs:74:19 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn test_macro(attr: TokenStream, item: TokenStream) -> TokenStream { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_attr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `attr` [INFO] [stdout] --> src/lib.rs:74:19 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn test_macro(attr: TokenStream, item: TokenStream) -> TokenStream { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_attr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] attr: 20 [INFO] [stdout] item: pub async fn expensive_calculation(input: u64) -> Result> [INFO] [stdout] { [INFO] [stdout] tokio::time::sleep(tokio::time::Duration::from_secs(2)).await; Ok::>(input as i64 * 2) [INFO] [stdout] } [INFO] [stdout] attr: 10 [INFO] [stdout] item: pub async fn get_ethereum_balance_rpc(address: &str) -> Result> [INFO] [stdout] { [INFO] [stdout] let rpc_url = "https://ethereum-rpc.publicnode.com"; let transport = [INFO] [stdout] web3::transports::Http::new(rpc_url)?; let web3 = [INFO] [stdout] web3::Web3::new(transport); let address = H160::from_str(address)?; let [INFO] [stdout] balance = web3.eth().balance(address, None).await?; let balance_eth = [INFO] [stdout] wei_to_eth(balance); Ok(balance_eth) [INFO] [stdout] } [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.31s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: redis v0.18.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3` [INFO] running `Command { std: "docker" "inspect" "93aaa160683b9b42a74c9c45b128fe449368de1e25a46d246e5e92b14a2560e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "93aaa160683b9b42a74c9c45b128fe449368de1e25a46d246e5e92b14a2560e8", kill_on_drop: false }` [INFO] [stdout] 93aaa160683b9b42a74c9c45b128fe449368de1e25a46d246e5e92b14a2560e8