[INFO] fetching crate cranelift-codegen 0.99.2... [INFO] checking cranelift-codegen-0.99.2 against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] extracting crate cranelift-codegen 0.99.2 into /workspace/builds/worker-4-tc2/source [INFO] validating manifest of crates.io crate cranelift-codegen 0.99.2 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 crates.io crate cranelift-codegen 0.99.2 [INFO] finished tweaking crates.io crate cranelift-codegen 0.99.2 [INFO] tweaked toml for crates.io crate cranelift-codegen 0.99.2 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [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] 5c612e482127c3820123ecff045133f622a57a20f39254a65fb7939797cd99f8 [INFO] running `Command { std: "docker" "start" "-a" "5c612e482127c3820123ecff045133f622a57a20f39254a65fb7939797cd99f8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5c612e482127c3820123ecff045133f622a57a20f39254a65fb7939797cd99f8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5c612e482127c3820123ecff045133f622a57a20f39254a65fb7939797cd99f8", kill_on_drop: false }` [INFO] [stdout] 5c612e482127c3820123ecff045133f622a57a20f39254a65fb7939797cd99f8 [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] 8ebd776ad23c9e053b1e0ab7660f1394e11accaeb6c4c1933972549c60d552e8 [INFO] running `Command { std: "docker" "start" "-a" "8ebd776ad23c9e053b1e0ab7660f1394e11accaeb6c4c1933972549c60d552e8", kill_on_drop: false }` [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.15 [INFO] [stderr] Compiling ahash v0.8.3 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Compiling cranelift-isle v0.99.2 [INFO] [stderr] Compiling num-traits v0.2.16 [INFO] [stderr] Compiling cranelift-codegen-shared v0.99.2 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Compiling rustix v0.38.13 [INFO] [stderr] Checking half v1.8.2 [INFO] [stderr] Compiling target-lexicon v0.12.11 [INFO] [stderr] Checking regex-syntax v0.7.5 [INFO] [stderr] Checking ciborium-io v0.2.1 [INFO] [stderr] Checking serde v1.0.188 [INFO] [stderr] Checking plotters-backend v0.3.5 [INFO] [stderr] Compiling cranelift-codegen-meta v0.99.2 [INFO] [stderr] Checking clap_lex v0.5.1 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking clap_builder v4.4.4 [INFO] [stderr] Checking cast v0.3.0 [INFO] [stderr] Checking plotters-svg v0.3.5 [INFO] [stderr] Checking ciborium-ll v0.2.1 [INFO] [stderr] Checking slice-group-by v0.3.1 [INFO] [stderr] Checking fallible-iterator v0.2.0 [INFO] [stderr] Checking cranelift-entity v0.99.2 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Checking smallvec v1.11.0 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking arbitrary v1.3.0 [INFO] [stderr] Checking hashbrown v0.13.2 [INFO] [stderr] Checking cranelift-bforest v0.99.2 [INFO] [stderr] Checking walkdir v2.4.0 [INFO] [stderr] Checking bumpalo v3.14.0 [INFO] [stderr] Checking crossbeam-channel v0.5.8 [INFO] [stderr] Checking gimli v0.27.3 [INFO] [stderr] Checking oorandom v11.1.3 [INFO] [stderr] Checking anes v0.1.6 [INFO] [stderr] Checking similar v2.2.1 [INFO] [stderr] Checking crossbeam-deque v0.8.3 [INFO] [stderr] Checking rayon-core v1.11.0 [INFO] [stderr] Checking regalloc2 v0.9.2 [INFO] [stderr] Checking regex-automata v0.3.8 [INFO] [stderr] Checking plotters v0.3.5 [INFO] [stderr] Checking is-terminal v0.4.9 [INFO] [stderr] Checking cranelift-control v0.99.2 [INFO] [stderr] Checking rayon v1.7.0 [INFO] [stderr] Checking criterion-plot v0.5.0 [INFO] [stderr] Checking clap v4.4.4 [INFO] [stderr] Compiling cranelift-codegen v0.99.2 (/opt/rustwide/workdir) [INFO] [stderr] Checking regex v1.9.5 [INFO] [stderr] Checking serde_json v1.0.107 [INFO] [stderr] Checking ciborium v0.2.1 [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Checking criterion v0.5.1 [INFO] [stderr] warning: Failed to run `rustfmt` on ISLE-generated code: Os { code: 32, kind: BrokenPipe, message: "Broken pipe" } [INFO] [stderr] warning: Failed to run `rustfmt` on ISLE-generated code: Os { code: 32, kind: BrokenPipe, message: "Broken pipe" } [INFO] [stderr] warning: Failed to run `rustfmt` on ISLE-generated code: Os { code: 32, kind: BrokenPipe, message: "Broken pipe" } [INFO] [stderr] warning: Failed to run `rustfmt` on ISLE-generated code: Os { code: 32, kind: BrokenPipe, message: "Broken pipe" } [INFO] [stderr] warning: Failed to run `rustfmt` on ISLE-generated code: Os { code: 32, kind: BrokenPipe, message: "Broken pipe" } [INFO] [stdout] warning: unused import: `alloc::str::FromStr` [INFO] [stdout] --> src/isa/mod.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | use alloc::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/isa/x64/inst/unwind/systemv.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alloc::str::FromStr` [INFO] [stdout] --> src/isa/mod.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | use alloc::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `isle_ctx` as mutable more than once at a time [INFO] [stdout] --> src/egraph.rs:244:65 [INFO] [stdout] | [INFO] [stdout] 238 | crate::opts::generated_code::constructor_simplify(&mut isle_ctx, orig_value); [INFO] [stdout] | ------------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 244 | while let Some(optimized_value) = optimized_values.next(&mut isle_ctx) { [INFO] [stdout] | ^^^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 282 | } [INFO] [stdout] | - first borrow might be used here, when `optimized_values` is dropped and runs the destructor for type `impl opts::generated_code::ContextIter, Output = entities::Value>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `isle_ctx.ctx.subsume_values` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/egraph.rs:254:16 [INFO] [stdout] | [INFO] [stdout] 238 | crate::opts::generated_code::constructor_simplify(&mut isle_ctx, orig_value); [INFO] [stdout] | ------------- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 254 | if isle_ctx.ctx.subsume_values.contains(&optimized_value) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 282 | } [INFO] [stdout] | - mutable borrow might be used here, when `optimized_values` is dropped and runs the destructor for type `impl opts::generated_code::ContextIter, Output = entities::Value>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*isle_ctx.ctx.eclasses` as mutable more than once at a time [INFO] [stdout] --> src/egraph.rs:258:17 [INFO] [stdout] | [INFO] [stdout] 238 | crate::opts::generated_code::constructor_simplify(&mut isle_ctx, orig_value); [INFO] [stdout] | ------------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 258 | isle_ctx.ctx.eclasses.union(optimized_value, union_value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 282 | } [INFO] [stdout] | - first borrow might be used here, when `optimized_values` is dropped and runs the destructor for type `impl opts::generated_code::ContextIter, Output = entities::Value>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*isle_ctx.ctx.func` as mutable more than once at a time [INFO] [stdout] --> src/egraph.rs:264:27 [INFO] [stdout] | [INFO] [stdout] 238 | crate::opts::generated_code::constructor_simplify(&mut isle_ctx, orig_value); [INFO] [stdout] | ------------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 244 | while let Some(optimized_value) = optimized_values.next(&mut isle_ctx) { [INFO] [stdout] | ---------------- first borrow later used here [INFO] [stdout] ... [INFO] [stdout] 264 | union_value = isle_ctx [INFO] [stdout] | ___________________________^ [INFO] [stdout] 265 | | .ctx [INFO] [stdout] 266 | | .func [INFO] [stdout] | |_____________________^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0503]: cannot use `isle_ctx.ctx.stats.union` because it was mutably borrowed [INFO] [stdout] --> src/egraph.rs:269:13 [INFO] [stdout] | [INFO] [stdout] 238 | crate::opts::generated_code::constructor_simplify(&mut isle_ctx, orig_value); [INFO] [stdout] | ------------- `isle_ctx` is borrowed here [INFO] [stdout] ... [INFO] [stdout] 244 | while let Some(optimized_value) = optimized_values.next(&mut isle_ctx) { [INFO] [stdout] | ---------------- borrow later used here [INFO] [stdout] ... [INFO] [stdout] 269 | isle_ctx.ctx.stats.union += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of borrowed `isle_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0506]: cannot assign to `isle_ctx.ctx.stats.union` because it is borrowed [INFO] [stdout] --> src/egraph.rs:269:13 [INFO] [stdout] | [INFO] [stdout] 238 | crate::opts::generated_code::constructor_simplify(&mut isle_ctx, orig_value); [INFO] [stdout] | ------------- `isle_ctx.ctx.stats.union` is borrowed here [INFO] [stdout] ... [INFO] [stdout] 244 | while let Some(optimized_value) = optimized_values.next(&mut isle_ctx) { [INFO] [stdout] | ---------------- borrow later used here [INFO] [stdout] ... [INFO] [stdout] 269 | isle_ctx.ctx.stats.union += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `isle_ctx.ctx.stats.union` is assigned to here but it was already borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0503]: cannot use `isle_ctx.ctx.rewrite_depth` because it was mutably borrowed [INFO] [stdout] --> src/egraph.rs:279:9 [INFO] [stdout] | [INFO] [stdout] 238 | crate::opts::generated_code::constructor_simplify(&mut isle_ctx, orig_value); [INFO] [stdout] | ------------- `isle_ctx` is borrowed here [INFO] [stdout] ... [INFO] [stdout] 279 | isle_ctx.ctx.rewrite_depth -= 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of borrowed `isle_ctx` [INFO] [stdout] ... [INFO] [stdout] 282 | } [INFO] [stdout] | - borrow might be used here, when `optimized_values` is dropped and runs the destructor for type `impl opts::generated_code::ContextIter, Output = entities::Value>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0506]: cannot assign to `isle_ctx.ctx.rewrite_depth` because it is borrowed [INFO] [stdout] --> src/egraph.rs:279:9 [INFO] [stdout] | [INFO] [stdout] 238 | crate::opts::generated_code::constructor_simplify(&mut isle_ctx, orig_value); [INFO] [stdout] | ------------- `isle_ctx.ctx.rewrite_depth` is borrowed here [INFO] [stdout] ... [INFO] [stdout] 279 | isle_ctx.ctx.rewrite_depth -= 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `isle_ctx.ctx.rewrite_depth` is assigned to here but it was already borrowed [INFO] [stdout] ... [INFO] [stdout] 282 | } [INFO] [stdout] | - borrow might be used here, when `optimized_values` is dropped and runs the destructor for type `impl opts::generated_code::ContextIter, Output = entities::Value>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0499, E0502, E0503, E0506. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stderr] The following warnings were emitted during compilation: [INFO] [stderr] [INFO] [stderr] warning: Failed to run `rustfmt` on ISLE-generated code: Os { code: 32, kind: BrokenPipe, message: "Broken pipe" } [INFO] [stderr] warning: Failed to run `rustfmt` on ISLE-generated code: Os { code: 32, kind: BrokenPipe, message: "Broken pipe" } [INFO] [stderr] warning: Failed to run `rustfmt` on ISLE-generated code: Os { code: 32, kind: BrokenPipe, message: "Broken pipe" } [INFO] [stderr] warning: Failed to run `rustfmt` on ISLE-generated code: Os { code: 32, kind: BrokenPipe, message: "Broken pipe" } [INFO] [stderr] warning: Failed to run `rustfmt` on ISLE-generated code: Os { code: 32, kind: BrokenPipe, message: "Broken pipe" } [INFO] [stderr] [INFO] [stderr] error: could not compile `cranelift-codegen` (lib) due to 9 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0499]: cannot borrow `isle_ctx` as mutable more than once at a time [INFO] [stdout] --> src/egraph.rs:244:65 [INFO] [stdout] | [INFO] [stdout] 238 | crate::opts::generated_code::constructor_simplify(&mut isle_ctx, orig_value); [INFO] [stdout] | ------------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 244 | while let Some(optimized_value) = optimized_values.next(&mut isle_ctx) { [INFO] [stdout] | ^^^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 282 | } [INFO] [stdout] | - first borrow might be used here, when `optimized_values` is dropped and runs the destructor for type `impl opts::generated_code::ContextIter, Output = entities::Value>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `isle_ctx.ctx.subsume_values` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/egraph.rs:254:16 [INFO] [stdout] | [INFO] [stdout] 238 | crate::opts::generated_code::constructor_simplify(&mut isle_ctx, orig_value); [INFO] [stdout] | ------------- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 254 | if isle_ctx.ctx.subsume_values.contains(&optimized_value) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 282 | } [INFO] [stdout] | - mutable borrow might be used here, when `optimized_values` is dropped and runs the destructor for type `impl opts::generated_code::ContextIter, Output = entities::Value>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*isle_ctx.ctx.eclasses` as mutable more than once at a time [INFO] [stdout] --> src/egraph.rs:258:17 [INFO] [stdout] | [INFO] [stdout] 238 | crate::opts::generated_code::constructor_simplify(&mut isle_ctx, orig_value); [INFO] [stdout] | ------------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 258 | isle_ctx.ctx.eclasses.union(optimized_value, union_value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 282 | } [INFO] [stdout] | - first borrow might be used here, when `optimized_values` is dropped and runs the destructor for type `impl opts::generated_code::ContextIter, Output = entities::Value>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*isle_ctx.ctx.func` as mutable more than once at a time [INFO] [stdout] --> src/egraph.rs:264:27 [INFO] [stdout] | [INFO] [stdout] 238 | crate::opts::generated_code::constructor_simplify(&mut isle_ctx, orig_value); [INFO] [stdout] | ------------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 244 | while let Some(optimized_value) = optimized_values.next(&mut isle_ctx) { [INFO] [stdout] | ---------------- first borrow later used here [INFO] [stdout] ... [INFO] [stdout] 264 | union_value = isle_ctx [INFO] [stdout] | ___________________________^ [INFO] [stdout] 265 | | .ctx [INFO] [stdout] 266 | | .func [INFO] [stdout] | |_____________________^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0503]: cannot use `isle_ctx.ctx.stats.union` because it was mutably borrowed [INFO] [stdout] --> src/egraph.rs:269:13 [INFO] [stdout] | [INFO] [stdout] 238 | crate::opts::generated_code::constructor_simplify(&mut isle_ctx, orig_value); [INFO] [stdout] | ------------- `isle_ctx` is borrowed here [INFO] [stdout] ... [INFO] [stdout] 244 | while let Some(optimized_value) = optimized_values.next(&mut isle_ctx) { [INFO] [stdout] | ---------------- borrow later used here [INFO] [stdout] ... [INFO] [stdout] 269 | isle_ctx.ctx.stats.union += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of borrowed `isle_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0506]: cannot assign to `isle_ctx.ctx.stats.union` because it is borrowed [INFO] [stdout] --> src/egraph.rs:269:13 [INFO] [stdout] | [INFO] [stdout] 238 | crate::opts::generated_code::constructor_simplify(&mut isle_ctx, orig_value); [INFO] [stdout] | ------------- `isle_ctx.ctx.stats.union` is borrowed here [INFO] [stdout] ... [INFO] [stdout] 244 | while let Some(optimized_value) = optimized_values.next(&mut isle_ctx) { [INFO] [stdout] | ---------------- borrow later used here [INFO] [stdout] ... [INFO] [stdout] 269 | isle_ctx.ctx.stats.union += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `isle_ctx.ctx.stats.union` is assigned to here but it was already borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0503]: cannot use `isle_ctx.ctx.rewrite_depth` because it was mutably borrowed [INFO] [stdout] --> src/egraph.rs:279:9 [INFO] [stdout] | [INFO] [stdout] 238 | crate::opts::generated_code::constructor_simplify(&mut isle_ctx, orig_value); [INFO] [stdout] | ------------- `isle_ctx` is borrowed here [INFO] [stdout] ... [INFO] [stdout] 279 | isle_ctx.ctx.rewrite_depth -= 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of borrowed `isle_ctx` [INFO] [stdout] ... [INFO] [stdout] 282 | } [INFO] [stdout] | - borrow might be used here, when `optimized_values` is dropped and runs the destructor for type `impl opts::generated_code::ContextIter, Output = entities::Value>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0506]: cannot assign to `isle_ctx.ctx.rewrite_depth` because it is borrowed [INFO] [stdout] --> src/egraph.rs:279:9 [INFO] [stdout] | [INFO] [stdout] 238 | crate::opts::generated_code::constructor_simplify(&mut isle_ctx, orig_value); [INFO] [stdout] | ------------- `isle_ctx.ctx.rewrite_depth` is borrowed here [INFO] [stdout] ... [INFO] [stdout] 279 | isle_ctx.ctx.rewrite_depth -= 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `isle_ctx.ctx.rewrite_depth` is assigned to here but it was already borrowed [INFO] [stdout] ... [INFO] [stdout] 282 | } [INFO] [stdout] | - borrow might be used here, when `optimized_values` is dropped and runs the destructor for type `impl opts::generated_code::ContextIter, Output = entities::Value>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0499, E0502, E0503, E0506. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stderr] The following warnings were emitted during compilation: [INFO] [stderr] [INFO] [stderr] warning: Failed to run `rustfmt` on ISLE-generated code: Os { code: 32, kind: BrokenPipe, message: "Broken pipe" } [INFO] [stderr] warning: Failed to run `rustfmt` on ISLE-generated code: Os { code: 32, kind: BrokenPipe, message: "Broken pipe" } [INFO] [stderr] warning: Failed to run `rustfmt` on ISLE-generated code: Os { code: 32, kind: BrokenPipe, message: "Broken pipe" } [INFO] [stderr] warning: Failed to run `rustfmt` on ISLE-generated code: Os { code: 32, kind: BrokenPipe, message: "Broken pipe" } [INFO] [stderr] warning: Failed to run `rustfmt` on ISLE-generated code: Os { code: 32, kind: BrokenPipe, message: "Broken pipe" } [INFO] [stderr] [INFO] [stderr] error: could not compile `cranelift-codegen` (lib test) due to 9 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "8ebd776ad23c9e053b1e0ab7660f1394e11accaeb6c4c1933972549c60d552e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8ebd776ad23c9e053b1e0ab7660f1394e11accaeb6c4c1933972549c60d552e8", kill_on_drop: false }` [INFO] [stdout] 8ebd776ad23c9e053b1e0ab7660f1394e11accaeb6c4c1933972549c60d552e8