[INFO] cloning repository https://github.com/bui-duc-huy/reward-by-block [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bui-duc-huy/reward-by-block" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbui-duc-huy%2Freward-by-block", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbui-duc-huy%2Freward-by-block'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 234698d9763173c049ce62fed6e9e9f4f89b8422 [INFO] checking bui-duc-huy/reward-by-block against try#b10dae361a61486cfbdcd3aae3877ee17e00d192 for pr-153912 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbui-duc-huy%2Freward-by-block" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/bui-duc-huy/reward-by-block [INFO] finished tweaking git repo https://github.com/bui-duc-huy/reward-by-block [INFO] tweaked toml for git repo https://github.com/bui-duc-huy/reward-by-block written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/bui-duc-huy/reward-by-block on toolchain b10dae361a61486cfbdcd3aae3877ee17e00d192 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b10dae361a61486cfbdcd3aae3877ee17e00d192" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/bui-duc-huy/reward-by-block 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" "+b10dae361a61486cfbdcd3aae3877ee17e00d192" "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-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+b10dae361a61486cfbdcd3aae3877ee17e00d192" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3d520cb1e7283f53c652aafae9ea05ea3889a14a289518062ea477dd6e695b8c [INFO] running `Command { std: "docker" "start" "-a" "3d520cb1e7283f53c652aafae9ea05ea3889a14a289518062ea477dd6e695b8c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3d520cb1e7283f53c652aafae9ea05ea3889a14a289518062ea477dd6e695b8c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3d520cb1e7283f53c652aafae9ea05ea3889a14a289518062ea477dd6e695b8c", kill_on_drop: false }` [INFO] [stdout] 3d520cb1e7283f53c652aafae9ea05ea3889a14a289518062ea477dd6e695b8c [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+b10dae361a61486cfbdcd3aae3877ee17e00d192" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 549ef3e754f7c8c7c23f5d6c03c0938f147fb86f8d91db56ea15dfdf35a7df4f [INFO] running `Command { std: "docker" "start" "-a" "549ef3e754f7c8c7c23f5d6c03c0938f147fb86f8d91db56ea15dfdf35a7df4f", kill_on_drop: false }` [INFO] [stderr] Checking calculate_reward_by_block v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected expression, found `,` [INFO] [stdout] --> src/main.rs:56:15 [INFO] [stdout] | [INFO] [stdout] 55 | let farmer1 = Farmer { [INFO] [stdout] | ------ while parsing this struct [INFO] [stdout] 56 | farm: , [INFO] [stdout] | ^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found `,` [INFO] [stdout] --> src/main.rs:56:15 [INFO] [stdout] | [INFO] [stdout] 55 | let farmer1 = Farmer { [INFO] [stdout] | ------ while parsing this struct [INFO] [stdout] 56 | farm: , [INFO] [stdout] | ^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found struct `Farm` [INFO] [stdout] --> src/main.rs:53:25 [INFO] [stdout] | [INFO] [stdout] 1 | / struct Farm { [INFO] [stdout] 2 | | total_reward: u64, [INFO] [stdout] 3 | | reward_per_block: u64, [INFO] [stdout] 4 | | acc_token_per_share: u64, [INFO] [stdout] ... | [INFO] [stdout] 7 | | total_supply: u64, [INFO] [stdout] 8 | | } [INFO] [stdout] | |_- `Farm` defined here [INFO] [stdout] ... [INFO] [stdout] 53 | let farm_pointer = &Farm as *mut Farm; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: use struct literal syntax instead [INFO] [stdout] | [INFO] [stdout] 53 | let farm_pointer = &Farm { total_reward: val, reward_per_block: val, acc_token_per_share: val, start_block: val, last_block_update: val, total_supply: val } as *mut Farm; [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] help: a local variable with a similar name exists (notice the capitalization) [INFO] [stdout] | [INFO] [stdout] 53 - let farm_pointer = &Farm as *mut Farm; [INFO] [stdout] 53 + let farm_pointer = &farm as *mut Farm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found struct `Farm` [INFO] [stdout] --> src/main.rs:53:25 [INFO] [stdout] | [INFO] [stdout] 1 | / struct Farm { [INFO] [stdout] 2 | | total_reward: u64, [INFO] [stdout] 3 | | reward_per_block: u64, [INFO] [stdout] 4 | | acc_token_per_share: u64, [INFO] [stdout] ... | [INFO] [stdout] 7 | | total_supply: u64, [INFO] [stdout] 8 | | } [INFO] [stdout] | |_- `Farm` defined here [INFO] [stdout] ... [INFO] [stdout] 53 | let farm_pointer = &Farm as *mut Farm; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: use struct literal syntax instead [INFO] [stdout] | [INFO] [stdout] 53 | let farm_pointer = &Farm { total_reward: val, reward_per_block: val, acc_token_per_share: val, start_block: val, last_block_update: val, total_supply: val } as *mut Farm; [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] help: a local variable with a similar name exists (notice the capitalization) [INFO] [stdout] | [INFO] [stdout] 53 - let farm_pointer = &Farm as *mut Farm; [INFO] [stdout] 53 + let farm_pointer = &farm as *mut Farm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `total_supply` in initializer of `Farm` [INFO] [stdout] --> src/main.rs:45:20 [INFO] [stdout] | [INFO] [stdout] 45 | let mut farm = Farm{ [INFO] [stdout] | ^^^^ missing `total_supply` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `total_supply` in initializer of `Farm` [INFO] [stdout] --> src/main.rs:45:20 [INFO] [stdout] | [INFO] [stdout] 45 | let mut farm = Farm{ [INFO] [stdout] | ^^^^ missing `total_supply` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0063, E0423. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0063`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0063, E0423. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0063`. [INFO] [stdout] [INFO] [stderr] error: could not compile `calculate_reward_by_block` (bin "calculate_reward_by_block") due to 3 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `calculate_reward_by_block` (bin "calculate_reward_by_block" test) due to 3 previous errors [INFO] running `Command { std: "docker" "inspect" "549ef3e754f7c8c7c23f5d6c03c0938f147fb86f8d91db56ea15dfdf35a7df4f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "549ef3e754f7c8c7c23f5d6c03c0938f147fb86f8d91db56ea15dfdf35a7df4f", kill_on_drop: false }` [INFO] [stdout] 549ef3e754f7c8c7c23f5d6c03c0938f147fb86f8d91db56ea15dfdf35a7df4f