[INFO] fetching crate ielr 0.1.1... [INFO] checking ielr-0.1.1 against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] extracting crate ielr 0.1.1 into /workspace/builds/worker-4-tc2/source [INFO] validating manifest of crates.io crate ielr 0.1.1 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] removed /workspace/builds/worker-4-tc2/source/.cargo/config.toml [INFO] removed /workspace/builds/worker-4-tc2/source/rust-toolchain.toml [INFO] started tweaking crates.io crate ielr 0.1.1 [INFO] finished tweaking crates.io crate ielr 0.1.1 [INFO] tweaked toml for crates.io crate ielr 0.1.1 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate crates.io crate ielr 0.1.1 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-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] c7b0b9ffcf471a898bab55f8b2402649b63514024186b0752a7fc7edde498309 [INFO] running `Command { std: "docker" "start" "-a" "c7b0b9ffcf471a898bab55f8b2402649b63514024186b0752a7fc7edde498309", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c7b0b9ffcf471a898bab55f8b2402649b63514024186b0752a7fc7edde498309", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c7b0b9ffcf471a898bab55f8b2402649b63514024186b0752a7fc7edde498309", kill_on_drop: false }` [INFO] [stdout] c7b0b9ffcf471a898bab55f8b2402649b63514024186b0752a7fc7edde498309 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 2851bb5eac79ac396bfa6e94645f32d50b03bc6e85aaa6fff6111b8851e38219 [INFO] running `Command { std: "docker" "start" "-a" "2851bb5eac79ac396bfa6e94645f32d50b03bc6e85aaa6fff6111b8851e38219", kill_on_drop: false }` [INFO] [stderr] Checking fnv v1.0.5 [INFO] [stderr] Checking ielr v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0502]: cannot borrow `this.states` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/lr.rs:104:34 [INFO] [stdout] | [INFO] [stdout] 97 | let state = match this.states.get_mut(index) { [INFO] [stdout] | ----------- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 101 | 'transition: for (transition_symbol, new_items) in state.successors(grammar_data) { [INFO] [stdout] | ------------------------------ mutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 104 | let state = &this.states[potential_state]; [INFO] [stdout] | ^^^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `this.states` as mutable more than once at a time [INFO] [stdout] --> src/lr.rs:106:25 [INFO] [stdout] | [INFO] [stdout] 97 | let state = match this.states.get_mut(index) { [INFO] [stdout] | ----------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 101 | 'transition: for (transition_symbol, new_items) in state.successors(grammar_data) { [INFO] [stdout] | ------------------------------ first borrow later used here [INFO] [stdout] ... [INFO] [stdout] 106 | this.states[index] [INFO] [stdout] | ^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `this.states` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/lr.rs:112:20 [INFO] [stdout] | [INFO] [stdout] 97 | let state = match this.states.get_mut(index) { [INFO] [stdout] | ----------- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 101 | 'transition: for (transition_symbol, new_items) in state.successors(grammar_data) { [INFO] [stdout] | ------------------------------ a temporary with access to the mutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 112 | if this.states.len() > StateIdxRaw::MAX as usize { [INFO] [stdout] | ^^^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 123 | } [INFO] [stdout] | - ... and the mutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator)>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `this.states` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/lr.rs:115:53 [INFO] [stdout] | [INFO] [stdout] 97 | let state = match this.states.get_mut(index) { [INFO] [stdout] | ----------- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 101 | 'transition: for (transition_symbol, new_items) in state.successors(grammar_data) { [INFO] [stdout] | ------------------------------ mutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 115 | let new_state_index = StateIdx::new(this.states.len() as StateIdxRaw); [INFO] [stdout] | ^^^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `this.states` as mutable more than once at a time [INFO] [stdout] --> src/lr.rs:118:17 [INFO] [stdout] | [INFO] [stdout] 97 | let state = match this.states.get_mut(index) { [INFO] [stdout] | ----------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 101 | 'transition: for (transition_symbol, new_items) in state.successors(grammar_data) { [INFO] [stdout] | ------------------------------ first borrow later used here [INFO] [stdout] ... [INFO] [stdout] 118 | this.states.push(new_state); [INFO] [stdout] | ^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `this.states` as mutable more than once at a time [INFO] [stdout] --> src/lr.rs:119:17 [INFO] [stdout] | [INFO] [stdout] 97 | let state = match this.states.get_mut(index) { [INFO] [stdout] | ----------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 101 | 'transition: for (transition_symbol, new_items) in state.successors(grammar_data) { [INFO] [stdout] | ------------------------------ first borrow later used here [INFO] [stdout] ... [INFO] [stdout] 119 | this.states[index] [INFO] [stdout] | ^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0499, E0502. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ielr` (lib) due to 7 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0502]: cannot borrow `this.states` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/lr.rs:104:34 [INFO] [stdout] | [INFO] [stdout] 97 | let state = match this.states.get_mut(index) { [INFO] [stdout] | ----------- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 101 | 'transition: for (transition_symbol, new_items) in state.successors(grammar_data) { [INFO] [stdout] | ------------------------------ mutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 104 | let state = &this.states[potential_state]; [INFO] [stdout] | ^^^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `this.states` as mutable more than once at a time [INFO] [stdout] --> src/lr.rs:106:25 [INFO] [stdout] | [INFO] [stdout] 97 | let state = match this.states.get_mut(index) { [INFO] [stdout] | ----------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 101 | 'transition: for (transition_symbol, new_items) in state.successors(grammar_data) { [INFO] [stdout] | ------------------------------ first borrow later used here [INFO] [stdout] ... [INFO] [stdout] 106 | this.states[index] [INFO] [stdout] | ^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `this.states` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/lr.rs:112:20 [INFO] [stdout] | [INFO] [stdout] 97 | let state = match this.states.get_mut(index) { [INFO] [stdout] | ----------- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 101 | 'transition: for (transition_symbol, new_items) in state.successors(grammar_data) { [INFO] [stdout] | ------------------------------ a temporary with access to the mutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 112 | if this.states.len() > StateIdxRaw::MAX as usize { [INFO] [stdout] | ^^^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 123 | } [INFO] [stdout] | - ... and the mutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator)>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `this.states` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/lr.rs:115:53 [INFO] [stdout] | [INFO] [stdout] 97 | let state = match this.states.get_mut(index) { [INFO] [stdout] | ----------- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 101 | 'transition: for (transition_symbol, new_items) in state.successors(grammar_data) { [INFO] [stdout] | ------------------------------ mutable borrow later used here [INFO] [stdout] ... [INFO] [stdout] 115 | let new_state_index = StateIdx::new(this.states.len() as StateIdxRaw); [INFO] [stdout] | ^^^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `this.states` as mutable more than once at a time [INFO] [stdout] --> src/lr.rs:118:17 [INFO] [stdout] | [INFO] [stdout] 97 | let state = match this.states.get_mut(index) { [INFO] [stdout] | ----------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 101 | 'transition: for (transition_symbol, new_items) in state.successors(grammar_data) { [INFO] [stdout] | ------------------------------ first borrow later used here [INFO] [stdout] ... [INFO] [stdout] 118 | this.states.push(new_state); [INFO] [stdout] | ^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `this.states` as mutable more than once at a time [INFO] [stdout] --> src/lr.rs:119:17 [INFO] [stdout] | [INFO] [stdout] 97 | let state = match this.states.get_mut(index) { [INFO] [stdout] | ----------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 101 | 'transition: for (transition_symbol, new_items) in state.successors(grammar_data) { [INFO] [stdout] | ------------------------------ first borrow later used here [INFO] [stdout] ... [INFO] [stdout] 119 | this.states[index] [INFO] [stdout] | ^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0499, E0502. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ielr` (lib test) due to 7 previous errors [INFO] running `Command { std: "docker" "inspect" "2851bb5eac79ac396bfa6e94645f32d50b03bc6e85aaa6fff6111b8851e38219", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2851bb5eac79ac396bfa6e94645f32d50b03bc6e85aaa6fff6111b8851e38219", kill_on_drop: false }` [INFO] [stdout] 2851bb5eac79ac396bfa6e94645f32d50b03bc6e85aaa6fff6111b8851e38219