[INFO] cloning repository https://github.com/hero-clashes/Serk_v2 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/hero-clashes/Serk_v2" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhero-clashes%2FSerk_v2", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhero-clashes%2FSerk_v2'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] db9e87b4fc3b63c9a0cb738698ceb617744240eb [INFO] checking hero-clashes/Serk_v2 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhero-clashes%2FSerk_v2" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/hero-clashes/Serk_v2 [INFO] finished tweaking git repo https://github.com/hero-clashes/Serk_v2 [INFO] tweaked toml for git repo https://github.com/hero-clashes/Serk_v2 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/hero-clashes/Serk_v2 on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/hero-clashes/Serk_v2 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 507127c6b3c9653698723b87ed4044234bba10dcb9d126dfd99c4e9737f26a64 [INFO] running `Command { std: "docker" "start" "-a" "507127c6b3c9653698723b87ed4044234bba10dcb9d126dfd99c4e9737f26a64", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "507127c6b3c9653698723b87ed4044234bba10dcb9d126dfd99c4e9737f26a64", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "507127c6b3c9653698723b87ed4044234bba10dcb9d126dfd99c4e9737f26a64", kill_on_drop: false }` [INFO] [stdout] 507127c6b3c9653698723b87ed4044234bba10dcb9d126dfd99c4e9737f26a64 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ffb8846a212aca68724def7a0f8c6487dac8e1a5141e3322096f096f611f49ac [INFO] running `Command { std: "docker" "start" "-a" "ffb8846a212aca68724def7a0f8c6487dac8e1a5141e3322096f096f611f49ac", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling regex-syntax v0.8.3 [INFO] [stderr] Compiling serde v1.0.198 [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling memchr v2.7.2 [INFO] [stderr] Compiling semver v1.0.22 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Compiling anyhow v1.0.82 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling hashbrown v0.14.3 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Compiling cc v1.0.94 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling regex-lite v0.1.5 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling new_debug_unreachable v1.0.6 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling either v1.11.0 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling ena v0.14.2 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling itertools v0.11.0 [INFO] [stderr] Compiling pico-args v0.5.0 [INFO] [stderr] Compiling indexmap v2.2.6 [INFO] [stderr] Compiling syn v2.0.58 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling thiserror v1.0.58 [INFO] [stderr] Compiling beef v0.5.2 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling inkwell v0.4.0 [INFO] [stderr] Checking similar v2.5.0 [INFO] [stderr] Checking colored v2.1.0 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking unicode-width v0.1.12 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking shlex v1.3.0 [INFO] [stderr] Compiling dirs-sys-next v0.1.2 [INFO] [stderr] Compiling llvm-sys v170.0.1 [INFO] [stderr] Compiling dirs-next v2.0.0 [INFO] [stderr] Checking codespan-reporting v0.11.1 [INFO] [stderr] Compiling term v0.7.0 [INFO] [stderr] Compiling petgraph v0.6.4 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Compiling string_cache v0.8.7 [INFO] [stderr] Compiling ascii-canvas v3.0.0 [INFO] [stderr] Compiling regex-automata v0.4.6 [INFO] [stderr] Checking goldentests v1.1.1 [INFO] [stderr] Compiling logos-codegen v0.14.0 [INFO] [stderr] Checking lalrpop-util v0.20.2 [INFO] [stderr] Checking regex v1.10.4 [INFO] [stderr] Compiling serde_derive v1.0.198 [INFO] [stderr] Compiling thiserror-impl v1.0.58 [INFO] [stderr] Compiling inkwell_internals v0.9.0 [INFO] [stderr] Compiling enum-as-inner v0.6.0 [INFO] [stderr] Compiling logos-derive v0.14.0 [INFO] [stderr] Checking logos v0.14.0 [INFO] [stderr] Compiling lalrpop v0.20.2 [INFO] [stderr] Checking argh_shared v0.1.12 [INFO] [stderr] Checking multimap v0.10.0 [INFO] [stderr] Compiling argh_derive v0.1.12 [INFO] [stderr] Checking argh v0.1.12 [INFO] [stderr] Compiling serk v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `BasicValueEnum` [INFO] [stdout] --> src/scope.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use inkwell::values::{BasicValueEnum, FunctionValue}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BasicValueEnum` [INFO] [stdout] --> src/scope.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use inkwell::values::{BasicValueEnum, FunctionValue}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `inkwell::types::BasicTypeEnum` [INFO] [stdout] --> src/scope.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use inkwell::types::BasicTypeEnum; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `inkwell::types::BasicTypeEnum` [INFO] [stdout] --> src/scope.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use inkwell::types::BasicTypeEnum; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `InitializationConfig`, `TargetMachine`, and `Target` [INFO] [stdout] --> src/backend/ast_gen.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 9 | targets::{InitializationConfig, Target, TargetMachine}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `InitializationConfig`, `TargetMachine`, and `Target` [INFO] [stdout] --> src/backend/ast_gen.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 9 | targets::{InitializationConfig, Target, TargetMachine}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/backend/ast_gen.rs:23:24 [INFO] [stdout] | [INFO] [stdout] 23 | use super::{type_gen::{self, Decl}, Backend}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/backend/ast_gen.rs:23:24 [INFO] [stdout] | [INFO] [stdout] 23 | use super::{type_gen::{self, Decl}, Backend}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/backend/ast_gen.rs:43:21 [INFO] [stdout] | [INFO] [stdout] 25 | impl<'a, 'ctx> Backend<'a, 'ctx> { [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] 26 | pub fn gen_code(&mut self, ast: AST) { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 43 | self.gen_code(*ast); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ argument requires that `'1` must outlive `'a` [INFO] [stdout] | [INFO] [stdout] = note: requirement occurs because of a mutable reference to `Backend<'_, '_>` [INFO] [stdout] = note: mutable references are invariant over their type parameter [INFO] [stdout] = help: see for more information about variance [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/backend/ast_gen.rs:69:17 [INFO] [stdout] | [INFO] [stdout] 25 | impl<'a, 'ctx> Backend<'a, 'ctx> { [INFO] [stdout] | -- ---- lifetime `'ctx` defined here [INFO] [stdout] | | [INFO] [stdout] | lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 69 | self.get_type(&stats); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ argument requires that `'a` must outlive `'ctx` [INFO] [stdout] | [INFO] [stdout] = help: consider adding the following bound: `'a: 'ctx` [INFO] [stdout] = note: requirement occurs because of the type `Backend<'_, '_>`, which makes the generic argument `'_` invariant [INFO] [stdout] = note: the struct `Backend<'a, 'ctx>` is invariant over the parameter `'ctx` [INFO] [stdout] = help: see for more information about variance [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/backend/ast_gen.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 69 | self.get_type(&stats); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] 70 | self.get_value(&stats); [INFO] [stdout] | ^^^^^---------^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow later used by call [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.current_scope` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/backend/ast_gen.rs:87:36 [INFO] [stdout] | [INFO] [stdout] 25 | impl<'a, 'ctx> Backend<'a, 'ctx> { [INFO] [stdout] | ---- lifetime `'ctx` defined here [INFO] [stdout] ... [INFO] [stdout] 69 | self.get_type(&stats); [INFO] [stdout] | --------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | argument requires that `*self` is borrowed for `'ctx` [INFO] [stdout] ... [INFO] [stdout] 87 | Scope::close_scope(&mut self.current_scope); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/backend/ast_gen.rs:225:21 [INFO] [stdout] | [INFO] [stdout] 224 | self.get_type(&stats); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] 225 | self.get_value(&stats); [INFO] [stdout] | ^^^^^---------^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow later used by call [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.current_scope` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/backend/ast_gen.rs:226:40 [INFO] [stdout] | [INFO] [stdout] 25 | impl<'a, 'ctx> Backend<'a, 'ctx> { [INFO] [stdout] | ---- lifetime `'ctx` defined here [INFO] [stdout] ... [INFO] [stdout] 224 | self.get_type(&stats); [INFO] [stdout] | --------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | argument requires that `*self` is borrowed for `'ctx` [INFO] [stdout] 225 | self.get_value(&stats); [INFO] [stdout] 226 | Scope::close_scope(&mut self.current_scope); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] help: add bound `'a: 'ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/backend/type_gen.rs:122:50 [INFO] [stdout] | [INFO] [stdout] 122 | Decl::VariableDecl { ty, val } => ty.clone(), [INFO] [stdout] | ^^^ help: try ignoring the field: `val: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/backend/type_gen.rs:123:46 [INFO] [stdout] | [INFO] [stdout] 123 | Decl::FunctionDecl { val, args, return_ty, coroutine } => return_ty.clone(), [INFO] [stdout] | ^^^ help: try ignoring the field: `val: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/backend/type_gen.rs:123:51 [INFO] [stdout] | [INFO] [stdout] 123 | Decl::FunctionDecl { val, args, return_ty, coroutine } => return_ty.clone(), [INFO] [stdout] | ^^^^ help: try ignoring the field: `args: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coroutine` [INFO] [stdout] --> src/backend/type_gen.rs:123:68 [INFO] [stdout] | [INFO] [stdout] 123 | Decl::FunctionDecl { val, args, return_ty, coroutine } => return_ty.clone(), [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `coroutine: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `members` [INFO] [stdout] --> src/backend/type_gen.rs:124:47 [INFO] [stdout] | [INFO] [stdout] 124 | Decl::ClassDecl { ty, members, f_members } => ty.clone(), [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `members: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f_members` [INFO] [stdout] --> src/backend/type_gen.rs:124:56 [INFO] [stdout] | [INFO] [stdout] 124 | Decl::ClassDecl { ty, members, f_members } => ty.clone(), [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `f_members: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> src/backend/type_gen.rs:131:101 [INFO] [stdout] | [INFO] [stdout] 131 | if get_value.is_none() || matches!(get_value.unwrap(), Decl::VariableDecl { ty, val }){ [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/backend/type_gen.rs:131:105 [INFO] [stdout] | [INFO] [stdout] 131 | if get_value.is_none() || matches!(get_value.unwrap(), Decl::VariableDecl { ty, val }){ [INFO] [stdout] | ^^^ help: try ignoring the field: `val: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/backend/ast_gen.rs:43:21 [INFO] [stdout] | [INFO] [stdout] 25 | impl<'a, 'ctx> Backend<'a, 'ctx> { [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] 26 | pub fn gen_code(&mut self, ast: AST) { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 43 | self.gen_code(*ast); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ argument requires that `'1` must outlive `'a` [INFO] [stdout] | [INFO] [stdout] = note: requirement occurs because of a mutable reference to `Backend<'_, '_>` [INFO] [stdout] = note: mutable references are invariant over their type parameter [INFO] [stdout] = help: see for more information about variance [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/backend/ast_gen.rs:69:17 [INFO] [stdout] | [INFO] [stdout] 25 | impl<'a, 'ctx> Backend<'a, 'ctx> { [INFO] [stdout] | -- ---- lifetime `'ctx` defined here [INFO] [stdout] | | [INFO] [stdout] | lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 69 | self.get_type(&stats); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ argument requires that `'a` must outlive `'ctx` [INFO] [stdout] | [INFO] [stdout] = help: consider adding the following bound: `'a: 'ctx` [INFO] [stdout] = note: requirement occurs because of the type `Backend<'_, '_>`, which makes the generic argument `'_` invariant [INFO] [stdout] = note: the struct `Backend<'a, 'ctx>` is invariant over the parameter `'ctx` [INFO] [stdout] = help: see for more information about variance [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/backend/ast_gen.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 69 | self.get_type(&stats); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] 70 | self.get_value(&stats); [INFO] [stdout] | ^^^^^---------^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow later used by call [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.current_scope` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/backend/ast_gen.rs:87:36 [INFO] [stdout] | [INFO] [stdout] 25 | impl<'a, 'ctx> Backend<'a, 'ctx> { [INFO] [stdout] | ---- lifetime `'ctx` defined here [INFO] [stdout] ... [INFO] [stdout] 69 | self.get_type(&stats); [INFO] [stdout] | --------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | argument requires that `*self` is borrowed for `'ctx` [INFO] [stdout] ... [INFO] [stdout] 87 | Scope::close_scope(&mut self.current_scope); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/backend/ast_gen.rs:225:21 [INFO] [stdout] | [INFO] [stdout] 224 | self.get_type(&stats); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] 225 | self.get_value(&stats); [INFO] [stdout] | ^^^^^---------^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow later used by call [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.current_scope` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/backend/ast_gen.rs:226:40 [INFO] [stdout] | [INFO] [stdout] 25 | impl<'a, 'ctx> Backend<'a, 'ctx> { [INFO] [stdout] | ---- lifetime `'ctx` defined here [INFO] [stdout] ... [INFO] [stdout] 224 | self.get_type(&stats); [INFO] [stdout] | --------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | argument requires that `*self` is borrowed for `'ctx` [INFO] [stdout] 225 | self.get_value(&stats); [INFO] [stdout] 226 | Scope::close_scope(&mut self.current_scope); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] help: add bound `'a: 'ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/backend/type_gen.rs:122:50 [INFO] [stdout] | [INFO] [stdout] 122 | Decl::VariableDecl { ty, val } => ty.clone(), [INFO] [stdout] | ^^^ help: try ignoring the field: `val: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/backend/type_gen.rs:123:46 [INFO] [stdout] | [INFO] [stdout] 123 | Decl::FunctionDecl { val, args, return_ty, coroutine } => return_ty.clone(), [INFO] [stdout] | ^^^ help: try ignoring the field: `val: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/backend/type_gen.rs:123:51 [INFO] [stdout] | [INFO] [stdout] 123 | Decl::FunctionDecl { val, args, return_ty, coroutine } => return_ty.clone(), [INFO] [stdout] | ^^^^ help: try ignoring the field: `args: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coroutine` [INFO] [stdout] --> src/backend/type_gen.rs:123:68 [INFO] [stdout] | [INFO] [stdout] 123 | Decl::FunctionDecl { val, args, return_ty, coroutine } => return_ty.clone(), [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `coroutine: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `members` [INFO] [stdout] --> src/backend/type_gen.rs:124:47 [INFO] [stdout] | [INFO] [stdout] 124 | Decl::ClassDecl { ty, members, f_members } => ty.clone(), [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `members: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f_members` [INFO] [stdout] --> src/backend/type_gen.rs:124:56 [INFO] [stdout] | [INFO] [stdout] 124 | Decl::ClassDecl { ty, members, f_members } => ty.clone(), [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `f_members: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> src/backend/type_gen.rs:131:101 [INFO] [stdout] | [INFO] [stdout] 131 | if get_value.is_none() || matches!(get_value.unwrap(), Decl::VariableDecl { ty, val }){ [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/backend/type_gen.rs:131:105 [INFO] [stdout] | [INFO] [stdout] 131 | if get_value.is_none() || matches!(get_value.unwrap(), Decl::VariableDecl { ty, val }){ [INFO] [stdout] | ^^^ help: try ignoring the field: `val: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/backend/value_gen.rs:218:26 [INFO] [stdout] | [INFO] [stdout] 218 | let (ty, mut val) = self [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/backend/value_gen.rs:29:26 [INFO] [stdout] | [INFO] [stdout] 25 | impl<'a, 'ctx> Backend<'a, 'ctx> { [INFO] [stdout] | -- ---- lifetime `'ctx` defined here [INFO] [stdout] | | [INFO] [stdout] | lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 29 | let ty = self.get_type(&stat).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ argument requires that `'a` must outlive `'ctx` [INFO] [stdout] | [INFO] [stdout] = help: consider adding the following bound: `'a: 'ctx` [INFO] [stdout] = note: requirement occurs because of the type `Backend<'_, '_>`, which makes the generic argument `'_` invariant [INFO] [stdout] = note: the struct `Backend<'a, 'ctx>` is invariant over the parameter `'ctx` [INFO] [stdout] = help: see for more information about variance [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/backend/value_gen.rs:32:29 [INFO] [stdout] | [INFO] [stdout] 29 | let ty = self.get_type(&stat).unwrap(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 32 | let value = self.get_value(&s).unwrap(); [INFO] [stdout] | ^^^^^---------^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow later used by call [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.current_scope` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/backend/value_gen.rs:35:17 [INFO] [stdout] | [INFO] [stdout] 25 | impl<'a, 'ctx> Backend<'a, 'ctx> { [INFO] [stdout] | ---- lifetime `'ctx` defined here [INFO] [stdout] ... [INFO] [stdout] 29 | let ty = self.get_type(&stat).unwrap(); [INFO] [stdout] | -------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | argument requires that `*self` is borrowed for `'ctx` [INFO] [stdout] ... [INFO] [stdout] 35 | self.current_scope.as_mut().unwrap().set_value( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/backend/value_gen.rs:158:28 [INFO] [stdout] | [INFO] [stdout] 25 | impl<'a, 'ctx> Backend<'a, 'ctx> { [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] 26 | pub fn get_value(&mut self, stat: &Statement) -> Option> { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 158 | let cond = self.get_value(&cond).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ argument requires that `'1` must outlive `'a` [INFO] [stdout] | [INFO] [stdout] = note: requirement occurs because of a mutable reference to `Backend<'_, '_>` [INFO] [stdout] = note: mutable references are invariant over their type parameter [INFO] [stdout] = help: see for more information about variance [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/backend/value_gen.rs:218:26 [INFO] [stdout] | [INFO] [stdout] 218 | let (ty, mut val) = self [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/backend/value_gen.rs:29:26 [INFO] [stdout] | [INFO] [stdout] 25 | impl<'a, 'ctx> Backend<'a, 'ctx> { [INFO] [stdout] | -- ---- lifetime `'ctx` defined here [INFO] [stdout] | | [INFO] [stdout] | lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 29 | let ty = self.get_type(&stat).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ argument requires that `'a` must outlive `'ctx` [INFO] [stdout] | [INFO] [stdout] = help: consider adding the following bound: `'a: 'ctx` [INFO] [stdout] = note: requirement occurs because of the type `Backend<'_, '_>`, which makes the generic argument `'_` invariant [INFO] [stdout] = note: the struct `Backend<'a, 'ctx>` is invariant over the parameter `'ctx` [INFO] [stdout] = help: see for more information about variance [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/backend/value_gen.rs:32:29 [INFO] [stdout] | [INFO] [stdout] 29 | let ty = self.get_type(&stat).unwrap(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 32 | let value = self.get_value(&s).unwrap(); [INFO] [stdout] | ^^^^^---------^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow later used by call [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.current_scope` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/backend/value_gen.rs:35:17 [INFO] [stdout] | [INFO] [stdout] 25 | impl<'a, 'ctx> Backend<'a, 'ctx> { [INFO] [stdout] | ---- lifetime `'ctx` defined here [INFO] [stdout] ... [INFO] [stdout] 29 | let ty = self.get_type(&stat).unwrap(); [INFO] [stdout] | -------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | argument requires that `*self` is borrowed for `'ctx` [INFO] [stdout] ... [INFO] [stdout] 35 | self.current_scope.as_mut().unwrap().set_value( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/backend/value_gen.rs:158:28 [INFO] [stdout] | [INFO] [stdout] 25 | impl<'a, 'ctx> Backend<'a, 'ctx> { [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] 26 | pub fn get_value(&mut self, stat: &Statement) -> Option> { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 158 | let cond = self.get_value(&cond).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ argument requires that `'1` must outlive `'a` [INFO] [stdout] | [INFO] [stdout] = note: requirement occurs because of a mutable reference to `Backend<'_, '_>` [INFO] [stdout] = note: mutable references are invariant over their type parameter [INFO] [stdout] = help: see for more information about variance [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `serk` (bin "serk") due to 10 previous errors; 13 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `serk` (bin "serk" test) due to 10 previous errors; 13 warnings emitted [INFO] running `Command { std: "docker" "inspect" "ffb8846a212aca68724def7a0f8c6487dac8e1a5141e3322096f096f611f49ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ffb8846a212aca68724def7a0f8c6487dac8e1a5141e3322096f096f611f49ac", kill_on_drop: false }` [INFO] [stdout] ffb8846a212aca68724def7a0f8c6487dac8e1a5141e3322096f096f611f49ac