[INFO] fetching crate aiken-lang 1.0.16-alpha... [INFO] checking aiken-lang-1.0.16-alpha against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] extracting crate aiken-lang 1.0.16-alpha into /workspace/builds/worker-5-tc2/source [INFO] validating manifest of crates.io crate aiken-lang 1.0.16-alpha 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 aiken-lang 1.0.16-alpha [INFO] finished tweaking crates.io crate aiken-lang 1.0.16-alpha [INFO] tweaked toml for crates.io crate aiken-lang 1.0.16-alpha written to /workspace/builds/worker-5-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] Blocking waiting for file lock on package cache [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] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 0f1b53d5fc4f514a001f83b40dbddd47985012cca171885b97185bfe191a7924 [INFO] running `Command { std: "docker" "start" "-a" "0f1b53d5fc4f514a001f83b40dbddd47985012cca171885b97185bfe191a7924", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0f1b53d5fc4f514a001f83b40dbddd47985012cca171885b97185bfe191a7924", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0f1b53d5fc4f514a001f83b40dbddd47985012cca171885b97185bfe191a7924", kill_on_drop: false }` [INFO] [stdout] 0f1b53d5fc4f514a001f83b40dbddd47985012cca171885b97185bfe191a7924 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] e1196bb386b4526aaf89889ca9a620ba5169f38d65c414752acbc38dfe4d8f6a [INFO] running `Command { std: "docker" "start" "-a" "e1196bb386b4526aaf89889ca9a620ba5169f38d65c414752acbc38dfe4d8f6a", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.148 [INFO] [stderr] Compiling proc-macro2 v1.0.67 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling serde v1.0.188 [INFO] [stderr] Compiling thiserror v1.0.48 [INFO] [stderr] Compiling minicbor v0.19.1 [INFO] [stderr] Checking half v1.8.2 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling num-traits v0.2.16 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Checking cryptoxide v0.4.4 [INFO] [stderr] Compiling serde_json v1.0.107 [INFO] [stderr] Checking base58 v0.2.0 [INFO] [stderr] Checking bech32 v0.9.1 [INFO] [stderr] Checking ryu v1.0.15 [INFO] [stderr] Compiling anyhow v1.0.75 [INFO] [stderr] Compiling rustversion v1.0.14 [INFO] [stderr] Checking itoa v1.0.9 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Compiling syn v2.0.37 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling peg-runtime v0.8.1 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Compiling peg-macros v0.8.1 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking diff v0.1.13 [INFO] [stderr] Checking typed-arena v2.0.2 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Checking unicode-width v0.1.10 [INFO] [stderr] Checking yansi v0.5.1 [INFO] [stderr] Checking unicode-segmentation v1.10.1 [INFO] [stderr] Checking is_ci v1.1.1 [INFO] [stderr] Checking pretty_assertions v1.4.0 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking supports-color v1.3.1 [INFO] [stderr] Compiling psm v0.1.21 [INFO] [stderr] Compiling secp256k1-sys v0.8.1 [INFO] [stderr] Compiling stacker v0.1.15 [INFO] [stderr] Checking pretty v0.11.3 [INFO] [stderr] Checking linked-hash-map v0.5.6 [INFO] [stderr] Checking strum v0.24.1 [INFO] [stderr] Checking peg v0.8.1 [INFO] [stderr] Checking yaml-rust v0.4.5 [INFO] [stderr] Checking console v0.15.7 [INFO] [stderr] Checking chumsky v0.9.2 [INFO] [stderr] Checking owo-colors v3.5.0 [INFO] [stderr] Checking ordinal v0.3.2 [INFO] [stderr] Checking similar v2.2.1 [INFO] [stderr] Compiling indoc v2.0.4 [INFO] [stderr] Checking vec1 v1.10.1 [INFO] [stderr] Compiling serde_derive v1.0.188 [INFO] [stderr] Compiling thiserror-impl v1.0.48 [INFO] [stderr] Compiling miette-derive v5.10.0 [INFO] [stderr] Compiling minicbor-derive v0.13.0 [INFO] [stderr] Compiling strum_macros v0.24.3 [INFO] [stderr] Checking flat-rs v1.0.16-alpha [INFO] [stderr] Checking miette v5.10.0 [INFO] [stderr] Checking secp256k1 v0.26.0 [INFO] [stderr] Checking pallas-codec v0.18.2 [INFO] [stderr] Checking insta v1.31.0 [INFO] [stderr] Checking pallas-crypto v0.18.2 [INFO] [stderr] Checking pallas-addresses v0.18.2 [INFO] [stderr] Checking pallas-primitives v0.18.2 [INFO] [stderr] Checking pallas-traverse v0.18.2 [INFO] [stderr] Checking uplc v1.0.16-alpha [INFO] [stderr] Checking aiken-lang v1.0.16-alpha (/opt/rustwide/workdir) [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:147:31 [INFO] [stdout] | [INFO] [stdout] 145 | let comments = self.pop_comments(start); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] 146 | [INFO] [stdout] 147 | let def = self.definition(def); [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] 148 | [INFO] [stdout] 149 | imports.push((import, commented(def, comments))) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:157:39 [INFO] [stdout] | [INFO] [stdout] 155 | let comments = self.pop_comments(start); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] 156 | [INFO] [stdout] 157 | let declaration = self.documented_definition(def); [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] 158 | [INFO] [stdout] 159 | declarations.push(commented(declaration, comments)) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:471:25 [INFO] [stdout] | [INFO] [stdout] 463 | let comments = self.pop_comments(arg.location.start); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 471 | .append(self.annotation(a)), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 475 | commented(doc, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:529:32 [INFO] [stdout] | [INFO] [stdout] 528 | let fun_comments = self.pop_comments(fun.location.start); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] 529 | let fun_doc_comments = self.doc_comments(fun.location.start); [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 542 | let first_fn = commented(fun_doc_comments.append(first_fn).group(), fun_comments); [INFO] [stdout] | ------------ first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:530:24 [INFO] [stdout] | [INFO] [stdout] 528 | let fun_comments = self.pop_comments(fun.location.start); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] 529 | let fun_doc_comments = self.doc_comments(fun.location.start); [INFO] [stdout] 530 | let first_fn = self [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 542 | let first_fn = commented(fun_doc_comments.append(first_fn).group(), fun_comments); [INFO] [stdout] | ------------ first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:548:42 [INFO] [stdout] | [INFO] [stdout] 547 | let other_comments = self.pop_comments(other.location.start); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] 548 | let other_doc_comments = self.doc_comments(other.location.start); [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 563 | commented(other_doc_comments.append(other_fn).group(), other_comments) [INFO] [stdout] | -------------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:550:32 [INFO] [stdout] | [INFO] [stdout] 547 | let other_comments = self.pop_comments(other.location.start); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 550 | let other_fn = self [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 563 | commented(other_doc_comments.append(other_fn).group(), other_comments) [INFO] [stdout] | -------------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:768:18 [INFO] [stdout] | [INFO] [stdout] 761 | let comments = self.pop_comments(expr.start_byte_index()); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 768 | } => self.bytearray(bytes, preferred_format), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 872 | commented(document, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:774:18 [INFO] [stdout] | [INFO] [stdout] 761 | let comments = self.pop_comments(expr.start_byte_index()); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 774 | } => self.if_expr(branches, final_else), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 872 | commented(document, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:778:18 [INFO] [stdout] | [INFO] [stdout] 761 | let comments = self.pop_comments(expr.start_byte_index()); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 778 | } => self.logical_op_chain(kind, expressions), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 872 | commented(document, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:783:18 [INFO] [stdout] | [INFO] [stdout] 761 | let comments = self.pop_comments(expr.start_byte_index()); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 783 | } => self.pipeline(expressions, *one_liner), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 872 | commented(document, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:785:54 [INFO] [stdout] | [INFO] [stdout] 761 | let comments = self.pop_comments(expr.start_byte_index()); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 785 | UntypedExpr::UInt { value, base, .. } => self.uint(value, base), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 872 | commented(document, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/format.rs:787:50 [INFO] [stdout] | [INFO] [stdout] 761 | let comments = self.pop_comments(expr.start_byte_index()); [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 787 | UntypedExpr::String { value, .. } => self.string(value), [INFO] [stdout] | ^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 872 | commented(document, comments) [INFO] [stdout] | -------- mutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:789:58 [INFO] [stdout] | [INFO] [stdout] 761 | let comments = self.pop_comments(expr.start_byte_index()); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 789 | UntypedExpr::Sequence { expressions, .. } => self.sequence(expressions), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 872 | commented(document, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:795:52 [INFO] [stdout] | [INFO] [stdout] 761 | let comments = self.pop_comments(expr.start_byte_index()); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 795 | UntypedExpr::UnOp { value, op, .. } => self.un_op(value, op), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 872 | commented(document, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:801:18 [INFO] [stdout] | [INFO] [stdout] 761 | let comments = self.pop_comments(expr.start_byte_index()); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 801 | } => self.fn_capture(body), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 872 | commented(document, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:814:18 [INFO] [stdout] | [INFO] [stdout] 761 | let comments = self.pop_comments(expr.start_byte_index()); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 814 | } => self.expr_fn(args, return_annotation.as_ref(), body), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 872 | commented(document, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:816:57 [INFO] [stdout] | [INFO] [stdout] 761 | let comments = self.pop_comments(expr.start_byte_index()); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 816 | UntypedExpr::List { elements, tail, .. } => self.list(elements, tail.as_deref()), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 872 | commented(document, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:822:18 [INFO] [stdout] | [INFO] [stdout] 761 | let comments = self.pop_comments(expr.start_byte_index()); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 822 | } => self.call(fun, args), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 872 | commented(document, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:826:18 [INFO] [stdout] | [INFO] [stdout] 761 | let comments = self.pop_comments(expr.start_byte_index()); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 826 | } => self.bin_op(name, left, right), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 872 | commented(document, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:834:18 [INFO] [stdout] | [INFO] [stdout] 761 | let comments = self.pop_comments(expr.start_byte_index()); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 834 | } => self.assignment(pattern, value, *kind, annotation), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 872 | commented(document, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:838:18 [INFO] [stdout] | [INFO] [stdout] 761 | let comments = self.pop_comments(expr.start_byte_index()); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 838 | } => self.trace(kind, text, then), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 872 | commented(document, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:842:18 [INFO] [stdout] | [INFO] [stdout] 761 | let comments = self.pop_comments(expr.start_byte_index()); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 842 | } => self.when(subject, clauses), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 872 | commented(document, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:846:18 [INFO] [stdout] | [INFO] [stdout] 761 | let comments = self.pop_comments(expr.start_byte_index()); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 846 | } => self.expr(container).append(".").append(label.as_str()), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 872 | commented(document, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:853:18 [INFO] [stdout] | [INFO] [stdout] 761 | let comments = self.pop_comments(expr.start_byte_index()); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 853 | } => self.record_update(constructor, spread, args), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 872 | commented(document, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0500]: closure requires unique access to `*self` but it is already borrowed [INFO] [stdout] --> src/format.rs:856:44 [INFO] [stdout] | [INFO] [stdout] 761 | let comments = self.pop_comments(expr.start_byte_index()); [INFO] [stdout] | ---- borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 856 | wrap_args(elems.iter().map(|e| (self.wrap_expr(e), false))).group() [INFO] [stdout] | ^^^ ---- second borrow occurs due to use of `*self` in closure [INFO] [stdout] | | [INFO] [stdout] | closure construction occurs here [INFO] [stdout] ... [INFO] [stdout] 872 | commented(document, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:861:17 [INFO] [stdout] | [INFO] [stdout] 761 | let comments = self.pop_comments(expr.start_byte_index()); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 861 | self.expr(tuple) [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 872 | commented(document, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:869:56 [INFO] [stdout] | [INFO] [stdout] 761 | let comments = self.pop_comments(expr.start_byte_index()); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 869 | UntypedExpr::TraceIfFalse { value, .. } => self.trace_if_false(value), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 872 | commented(document, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:1156:22 [INFO] [stdout] | [INFO] [stdout] 1150 | let comments = self.pop_comments(expr.location().start); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1156 | } => self.pipe_capture_right_hand_side(body), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1165 | match printed_comments(comments, true) { [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:1158:22 [INFO] [stdout] | [INFO] [stdout] 1150 | let comments = self.pop_comments(expr.location().start); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1158 | _ => self.wrap_expr(expr), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1165 | match printed_comments(comments, true) { [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:1161:24 [INFO] [stdout] | [INFO] [stdout] 1150 | let comments = self.pop_comments(expr.location().start); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1161 | let expr = self [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1165 | match printed_comments(comments, true) { [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:1270:67 [INFO] [stdout] | [INFO] [stdout] 1267 | let arg_comments = self.pop_comments(location.start); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1270 | Some(l) => l.to_doc().append(": ").append(self.annotation(annotation)), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1276 | arg_comments, [INFO] [stdout] | ------------ first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:1271:33 [INFO] [stdout] | [INFO] [stdout] 1267 | let arg_comments = self.pop_comments(location.start); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1271 | None => self.annotation(annotation), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1276 | arg_comments, [INFO] [stdout] | ------------ first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:1275:25 [INFO] [stdout] | [INFO] [stdout] 1267 | let arg_comments = self.pop_comments(location.start); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1275 | self.doc_comments(location.start).append(arg).group(), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] 1276 | arg_comments, [INFO] [stdout] | ------------ first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:1295:71 [INFO] [stdout] | [INFO] [stdout] 1292 | let arg_comments = self.pop_comments(location.start); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1295 | Some(l) => l.to_doc().append(": ").append(self.annotation(annotation)), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1302 | arg_comments, [INFO] [stdout] | ------------ first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:1296:37 [INFO] [stdout] | [INFO] [stdout] 1292 | let arg_comments = self.pop_comments(location.start); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1296 | None => self.annotation(annotation), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1302 | arg_comments, [INFO] [stdout] | ------------ first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:1301:33 [INFO] [stdout] | [INFO] [stdout] 1292 | let arg_comments = self.pop_comments(location.start); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1301 | self.doc_comments(location.start).append(arg).group(), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] 1302 | arg_comments, [INFO] [stdout] | ------------ first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:1255:28 [INFO] [stdout] | [INFO] [stdout] 1254 | let comments = self.pop_comments(constructor.location.start); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] 1255 | let doc_comments = self.doc_comments(constructor.location.start); [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1311 | commented(doc_comments.append(doc).group(), comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0500]: closure requires unique access to `*self` but it is already borrowed [INFO] [stdout] --> src/format.rs:1261:17 [INFO] [stdout] | [INFO] [stdout] 1254 | let comments = self.pop_comments(constructor.location.start); [INFO] [stdout] | ---- borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1261 | / |RecordConstructorArg { [INFO] [stdout] 1262 | | label, [INFO] [stdout] 1263 | | annotation, [INFO] [stdout] 1264 | | location, [INFO] [stdout] 1265 | | .. [INFO] [stdout] 1266 | | }| { [INFO] [stdout] | |___________________^ closure construction occurs here [INFO] [stdout] 1267 | let arg_comments = self.pop_comments(location.start); [INFO] [stdout] | ---- second borrow occurs due to use of `*self` in closure [INFO] [stdout] ... [INFO] [stdout] 1311 | commented(doc_comments.append(doc).group(), comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0500]: closure requires unique access to `*self` but it is already borrowed [INFO] [stdout] --> src/format.rs:1286:21 [INFO] [stdout] | [INFO] [stdout] 1254 | let comments = self.pop_comments(constructor.location.start); [INFO] [stdout] | ---- borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1286 | / |RecordConstructorArg { [INFO] [stdout] 1287 | | label, [INFO] [stdout] 1288 | | annotation, [INFO] [stdout] 1289 | | location, [INFO] [stdout] 1290 | | .. [INFO] [stdout] 1291 | | }| { [INFO] [stdout] | |_______________________^ closure construction occurs here [INFO] [stdout] 1292 | let arg_comments = self.pop_comments(location.start); [INFO] [stdout] | ---- second borrow occurs due to use of `*self` in closure [INFO] [stdout] ... [INFO] [stdout] 1311 | commented(doc_comments.append(doc).group(), comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:1620:49 [INFO] [stdout] | [INFO] [stdout] 1618 | let comments = self.pop_comments(pattern.location().start); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] 1619 | let doc = match pattern { [INFO] [stdout] 1620 | Pattern::Int { value, base, .. } => self.int(value, base), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1656 | commented(doc, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:1625:17 [INFO] [stdout] | [INFO] [stdout] 1618 | let comments = self.pop_comments(pattern.location().start); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1625 | self.pattern(pattern).append(" as ").append(name.as_str()) [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1656 | commented(doc, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0500]: closure requires unique access to `*self` but it is already borrowed [INFO] [stdout] --> src/format.rs:1631:44 [INFO] [stdout] | [INFO] [stdout] 1618 | let comments = self.pop_comments(pattern.location().start); [INFO] [stdout] | ---- borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1631 | wrap_args(elems.iter().map(|e| (self.pattern(e), false))).group() [INFO] [stdout] | ^^^ ---- second borrow occurs due to use of `*self` in closure [INFO] [stdout] | | [INFO] [stdout] | closure construction occurs here [INFO] [stdout] ... [INFO] [stdout] 1656 | commented(doc, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0500]: closure requires unique access to `*self` but it is already borrowed [INFO] [stdout] --> src/format.rs:1636:46 [INFO] [stdout] | [INFO] [stdout] 1618 | let comments = self.pop_comments(pattern.location().start); [INFO] [stdout] | ---- borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1636 | join(elements.iter().map(|e| self.pattern(e)), break_(",", ", ")); [INFO] [stdout] | ^^^ ---- second borrow occurs due to use of `*self` in closure [INFO] [stdout] | | [INFO] [stdout] | closure construction occurs here [INFO] [stdout] ... [INFO] [stdout] 1656 | commented(doc, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0500]: closure requires unique access to `*self` but it is already borrowed [INFO] [stdout] --> src/format.rs:1637:46 [INFO] [stdout] | [INFO] [stdout] 1618 | let comments = self.pop_comments(pattern.location().start); [INFO] [stdout] | ---- borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1637 | let tail = tail.as_ref().map(|e| { [INFO] [stdout] | ^^^ closure construction occurs here [INFO] [stdout] ... [INFO] [stdout] 1641 | self.pattern(e) [INFO] [stdout] | ---- second borrow occurs due to use of `*self` in closure [INFO] [stdout] ... [INFO] [stdout] 1656 | commented(doc, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:1654:18 [INFO] [stdout] | [INFO] [stdout] 1618 | let comments = self.pop_comments(pattern.location().start); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1654 | } => self.pattern_constructor(name, args, module, *with_spread, *is_record), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] 1655 | }; [INFO] [stdout] 1656 | commented(doc, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:147:31 [INFO] [stdout] | [INFO] [stdout] 145 | let comments = self.pop_comments(start); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] 146 | [INFO] [stdout] 147 | let def = self.definition(def); [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] 148 | [INFO] [stdout] 149 | imports.push((import, commented(def, comments))) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:157:39 [INFO] [stdout] | [INFO] [stdout] 155 | let comments = self.pop_comments(start); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] 156 | [INFO] [stdout] 157 | let declaration = self.documented_definition(def); [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] 158 | [INFO] [stdout] 159 | declarations.push(commented(declaration, comments)) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:471:25 [INFO] [stdout] | [INFO] [stdout] 463 | let comments = self.pop_comments(arg.location.start); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 471 | .append(self.annotation(a)), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 475 | commented(doc, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:529:32 [INFO] [stdout] | [INFO] [stdout] 528 | let fun_comments = self.pop_comments(fun.location.start); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] 529 | let fun_doc_comments = self.doc_comments(fun.location.start); [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 542 | let first_fn = commented(fun_doc_comments.append(first_fn).group(), fun_comments); [INFO] [stdout] | ------------ first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:530:24 [INFO] [stdout] | [INFO] [stdout] 528 | let fun_comments = self.pop_comments(fun.location.start); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] 529 | let fun_doc_comments = self.doc_comments(fun.location.start); [INFO] [stdout] 530 | let first_fn = self [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 542 | let first_fn = commented(fun_doc_comments.append(first_fn).group(), fun_comments); [INFO] [stdout] | ------------ first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:548:42 [INFO] [stdout] | [INFO] [stdout] 547 | let other_comments = self.pop_comments(other.location.start); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] 548 | let other_doc_comments = self.doc_comments(other.location.start); [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 563 | commented(other_doc_comments.append(other_fn).group(), other_comments) [INFO] [stdout] | -------------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:550:32 [INFO] [stdout] | [INFO] [stdout] 547 | let other_comments = self.pop_comments(other.location.start); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 550 | let other_fn = self [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 563 | commented(other_doc_comments.append(other_fn).group(), other_comments) [INFO] [stdout] | -------------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:768:18 [INFO] [stdout] | [INFO] [stdout] 761 | let comments = self.pop_comments(expr.start_byte_index()); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 768 | } => self.bytearray(bytes, preferred_format), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 872 | commented(document, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:774:18 [INFO] [stdout] | [INFO] [stdout] 761 | let comments = self.pop_comments(expr.start_byte_index()); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 774 | } => self.if_expr(branches, final_else), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 872 | commented(document, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:778:18 [INFO] [stdout] | [INFO] [stdout] 761 | let comments = self.pop_comments(expr.start_byte_index()); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 778 | } => self.logical_op_chain(kind, expressions), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 872 | commented(document, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:783:18 [INFO] [stdout] | [INFO] [stdout] 761 | let comments = self.pop_comments(expr.start_byte_index()); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 783 | } => self.pipeline(expressions, *one_liner), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 872 | commented(document, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:785:54 [INFO] [stdout] | [INFO] [stdout] 761 | let comments = self.pop_comments(expr.start_byte_index()); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 785 | UntypedExpr::UInt { value, base, .. } => self.uint(value, base), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 872 | commented(document, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/format.rs:787:50 [INFO] [stdout] | [INFO] [stdout] 761 | let comments = self.pop_comments(expr.start_byte_index()); [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 787 | UntypedExpr::String { value, .. } => self.string(value), [INFO] [stdout] | ^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 872 | commented(document, comments) [INFO] [stdout] | -------- mutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:789:58 [INFO] [stdout] | [INFO] [stdout] 761 | let comments = self.pop_comments(expr.start_byte_index()); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 789 | UntypedExpr::Sequence { expressions, .. } => self.sequence(expressions), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 872 | commented(document, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:795:52 [INFO] [stdout] | [INFO] [stdout] 761 | let comments = self.pop_comments(expr.start_byte_index()); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 795 | UntypedExpr::UnOp { value, op, .. } => self.un_op(value, op), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 872 | commented(document, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:801:18 [INFO] [stdout] | [INFO] [stdout] 761 | let comments = self.pop_comments(expr.start_byte_index()); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 801 | } => self.fn_capture(body), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 872 | commented(document, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:814:18 [INFO] [stdout] | [INFO] [stdout] 761 | let comments = self.pop_comments(expr.start_byte_index()); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 814 | } => self.expr_fn(args, return_annotation.as_ref(), body), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 872 | commented(document, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:816:57 [INFO] [stdout] | [INFO] [stdout] 761 | let comments = self.pop_comments(expr.start_byte_index()); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 816 | UntypedExpr::List { elements, tail, .. } => self.list(elements, tail.as_deref()), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 872 | commented(document, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:822:18 [INFO] [stdout] | [INFO] [stdout] 761 | let comments = self.pop_comments(expr.start_byte_index()); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 822 | } => self.call(fun, args), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 872 | commented(document, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:826:18 [INFO] [stdout] | [INFO] [stdout] 761 | let comments = self.pop_comments(expr.start_byte_index()); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 826 | } => self.bin_op(name, left, right), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 872 | commented(document, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:834:18 [INFO] [stdout] | [INFO] [stdout] 761 | let comments = self.pop_comments(expr.start_byte_index()); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 834 | } => self.assignment(pattern, value, *kind, annotation), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 872 | commented(document, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:838:18 [INFO] [stdout] | [INFO] [stdout] 761 | let comments = self.pop_comments(expr.start_byte_index()); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 838 | } => self.trace(kind, text, then), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 872 | commented(document, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:842:18 [INFO] [stdout] | [INFO] [stdout] 761 | let comments = self.pop_comments(expr.start_byte_index()); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 842 | } => self.when(subject, clauses), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 872 | commented(document, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:846:18 [INFO] [stdout] | [INFO] [stdout] 761 | let comments = self.pop_comments(expr.start_byte_index()); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 846 | } => self.expr(container).append(".").append(label.as_str()), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 872 | commented(document, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:853:18 [INFO] [stdout] | [INFO] [stdout] 761 | let comments = self.pop_comments(expr.start_byte_index()); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 853 | } => self.record_update(constructor, spread, args), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 872 | commented(document, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0500]: closure requires unique access to `*self` but it is already borrowed [INFO] [stdout] --> src/format.rs:856:44 [INFO] [stdout] | [INFO] [stdout] 761 | let comments = self.pop_comments(expr.start_byte_index()); [INFO] [stdout] | ---- borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 856 | wrap_args(elems.iter().map(|e| (self.wrap_expr(e), false))).group() [INFO] [stdout] | ^^^ ---- second borrow occurs due to use of `*self` in closure [INFO] [stdout] | | [INFO] [stdout] | closure construction occurs here [INFO] [stdout] ... [INFO] [stdout] 872 | commented(document, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:861:17 [INFO] [stdout] | [INFO] [stdout] 761 | let comments = self.pop_comments(expr.start_byte_index()); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 861 | self.expr(tuple) [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 872 | commented(document, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:869:56 [INFO] [stdout] | [INFO] [stdout] 761 | let comments = self.pop_comments(expr.start_byte_index()); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 869 | UntypedExpr::TraceIfFalse { value, .. } => self.trace_if_false(value), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 872 | commented(document, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:1156:22 [INFO] [stdout] | [INFO] [stdout] 1150 | let comments = self.pop_comments(expr.location().start); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1156 | } => self.pipe_capture_right_hand_side(body), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1165 | match printed_comments(comments, true) { [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:1158:22 [INFO] [stdout] | [INFO] [stdout] 1150 | let comments = self.pop_comments(expr.location().start); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1158 | _ => self.wrap_expr(expr), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1165 | match printed_comments(comments, true) { [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:1161:24 [INFO] [stdout] | [INFO] [stdout] 1150 | let comments = self.pop_comments(expr.location().start); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1161 | let expr = self [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1165 | match printed_comments(comments, true) { [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:1270:67 [INFO] [stdout] | [INFO] [stdout] 1267 | let arg_comments = self.pop_comments(location.start); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1270 | Some(l) => l.to_doc().append(": ").append(self.annotation(annotation)), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1276 | arg_comments, [INFO] [stdout] | ------------ first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:1271:33 [INFO] [stdout] | [INFO] [stdout] 1267 | let arg_comments = self.pop_comments(location.start); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1271 | None => self.annotation(annotation), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1276 | arg_comments, [INFO] [stdout] | ------------ first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:1275:25 [INFO] [stdout] | [INFO] [stdout] 1267 | let arg_comments = self.pop_comments(location.start); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1275 | self.doc_comments(location.start).append(arg).group(), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] 1276 | arg_comments, [INFO] [stdout] | ------------ first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:1295:71 [INFO] [stdout] | [INFO] [stdout] 1292 | let arg_comments = self.pop_comments(location.start); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1295 | Some(l) => l.to_doc().append(": ").append(self.annotation(annotation)), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1302 | arg_comments, [INFO] [stdout] | ------------ first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:1296:37 [INFO] [stdout] | [INFO] [stdout] 1292 | let arg_comments = self.pop_comments(location.start); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1296 | None => self.annotation(annotation), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1302 | arg_comments, [INFO] [stdout] | ------------ first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:1301:33 [INFO] [stdout] | [INFO] [stdout] 1292 | let arg_comments = self.pop_comments(location.start); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1301 | self.doc_comments(location.start).append(arg).group(), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] 1302 | arg_comments, [INFO] [stdout] | ------------ first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:1255:28 [INFO] [stdout] | [INFO] [stdout] 1254 | let comments = self.pop_comments(constructor.location.start); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] 1255 | let doc_comments = self.doc_comments(constructor.location.start); [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1311 | commented(doc_comments.append(doc).group(), comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0500]: closure requires unique access to `*self` but it is already borrowed [INFO] [stdout] --> src/format.rs:1261:17 [INFO] [stdout] | [INFO] [stdout] 1254 | let comments = self.pop_comments(constructor.location.start); [INFO] [stdout] | ---- borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1261 | / |RecordConstructorArg { [INFO] [stdout] 1262 | | label, [INFO] [stdout] 1263 | | annotation, [INFO] [stdout] 1264 | | location, [INFO] [stdout] 1265 | | .. [INFO] [stdout] 1266 | | }| { [INFO] [stdout] | |___________________^ closure construction occurs here [INFO] [stdout] 1267 | let arg_comments = self.pop_comments(location.start); [INFO] [stdout] | ---- second borrow occurs due to use of `*self` in closure [INFO] [stdout] ... [INFO] [stdout] 1311 | commented(doc_comments.append(doc).group(), comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0500]: closure requires unique access to `*self` but it is already borrowed [INFO] [stdout] --> src/format.rs:1286:21 [INFO] [stdout] | [INFO] [stdout] 1254 | let comments = self.pop_comments(constructor.location.start); [INFO] [stdout] | ---- borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1286 | / |RecordConstructorArg { [INFO] [stdout] 1287 | | label, [INFO] [stdout] 1288 | | annotation, [INFO] [stdout] 1289 | | location, [INFO] [stdout] 1290 | | .. [INFO] [stdout] 1291 | | }| { [INFO] [stdout] | |_______________________^ closure construction occurs here [INFO] [stdout] 1292 | let arg_comments = self.pop_comments(location.start); [INFO] [stdout] | ---- second borrow occurs due to use of `*self` in closure [INFO] [stdout] ... [INFO] [stdout] 1311 | commented(doc_comments.append(doc).group(), comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:1620:49 [INFO] [stdout] | [INFO] [stdout] 1618 | let comments = self.pop_comments(pattern.location().start); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] 1619 | let doc = match pattern { [INFO] [stdout] 1620 | Pattern::Int { value, base, .. } => self.int(value, base), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1656 | commented(doc, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:1625:17 [INFO] [stdout] | [INFO] [stdout] 1618 | let comments = self.pop_comments(pattern.location().start); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1625 | self.pattern(pattern).append(" as ").append(name.as_str()) [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1656 | commented(doc, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0500]: closure requires unique access to `*self` but it is already borrowed [INFO] [stdout] --> src/format.rs:1631:44 [INFO] [stdout] | [INFO] [stdout] 1618 | let comments = self.pop_comments(pattern.location().start); [INFO] [stdout] | ---- borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1631 | wrap_args(elems.iter().map(|e| (self.pattern(e), false))).group() [INFO] [stdout] | ^^^ ---- second borrow occurs due to use of `*self` in closure [INFO] [stdout] | | [INFO] [stdout] | closure construction occurs here [INFO] [stdout] ... [INFO] [stdout] 1656 | commented(doc, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0500]: closure requires unique access to `*self` but it is already borrowed [INFO] [stdout] --> src/format.rs:1636:46 [INFO] [stdout] | [INFO] [stdout] 1618 | let comments = self.pop_comments(pattern.location().start); [INFO] [stdout] | ---- borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1636 | join(elements.iter().map(|e| self.pattern(e)), break_(",", ", ")); [INFO] [stdout] | ^^^ ---- second borrow occurs due to use of `*self` in closure [INFO] [stdout] | | [INFO] [stdout] | closure construction occurs here [INFO] [stdout] ... [INFO] [stdout] 1656 | commented(doc, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0500]: closure requires unique access to `*self` but it is already borrowed [INFO] [stdout] --> src/format.rs:1637:46 [INFO] [stdout] | [INFO] [stdout] 1618 | let comments = self.pop_comments(pattern.location().start); [INFO] [stdout] | ---- borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1637 | let tail = tail.as_ref().map(|e| { [INFO] [stdout] | ^^^ closure construction occurs here [INFO] [stdout] ... [INFO] [stdout] 1641 | self.pattern(e) [INFO] [stdout] | ---- second borrow occurs due to use of `*self` in closure [INFO] [stdout] ... [INFO] [stdout] 1656 | commented(doc, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/format.rs:1654:18 [INFO] [stdout] | [INFO] [stdout] 1618 | let comments = self.pop_comments(pattern.location().start); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 1654 | } => self.pattern_constructor(name, args, module, *with_spread, *is_record), [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] 1655 | }; [INFO] [stdout] 1656 | commented(doc, comments) [INFO] [stdout] | -------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 46 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0499, E0500, E0502. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stderr] error: could not compile `aiken-lang` (lib) due to 47 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 46 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0499, E0500, E0502. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stderr] error: could not compile `aiken-lang` (lib test) due to 47 previous errors [INFO] running `Command { std: "docker" "inspect" "e1196bb386b4526aaf89889ca9a620ba5169f38d65c414752acbc38dfe4d8f6a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e1196bb386b4526aaf89889ca9a620ba5169f38d65c414752acbc38dfe4d8f6a", kill_on_drop: false }` [INFO] [stdout] e1196bb386b4526aaf89889ca9a620ba5169f38d65c414752acbc38dfe4d8f6a