[INFO] cloning repository https://github.com/nilsmartel/act [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nilsmartel/act" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnilsmartel%2Fact", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnilsmartel%2Fact'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3f7673f462161216f8c5ce43140e5359e67f8444 [INFO] checking nilsmartel/act against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnilsmartel%2Fact" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/nilsmartel/act on toolchain 23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/nilsmartel/act [INFO] finished tweaking git repo https://github.com/nilsmartel/act [INFO] tweaked toml for git repo https://github.com/nilsmartel/act written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/nilsmartel/act 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" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dde0f84151f34f98b5246555146ed1ed1799ed7224d3a6dd598d6e64bd5c843e [INFO] running `Command { std: "docker" "start" "-a" "dde0f84151f34f98b5246555146ed1ed1799ed7224d3a6dd598d6e64bd5c843e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dde0f84151f34f98b5246555146ed1ed1799ed7224d3a6dd598d6e64bd5c843e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dde0f84151f34f98b5246555146ed1ed1799ed7224d3a6dd598d6e64bd5c843e", kill_on_drop: false }` [INFO] [stdout] dde0f84151f34f98b5246555146ed1ed1799ed7224d3a6dd598d6e64bd5c843e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 13e9c6f56a748237f8ca02540aa316ecd431e24618d1e310a5315b3c4b129f43 [INFO] running `Command { std: "docker" "start" "-a" "13e9c6f56a748237f8ca02540aa316ecd431e24618d1e310a5315b3c4b129f43", kill_on_drop: false }` [INFO] [stderr] Checking act2 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `state`, `children`, and `cursor` are never read [INFO] [stdout] --> src/hook.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 59 | struct StateTree { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 60 | state: State, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | children: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | cursor: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_state` is never used [INFO] [stdout] --> src/hook.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 70 | impl StateTree { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 71 | fn get_state(&self, cursor: &[usize]) -> &State { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `registers` is never read [INFO] [stdout] --> src/hook.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 82 | struct State { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 83 | /// each state holds multible state registers that can be retrieved one after another [INFO] [stdout] 84 | registers: RwLock>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `use_state` is never used [INFO] [stdout] --> src/hook.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 87 | impl State { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 88 | fn use_state(&self, value: T, index: usize) -> T [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cursor` and `counter` are never read [INFO] [stdout] --> src/hook.rs:125:5 [INFO] [stdout] | [INFO] [stdout] 121 | struct Hook { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 125 | cursor: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 126 | /// points to the next state register (of state referenced by cursor) to be retrieved [INFO] [stdout] 127 | counter: usize, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `use_state` is never used [INFO] [stdout] --> src/hook.rs:131:8 [INFO] [stdout] | [INFO] [stdout] 130 | impl Hook { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 131 | fn use_state(&mut self, value: T) -> (T, impl Fn(T)) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `hook` as mutable more than once at a time [INFO] [stdout] --> src/hook.rs:32:26 [INFO] [stdout] | [INFO] [stdout] 31 | let (_, set_a) = hook.use_state("what"); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] 32 | let (_, set_b) = hook.use_state(123); [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 35 | set_a("möp"); [INFO] [stdout] | ----- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `hook` as mutable more than once at a time [INFO] [stdout] --> src/hook.rs:33:26 [INFO] [stdout] | [INFO] [stdout] 31 | let (_, set_a) = hook.use_state("what"); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] 32 | let (_, set_b) = hook.use_state(123); [INFO] [stdout] 33 | let (_, set_c) = hook.use_state(3.145); [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] 34 | let (_, set_d) = hook.use_state(true); [INFO] [stdout] 35 | set_a("möp"); [INFO] [stdout] | ----- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `hook` as mutable more than once at a time [INFO] [stdout] --> src/hook.rs:34:26 [INFO] [stdout] | [INFO] [stdout] 31 | let (_, set_a) = hook.use_state("what"); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 34 | let (_, set_d) = hook.use_state(true); [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] 35 | set_a("möp"); [INFO] [stdout] | ----- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stderr] error: could not compile `act2` (lib test) due to 4 previous errors [INFO] running `Command { std: "docker" "inspect" "13e9c6f56a748237f8ca02540aa316ecd431e24618d1e310a5315b3c4b129f43", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "13e9c6f56a748237f8ca02540aa316ecd431e24618d1e310a5315b3c4b129f43", kill_on_drop: false }` [INFO] [stdout] 13e9c6f56a748237f8ca02540aa316ecd431e24618d1e310a5315b3c4b129f43