[INFO] cloning repository https://github.com/AkselMads/jsa [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AkselMads/jsa" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAkselMads%2Fjsa", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAkselMads%2Fjsa'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 57d78ca9441fcd88dbe5ce2be220e6fb90b86cc1 [INFO] checking AkselMads/jsa against try#f47dd4da3ae8c32c9e65d307bfe640b143e674df for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAkselMads%2Fjsa" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/AkselMads/jsa on toolchain f47dd4da3ae8c32c9e65d307bfe640b143e674df [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/AkselMads/jsa [INFO] finished tweaking git repo https://github.com/AkselMads/jsa [INFO] tweaked toml for git repo https://github.com/AkselMads/jsa written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/AkselMads/jsa already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded pmutil v0.5.3 [INFO] [stderr] Downloaded string_cache_codegen v0.5.1 [INFO] [stderr] Downloaded string_enum v0.3.0 [INFO] [stderr] Downloaded enum_kind v0.2.0 [INFO] [stderr] Downloaded sourcemap v5.0.0 [INFO] [stderr] Downloaded swc_atoms v0.2.2 [INFO] [stderr] Downloaded from_variant v0.1.2 [INFO] [stderr] Downloaded swc_macros_common v0.3.1 [INFO] [stderr] Downloaded swc_ecma_parser_macros v0.4.1 [INFO] [stderr] Downloaded swc_ecma_ast v0.18.1 [INFO] [stderr] Downloaded dashmap v3.5.1 [INFO] [stderr] Downloaded ast_node v0.6.0 [INFO] [stderr] Downloaded swc_common v0.5.9 [INFO] [stderr] Downloaded swc_ecma_parser v0.21.9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] a0e0f4a596266aa41af627fd7a07caeb57d9898f8a5a29c2813723f99112e88e [INFO] running `Command { std: "docker" "start" "-a" "a0e0f4a596266aa41af627fd7a07caeb57d9898f8a5a29c2813723f99112e88e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a0e0f4a596266aa41af627fd7a07caeb57d9898f8a5a29c2813723f99112e88e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a0e0f4a596266aa41af627fd7a07caeb57d9898f8a5a29c2813723f99112e88e", kill_on_drop: false }` [INFO] [stdout] a0e0f4a596266aa41af627fd7a07caeb57d9898f8a5a29c2813723f99112e88e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b5b7fabd413a7cecc4328e687353eb6898962af9ed04a56d3f3ae99280a1d12e [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "b5b7fabd413a7cecc4328e687353eb6898962af9ed04a56d3f3ae99280a1d12e", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.68 [INFO] [stderr] Compiling proc-macro2 v1.0.10 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.17 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Checking rand_core v0.4.2 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling serde v1.0.105 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling proc-macro-hack v0.5.15 [INFO] [stderr] Compiling ppv-lite86 v0.2.6 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling siphasher v0.3.2 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling fnv v1.0.6 [INFO] [stderr] Compiling strsim v0.9.3 [INFO] [stderr] Checking smallvec v1.2.0 [INFO] [stderr] Compiling ryu v1.0.3 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Checking stable_deref_trait v1.1.1 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Checking percent-encoding v1.0.1 [INFO] [stderr] Checking new_debug_unreachable v1.0.4 [INFO] [stderr] Checking regex-syntax v0.6.17 [INFO] [stderr] Checking scopeguard v0.3.3 [INFO] [stderr] Checking precomputed-hash v0.1.1 [INFO] [stderr] Checking itoa v0.4.5 [INFO] [stderr] Checking if_chain v0.1.3 [INFO] [stderr] Checking either v1.5.3 [INFO] [stderr] Checking unicode-width v0.1.7 [INFO] [stderr] Checking scoped-tls v1.0.0 [INFO] [stderr] Checking termcolor v1.1.0 [INFO] [stderr] Checking once_cell v1.3.1 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking rand_jitter v0.1.4 [INFO] [stderr] Compiling phf_shared v0.8.0 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Checking unicode-normalization v0.1.12 [INFO] [stderr] Checking unicode-bidi v0.3.4 [INFO] [stderr] Checking owning_ref v0.4.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling hashbrown v0.6.3 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Checking lock_api v0.1.5 [INFO] [stderr] Checking smallvec v0.6.13 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Checking aho-corasick v0.7.10 [INFO] [stderr] Checking base64 v0.10.1 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Compiling parking_lot_core v0.4.0 [INFO] [stderr] Compiling quote v1.0.3 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Checking idna v0.1.5 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking num_cpus v1.12.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling const-random-macro v0.1.8 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand_pcg v0.2.1 [INFO] [stderr] Checking url v1.7.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Checking const-random v0.1.8 [INFO] [stderr] Checking ahash v0.2.18 [INFO] [stderr] Checking ahash v0.3.2 [INFO] [stderr] Checking dashmap v3.5.1 [INFO] [stderr] Checking regex v1.3.6 [INFO] [stderr] Checking parking_lot v0.7.1 [INFO] [stderr] Compiling phf_generator v0.8.0 [INFO] [stderr] Compiling string_cache_codegen v0.5.1 [INFO] [stderr] Compiling swc_atoms v0.2.2 [INFO] [stderr] Compiling pmutil v0.5.3 [INFO] [stderr] Compiling darling_core v0.10.2 [INFO] [stderr] Compiling swc_macros_common v0.3.1 [INFO] [stderr] Compiling serde_derive v1.0.105 [INFO] [stderr] Compiling from_variant v0.1.2 [INFO] [stderr] Compiling string_enum v0.3.0 [INFO] [stderr] Compiling enum_kind v0.2.0 [INFO] [stderr] Compiling swc_ecma_parser_macros v0.4.1 [INFO] [stderr] Compiling darling_macro v0.10.2 [INFO] [stderr] Compiling darling v0.10.2 [INFO] [stderr] Compiling ast_node v0.6.0 [INFO] [stderr] Checking serde_json v1.0.50 [INFO] [stderr] Checking string_cache v0.8.0 [INFO] [stderr] Checking sourcemap v5.0.0 [INFO] [stderr] Checking swc_common v0.5.9 [INFO] [stderr] Checking swc_ecma_ast v0.18.1 [INFO] [stderr] Checking swc_ecma_parser v0.21.9 [INFO] [stderr] Checking jsa v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:1:2 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:1:2 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0004]: non-exhaustive patterns: `&KeyValue(_)`, `&Assign(_)`, `&Getter(_)` and 2 more not covered [INFO] [stdout] --> src/main.rs:156:27 [INFO] [stdout] | [INFO] [stdout] 156 | match prop { [INFO] [stdout] | ^^^^ patterns `&KeyValue(_)`, `&Assign(_)`, `&Getter(_)` and 2 more not covered [INFO] [stdout] | [INFO] [stdout] = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms [INFO] [stdout] = note: the matched value is of type `&swc_ecma_ast::Prop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0004]: non-exhaustive patterns: `&Fn(_)`, `&Unary(_)`, `&Update(_)` and 29 more not covered [INFO] [stdout] --> src/main.rs:141:11 [INFO] [stdout] | [INFO] [stdout] 141 | match expr { [INFO] [stdout] | ^^^^ patterns `&Fn(_)`, `&Unary(_)`, `&Update(_)` and 29 more not covered [INFO] [stdout] | [INFO] [stdout] = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms [INFO] [stdout] = note: the matched value is of type `&swc_ecma_ast::Expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/main.rs:224:21 [INFO] [stdout] | [INFO] [stdout] 224 | let expr: &Box = &expr_stmt.expr; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0004]: non-exhaustive patterns: `&KeyValue(_)`, `&Assign(_)`, `&Getter(_)` and 2 more not covered [INFO] [stdout] --> src/main.rs:156:27 [INFO] [stdout] | [INFO] [stdout] 156 | match prop { [INFO] [stdout] | ^^^^ patterns `&KeyValue(_)`, `&Assign(_)`, `&Getter(_)` and 2 more not covered [INFO] [stdout] | [INFO] [stdout] = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms [INFO] [stdout] = note: the matched value is of type `&swc_ecma_ast::Prop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0004]: non-exhaustive patterns: `&Fn(_)`, `&Unary(_)`, `&Update(_)` and 29 more not covered [INFO] [stdout] --> src/main.rs:141:11 [INFO] [stdout] | [INFO] [stdout] 141 | match expr { [INFO] [stdout] | ^^^^ patterns `&Fn(_)`, `&Unary(_)`, `&Update(_)` and 29 more not covered [INFO] [stdout] | [INFO] [stdout] = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms [INFO] [stdout] = note: the matched value is of type `&swc_ecma_ast::Expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/main.rs:224:21 [INFO] [stdout] | [INFO] [stdout] 224 | let expr: &Box = &expr_stmt.expr; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/main.rs:74:26 [INFO] [stdout] | [INFO] [stdout] 71 | let current_scope: &mut Scope = self.scopes.get_mut(found_scope_idx).unwrap(); [INFO] [stdout] | ----------- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 74 | definition = self.find_var_definition(parent_idx, name); [INFO] [stdout] | ^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 91 | current_scope.definitions.insert(name, new_index); [INFO] [stdout] | ------------------------- mutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.scopes` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/main.rs:79:34 [INFO] [stdout] | [INFO] [stdout] 71 | let current_scope: &mut Scope = self.scopes.get_mut(found_scope_idx).unwrap(); [INFO] [stdout] | ----------- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 79 | let def_idx: usize = self.scopes.get(def_scope).unwrap().definitions.get(&name).unwrap().clone(); [INFO] [stdout] | ^^^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 82 | current_scope.references.insert(def_var.name, def_idx); [INFO] [stdout] | ------------------------ mutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `def_var.name` which is behind a mutable reference [INFO] [stdout] --> src/main.rs:82:45 [INFO] [stdout] | [INFO] [stdout] 82 | current_scope.references.insert(def_var.name, def_idx); [INFO] [stdout] | ^^^^^^^^^^^^ move occurs because `def_var.name` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `name` [INFO] [stdout] --> src/main.rs:87:23 [INFO] [stdout] | [INFO] [stdout] 70 | fn add_var(&mut self, found_scope_idx: usize, name: String) { [INFO] [stdout] | ---- move occurs because `name` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 74 | definition = self.find_var_definition(parent_idx, name); [INFO] [stdout] | ---- value moved here [INFO] [stdout] ... [INFO] [stdout] 87 | name: name, [INFO] [stdout] | ^^^^ value used here after move [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `name` [INFO] [stdout] --> src/main.rs:91:46 [INFO] [stdout] | [INFO] [stdout] 70 | fn add_var(&mut self, found_scope_idx: usize, name: String) { [INFO] [stdout] | ---- move occurs because `name` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 87 | name: name, [INFO] [stdout] | ---- value moved here [INFO] [stdout] ... [INFO] [stdout] 91 | current_scope.definitions.insert(name, new_index); [INFO] [stdout] | ^^^^ value used here after move [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `references` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:98:13 [INFO] [stdout] | [INFO] [stdout] 96 | let references: Vec<&Var> = vec![]; [INFO] [stdout] | ---------- help: consider changing this to be mutable: `mut references` [INFO] [stdout] 97 | for reference_idx in scope.references.values() { [INFO] [stdout] 98 | references.push(self.vars.get(*reference_idx).unwrap()); [INFO] [stdout] | ^^^^^^^^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `definitions` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 104 | let definitions: Vec<&Var> = vec![]; [INFO] [stdout] | ----------- help: consider changing this to be mutable: `mut definitions` [INFO] [stdout] 105 | for definition_idx in scope.definitions.values() { [INFO] [stdout] 106 | definitions.push(self.vars.get(*definition_idx).unwrap()); [INFO] [stdout] | ^^^^^^^^^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/main.rs:74:26 [INFO] [stdout] | [INFO] [stdout] 71 | let current_scope: &mut Scope = self.scopes.get_mut(found_scope_idx).unwrap(); [INFO] [stdout] | ----------- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 74 | definition = self.find_var_definition(parent_idx, name); [INFO] [stdout] | ^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 91 | current_scope.definitions.insert(name, new_index); [INFO] [stdout] | ------------------------- mutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `scopes` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 112 | let scopes: Vec<&Scope> = vec![]; [INFO] [stdout] | ------ help: consider changing this to be mutable: `mut scopes` [INFO] [stdout] 113 | for scope_idx in scope.subscopes.iter() { [INFO] [stdout] 114 | scopes.push(self.scopes.get(*scope_idx).unwrap()); [INFO] [stdout] | ^^^^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.scopes` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/main.rs:79:34 [INFO] [stdout] | [INFO] [stdout] 71 | let current_scope: &mut Scope = self.scopes.get_mut(found_scope_idx).unwrap(); [INFO] [stdout] | ----------- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 79 | let def_idx: usize = self.scopes.get(def_scope).unwrap().definitions.get(&name).unwrap().clone(); [INFO] [stdout] | ^^^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 82 | current_scope.references.insert(def_var.name, def_idx); [INFO] [stdout] | ------------------------ mutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `def_var.name` which is behind a mutable reference [INFO] [stdout] --> src/main.rs:82:45 [INFO] [stdout] | [INFO] [stdout] 82 | current_scope.references.insert(def_var.name, def_idx); [INFO] [stdout] | ^^^^^^^^^^^^ move occurs because `def_var.name` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `name` [INFO] [stdout] --> src/main.rs:87:23 [INFO] [stdout] | [INFO] [stdout] 70 | fn add_var(&mut self, found_scope_idx: usize, name: String) { [INFO] [stdout] | ---- move occurs because `name` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 74 | definition = self.find_var_definition(parent_idx, name); [INFO] [stdout] | ---- value moved here [INFO] [stdout] ... [INFO] [stdout] 87 | name: name, [INFO] [stdout] | ^^^^ value used here after move [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `name` [INFO] [stdout] --> src/main.rs:91:46 [INFO] [stdout] | [INFO] [stdout] 70 | fn add_var(&mut self, found_scope_idx: usize, name: String) { [INFO] [stdout] | ---- move occurs because `name` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 87 | name: name, [INFO] [stdout] | ---- value moved here [INFO] [stdout] ... [INFO] [stdout] 91 | current_scope.definitions.insert(name, new_index); [INFO] [stdout] | ^^^^ value used here after move [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `references` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:98:13 [INFO] [stdout] | [INFO] [stdout] 96 | let references: Vec<&Var> = vec![]; [INFO] [stdout] | ---------- help: consider changing this to be mutable: `mut references` [INFO] [stdout] 97 | for reference_idx in scope.references.values() { [INFO] [stdout] 98 | references.push(self.vars.get(*reference_idx).unwrap()); [INFO] [stdout] | ^^^^^^^^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `definitions` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 104 | let definitions: Vec<&Var> = vec![]; [INFO] [stdout] | ----------- help: consider changing this to be mutable: `mut definitions` [INFO] [stdout] 105 | for definition_idx in scope.definitions.values() { [INFO] [stdout] 106 | definitions.push(self.vars.get(*definition_idx).unwrap()); [INFO] [stdout] | ^^^^^^^^^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `scopes` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 112 | let scopes: Vec<&Scope> = vec![]; [INFO] [stdout] | ------ help: consider changing this to be mutable: `mut scopes` [INFO] [stdout] 113 | for scope_idx in scope.subscopes.iter() { [INFO] [stdout] 114 | scopes.push(self.scopes.get(*scope_idx).unwrap()); [INFO] [stdout] | ^^^^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `output` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:121:13 [INFO] [stdout] | [INFO] [stdout] 119 | let output = String::from(""); [INFO] [stdout] | ------ help: consider changing this to be mutable: `mut output` [INFO] [stdout] 120 | for definition in self.get_definitions_for_scope(scope_idx).iter() { [INFO] [stdout] 121 | output.push_str(format!("+-[{}]", definition.name).as_str()); [INFO] [stdout] | ^^^^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `output` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 119 | let output = String::from(""); [INFO] [stdout] | ------ help: consider changing this to be mutable: `mut output` [INFO] [stdout] ... [INFO] [stdout] 124 | output.push_str(format!("+-{}", reference.name).as_str()); [INFO] [stdout] | ^^^^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `output` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:127:13 [INFO] [stdout] | [INFO] [stdout] 119 | let output = String::from(""); [INFO] [stdout] | ------ help: consider changing this to be mutable: `mut output` [INFO] [stdout] ... [INFO] [stdout] 127 | output.push_str("+-+"); [INFO] [stdout] | ^^^^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `output` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 119 | let output = String::from(""); [INFO] [stdout] | ------ help: consider changing this to be mutable: `mut output` [INFO] [stdout] ... [INFO] [stdout] 128 | output.push_str(self.scope_repr(*subscope_idx).replace("\n", "\n ").as_str()); [INFO] [stdout] | ^^^^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `output` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:121:13 [INFO] [stdout] | [INFO] [stdout] 119 | let output = String::from(""); [INFO] [stdout] | ------ help: consider changing this to be mutable: `mut output` [INFO] [stdout] 120 | for definition in self.get_definitions_for_scope(scope_idx).iter() { [INFO] [stdout] 121 | output.push_str(format!("+-[{}]", definition.name).as_str()); [INFO] [stdout] | ^^^^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `output` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 119 | let output = String::from(""); [INFO] [stdout] | ------ help: consider changing this to be mutable: `mut output` [INFO] [stdout] ... [INFO] [stdout] 124 | output.push_str(format!("+-{}", reference.name).as_str()); [INFO] [stdout] | ^^^^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `output` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:127:13 [INFO] [stdout] | [INFO] [stdout] 119 | let output = String::from(""); [INFO] [stdout] | ------ help: consider changing this to be mutable: `mut output` [INFO] [stdout] ... [INFO] [stdout] 127 | output.push_str("+-+"); [INFO] [stdout] | ^^^^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `output` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 119 | let output = String::from(""); [INFO] [stdout] | ------ help: consider changing this to be mutable: `mut output` [INFO] [stdout] ... [INFO] [stdout] 128 | output.push_str(self.scope_repr(*subscope_idx).replace("\n", "\n ").as_str()); [INFO] [stdout] | ^^^^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*scope_arena` as mutable more than once at a time [INFO] [stdout] --> src/main.rs:174:54 [INFO] [stdout] | [INFO] [stdout] 174 | find_vars_in_statements(scope_arena, scope_arena.add_subscope(scope_idx), block.stmts); [INFO] [stdout] | ----------------------- ----------- ^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | first borrow later used by call [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `block.stmts` which is behind a shared reference [INFO] [stdout] --> src/main.rs:174:91 [INFO] [stdout] | [INFO] [stdout] 174 | find_vars_in_statements(scope_arena, scope_arena.add_subscope(scope_idx), block.stmts); [INFO] [stdout] | ^^^^^^^^^^^ move occurs because `block.stmts` has type `Vec`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*scope_arena` as mutable more than once at a time [INFO] [stdout] --> src/main.rs:183:78 [INFO] [stdout] | [INFO] [stdout] 183 | ... find_vars_in_statements(scope_arena, scope_arena.add_subscope(scope_idx), constructor_block.stmts); [INFO] [stdout] | ----------------------- ----------- ^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | first borrow later used by call [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `constructor_block.stmts` which is behind a shared reference [INFO] [stdout] --> src/main.rs:183:115 [INFO] [stdout] | [INFO] [stdout] 183 | ... find_vars_in_statements(scope_arena, scope_arena.add_subscope(scope_idx), constructor_block.stmts); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ move occurs because `constructor_block.stmts` has type `Vec`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*scope_arena` as mutable more than once at a time [INFO] [stdout] --> src/main.rs:188:78 [INFO] [stdout] | [INFO] [stdout] 188 | ... find_vars_in_statements(scope_arena, scope_arena.add_subscope(scope_idx), block.stmts); [INFO] [stdout] | ----------------------- ----------- ^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | first borrow later used by call [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `block.stmts` which is behind a shared reference [INFO] [stdout] --> src/main.rs:188:115 [INFO] [stdout] | [INFO] [stdout] 188 | ... find_vars_in_statements(scope_arena, scope_arena.add_subscope(scope_idx), block.stmts); [INFO] [stdout] | ^^^^^^^^^^^ move occurs because `block.stmts` has type `Vec`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*scope_arena` as mutable more than once at a time [INFO] [stdout] --> src/main.rs:193:78 [INFO] [stdout] | [INFO] [stdout] 193 | ... find_vars_in_statements(scope_arena, scope_arena.add_subscope(scope_idx), block.stmts); [INFO] [stdout] | ----------------------- ----------- ^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | first borrow later used by call [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `block.stmts` which is behind a shared reference [INFO] [stdout] --> src/main.rs:193:115 [INFO] [stdout] | [INFO] [stdout] 193 | ... find_vars_in_statements(scope_arena, scope_arena.add_subscope(scope_idx), block.stmts); [INFO] [stdout] | ^^^^^^^^^^^ move occurs because `block.stmts` has type `Vec`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*scope_arena` as mutable more than once at a time [INFO] [stdout] --> src/main.rs:204:66 [INFO] [stdout] | [INFO] [stdout] 204 | ... find_vars_in_statements(scope_arena, scope_arena.add_subscope(scope_idx), function_body.stmts); [INFO] [stdout] | ----------------------- ----------- ^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | first borrow later used by call [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `function_body.stmts` which is behind a shared reference [INFO] [stdout] --> src/main.rs:204:103 [INFO] [stdout] | [INFO] [stdout] 204 | ... find_vars_in_statements(scope_arena, scope_arena.add_subscope(scope_idx), function_body.stmts); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ move occurs because `function_body.stmts` has type `Vec`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*scope_arena` as mutable more than once at a time [INFO] [stdout] --> src/main.rs:174:54 [INFO] [stdout] | [INFO] [stdout] 174 | find_vars_in_statements(scope_arena, scope_arena.add_subscope(scope_idx), block.stmts); [INFO] [stdout] | ----------------------- ----------- ^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | first borrow later used by call [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `block.stmts` which is behind a shared reference [INFO] [stdout] --> src/main.rs:174:91 [INFO] [stdout] | [INFO] [stdout] 174 | find_vars_in_statements(scope_arena, scope_arena.add_subscope(scope_idx), block.stmts); [INFO] [stdout] | ^^^^^^^^^^^ move occurs because `block.stmts` has type `Vec`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*scope_arena` as mutable more than once at a time [INFO] [stdout] --> src/main.rs:183:78 [INFO] [stdout] | [INFO] [stdout] 183 | ... find_vars_in_statements(scope_arena, scope_arena.add_subscope(scope_idx), constructor_block.stmts); [INFO] [stdout] | ----------------------- ----------- ^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | first borrow later used by call [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `constructor_block.stmts` which is behind a shared reference [INFO] [stdout] --> src/main.rs:183:115 [INFO] [stdout] | [INFO] [stdout] 183 | ... find_vars_in_statements(scope_arena, scope_arena.add_subscope(scope_idx), constructor_block.stmts); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ move occurs because `constructor_block.stmts` has type `Vec`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*scope_arena` as mutable more than once at a time [INFO] [stdout] --> src/main.rs:188:78 [INFO] [stdout] | [INFO] [stdout] 188 | ... find_vars_in_statements(scope_arena, scope_arena.add_subscope(scope_idx), block.stmts); [INFO] [stdout] | ----------------------- ----------- ^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | first borrow later used by call [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `block.stmts` which is behind a shared reference [INFO] [stdout] --> src/main.rs:188:115 [INFO] [stdout] | [INFO] [stdout] 188 | ... find_vars_in_statements(scope_arena, scope_arena.add_subscope(scope_idx), block.stmts); [INFO] [stdout] | ^^^^^^^^^^^ move occurs because `block.stmts` has type `Vec`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*scope_arena` as mutable more than once at a time [INFO] [stdout] --> src/main.rs:193:78 [INFO] [stdout] | [INFO] [stdout] 193 | ... find_vars_in_statements(scope_arena, scope_arena.add_subscope(scope_idx), block.stmts); [INFO] [stdout] | ----------------------- ----------- ^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | first borrow later used by call [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `block.stmts` which is behind a shared reference [INFO] [stdout] --> src/main.rs:193:115 [INFO] [stdout] | [INFO] [stdout] 193 | ... find_vars_in_statements(scope_arena, scope_arena.add_subscope(scope_idx), block.stmts); [INFO] [stdout] | ^^^^^^^^^^^ move occurs because `block.stmts` has type `Vec`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*scope_arena` as mutable more than once at a time [INFO] [stdout] --> src/main.rs:204:66 [INFO] [stdout] | [INFO] [stdout] 204 | ... find_vars_in_statements(scope_arena, scope_arena.add_subscope(scope_idx), function_body.stmts); [INFO] [stdout] | ----------------------- ----------- ^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | first borrow later used by call [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `function_body.stmts` which is behind a shared reference [INFO] [stdout] --> src/main.rs:204:103 [INFO] [stdout] | [INFO] [stdout] 204 | ... find_vars_in_statements(scope_arena, scope_arena.add_subscope(scope_idx), function_body.stmts); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ move occurs because `function_body.stmts` has type `Vec`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 24 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0004, E0382, E0499, E0502, E0507, E0596. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0004`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 24 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0004, E0382, E0499, E0502, E0507, E0596. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0004`. [INFO] [stdout] [INFO] [stderr] error: could not compile `jsa` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "b5b7fabd413a7cecc4328e687353eb6898962af9ed04a56d3f3ae99280a1d12e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b5b7fabd413a7cecc4328e687353eb6898962af9ed04a56d3f3ae99280a1d12e", kill_on_drop: false }` [INFO] [stdout] b5b7fabd413a7cecc4328e687353eb6898962af9ed04a56d3f3ae99280a1d12e