[INFO] cloning repository https://github.com/DuskyElf/rpg-rs
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/DuskyElf/rpg-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDuskyElf%2Frpg-rs", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDuskyElf%2Frpg-rs'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 17ffcaa91e2395b17539d9f08eec5018d05aa9b2
[INFO] checking DuskyElf/rpg-rs against 65b20a97de33e9e59992793a144aef2950c48c76 for pr-154715
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDuskyElf%2Frpg-rs" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/DuskyElf/rpg-rs
[INFO] finished tweaking git repo https://github.com/DuskyElf/rpg-rs
[INFO] tweaked toml for git repo https://github.com/DuskyElf/rpg-rs written to /workspace/builds/worker-1-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/DuskyElf/rpg-rs on toolchain 65b20a97de33e9e59992793a144aef2950c48c76
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+65b20a97de33e9e59992793a144aef2950c48c76" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/DuskyElf/rpg-rs 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" "+65b20a97de33e9e59992793a144aef2950c48c76" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded pancurses v0.17.0
[INFO] [stderr]   Downloaded winreg v0.5.1
[INFO] [stderr]   Downloaded pdcurses-sys v0.7.1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:00c5645b54fe3ce5dae1417175e3c7fb6a6646c021d554ecd63a097b8b9f3602" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 12e7147227d88dcaf3f6a799c6a30096f63752365a96f2467c4a3af4d21c15d5
[INFO] running `Command { std: "docker" "start" "12e7147227d88dcaf3f6a799c6a30096f63752365a96f2467c4a3af4d21c15d5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "12e7147227d88dcaf3f6a799c6a30096f63752365a96f2467c4a3af4d21c15d5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "12e7147227d88dcaf3f6a799c6a30096f63752365a96f2467c4a3af4d21c15d5" "/opt/rustwide/cargo-home/bin/cargo" "+65b20a97de33e9e59992793a144aef2950c48c76" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "12e7147227d88dcaf3f6a799c6a30096f63752365a96f2467c4a3af4d21c15d5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "12e7147227d88dcaf3f6a799c6a30096f63752365a96f2467c4a3af4d21c15d5" "/opt/rustwide/cargo-home/bin/cargo" "+65b20a97de33e9e59992793a144aef2950c48c76" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling pkg-config v0.3.25
[INFO] [stderr]    Compiling cc v1.0.73
[INFO] [stderr]    Compiling libc v0.2.133
[INFO] [stderr]    Compiling ncurses v5.101.0
[INFO] [stderr]     Checking pancurses v0.17.0
[INFO] [stderr]     Checking rpg-rs v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error: expected `;`, found keyword `let`
[INFO] [stdout]    --> src/lang.rs:467:19
[INFO] [stdout]     |
[INFO] [stdout] 467 |                 ))
[INFO] [stdout]     |                   ^ help: add `;` here
[INFO] [stdout] 468 |
[INFO] [stdout] 469 |             let node_starting = if let Some(token) = self.tokens.next() {
[INFO] [stdout]     |             --- unexpected token
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: expected `;`, found keyword `let`
[INFO] [stdout]    --> src/lang.rs:467:19
[INFO] [stdout]     |
[INFO] [stdout] 467 |                 ))
[INFO] [stdout]     |                   ^ help: add `;` here
[INFO] [stdout] 468 |
[INFO] [stdout] 469 |             let node_starting = if let Some(token) = self.tokens.next() {
[INFO] [stdout]     |             --- unexpected token
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/lang.rs:505:52
[INFO] [stdout]     |
[INFO] [stdout] 505 |             branches.push(Branch::new(branch_name, branch_node_block))
[INFO] [stdout]     |                           -----------              ^^^^^^^^^^^^^^^^^ expected `OpCode`, found `Vec<OpCode>`
[INFO] [stdout]     |                           |
[INFO] [stdout]     |                           arguments to this function are incorrect
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected enum `OpCode`
[INFO] [stdout]              found struct `Vec<OpCode>`
[INFO] [stdout] note: associated function defined here
[INFO] [stdout]    --> src/models.rs:42:12
[INFO] [stdout]     |
[INFO] [stdout]  42 |     pub fn new(option: String, handler: OpCode) -> Self {
[INFO] [stdout]     |            ^^^                 ---------------
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no variant, associated function, or constant named `new_branch` found for enum `models::OpCode` in the current scope
[INFO] [stdout]    --> src/lang.rs:508:20
[INFO] [stdout]     |
[INFO] [stdout] 508 |         Ok(OpCode::new_branch(question, branches))
[INFO] [stdout]     |                    ^^^^^^^^^^ variant, associated function, or constant not found in `models::OpCode`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/models.rs:26:1
[INFO] [stdout]     |
[INFO] [stdout]  26 | pub enum OpCode {
[INFO] [stdout]     | --------------- variant, associated function, or constant `new_branch` not found for this enum
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `contains` found for struct `HashMap<K, V, S, A>` in the current scope
[INFO] [stdout]    --> src/lang.rs:535:48
[INFO] [stdout]     |
[INFO] [stdout] 535 |                     if !self.value_identifiers.contains(&number) {
[INFO] [stdout]     |                                                ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: there is a method `contains_key` with a similar name
[INFO] [stdout]     |
[INFO] [stdout] 535 |                     if !self.value_identifiers.contains_key(&number) {
[INFO] [stdout]     |                                                        ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of index of `Vec<models::OpCode>`
[INFO] [stdout]  --> src/runtime.rs:8:26
[INFO] [stdout]   |
[INFO] [stdout] 8 |         let is_end = run(byte_code[iptr], &mut iptr, game);
[INFO] [stdout]   |                          ^^^^^^^^^^^^^^^ move occurs because value has type `models::OpCode`, which does not implement the `Copy` trait
[INFO] [stdout]   |
[INFO] [stdout] help: you can `clone` the value and consume it, but this might not be your desired behavior
[INFO] [stdout]   |
[INFO] [stdout] 8 |         let is_end = run(<models::OpCode as Clone>::clone(&byte_code[iptr]), &mut iptr, game);
[INFO] [stdout]   |                          ++++++++++++++++++++++++++++++++++               +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `branch.handler` which is behind a shared reference
[INFO] [stdout]   --> src/runtime.rs:64:5
[INFO] [stdout]    |
[INFO] [stdout] 64 |     branch.handler
[INFO] [stdout]    |     ^^^^^^^^^^^^^^ move occurs because `branch.handler` has type `models::OpCode`, which does not implement the `Copy` trait
[INFO] [stdout]    |
[INFO] [stdout] help: consider cloning the value if the performance cost is acceptable
[INFO] [stdout]    |
[INFO] [stdout] 64 |     branch.handler.clone()
[INFO] [stdout]    |                   ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: borrow of moved value: `info`
[INFO] [stdout]   --> src/runtime.rs:84:15
[INFO] [stdout]    |
[INFO] [stdout] 81 | fn parse(info: String, game: &Game) -> String {
[INFO] [stdout]    |          ---- move occurs because `info` has type `String`, which does not implement the `Copy` trait
[INFO] [stdout] ...
[INFO] [stdout] 84 |     while i < info.len() {
[INFO] [stdout]    |     ----------^^^^------
[INFO] [stdout]    |     |         |
[INFO] [stdout]    |     |         value borrowed here after move
[INFO] [stdout]    |     inside of this loop
[INFO] [stdout] ...
[INFO] [stdout] 87 |             result += &handle_states(&mut i, info, game);
[INFO] [stdout]    |                                              ---- value moved here, in previous iteration of loop
[INFO] [stdout]    |
[INFO] [stdout] note: consider changing this parameter type in function `handle_states` to borrow instead if owning the value isn't necessary
[INFO] [stdout]   --> src/runtime.rs:99:39
[INFO] [stdout]    |
[INFO] [stdout] 99 | fn handle_states(i: &mut usize, info: String, game: &Game) -> String {
[INFO] [stdout]    |    ------------- in this function     ^^^^^^ this parameter takes ownership of the value
[INFO] [stdout] help: consider moving the expression out of the loop so it is only moved once
[INFO] [stdout]    |
[INFO] [stdout] 84 ~     let mut value = handle_states(&mut i, info, game);
[INFO] [stdout] 85 ~     while i < info.len() {
[INFO] [stdout] 86 |         let letter = info.chars().nth(i).unwrap();
[INFO] [stdout] 87 |         if letter == '$' {
[INFO] [stdout] 88 ~             result += &value;
[INFO] [stdout]    |
[INFO] [stdout] help: consider cloning the value if the performance cost is acceptable
[INFO] [stdout]    |
[INFO] [stdout] 87 |             result += &handle_states(&mut i, info.clone(), game);
[INFO] [stdout]    |                                                  ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0515]: cannot return value referencing function parameter `branches`
[INFO] [stdout]    --> src/runtime.rs:162:5
[INFO] [stdout]     |
[INFO] [stdout] 162 |     branches.get(selection).unwrap()
[INFO] [stdout]     |     --------^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |     |
[INFO] [stdout]     |     returns a value referencing data owned by the current function
[INFO] [stdout]     |     `branches` is borrowed here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/lang.rs:157:13
[INFO] [stdout]     |
[INFO] [stdout] 157 |         let mut letter = self.source.chars().nth(self.index).unwrap();
[INFO] [stdout]     |             ----^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/lang.rs:168:17
[INFO] [stdout]     |
[INFO] [stdout] 168 |             let mut letter = self.source.chars().nth(self.index).unwrap();
[INFO] [stdout]     |                 ----^^^^^^
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0596]: cannot borrow `identifier` as mutable, as it is not declared as mutable
[INFO] [stdout]    --> src/lang.rs:163:13
[INFO] [stdout]     |
[INFO] [stdout] 163 |             identifier.write_char(letter).unwrap();
[INFO] [stdout]     |             ^^^^^^^^^^ cannot borrow as mutable
[INFO] [stdout]     |
[INFO] [stdout] help: consider changing this to be mutable
[INFO] [stdout]     |
[INFO] [stdout] 155 |         let mut identifier = String::new();
[INFO] [stdout]     |             +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `letter`
[INFO] [stdout]    --> src/lang.rs:168:17
[INFO] [stdout]     |
[INFO] [stdout] 168 |             let mut letter = self.source.chars().nth(self.index).unwrap();
[INFO] [stdout]     |                 ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_letter`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `self.curr_token.token_type` as enum variant `Identifier` which is behind a mutable reference
[INFO] [stdout]    --> src/lang.rs:288:52
[INFO] [stdout]     |
[INFO] [stdout] 288 |         if let TokenType::Identifier(identifier) = self.curr_token.token_type {
[INFO] [stdout]     |                                      ----------    ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |                                      |
[INFO] [stdout]     |                                      data moved here because `identifier` has type `String`, which does not implement the `Copy` trait
[INFO] [stdout]     |
[INFO] [stdout] help: consider borrowing the pattern binding
[INFO] [stdout]     |
[INFO] [stdout] 288 |         if let TokenType::Identifier(ref identifier) = self.curr_token.token_type {
[INFO] [stdout]     |                                      +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `self.curr_token.token_type` as enum variant `Identifier` which is behind a mutable reference
[INFO] [stdout]    --> src/lang.rs:335:52
[INFO] [stdout]     |
[INFO] [stdout] 335 |         if let TokenType::Identifier(identifier) = self.curr_token.token_type {
[INFO] [stdout]     |                                      ----------    ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |                                      |
[INFO] [stdout]     |                                      data moved here because `identifier` has type `String`, which does not implement the `Copy` trait
[INFO] [stdout]     |
[INFO] [stdout] help: consider borrowing the pattern binding
[INFO] [stdout]     |
[INFO] [stdout] 335 |         if let TokenType::Identifier(ref identifier) = self.curr_token.token_type {
[INFO] [stdout]     |                                      +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `block_spot`
[INFO] [stdout]    --> src/lang.rs:329:43
[INFO] [stdout]     |
[INFO] [stdout] 329 |     fn expr(&mut self, value_spot: usize, block_spot: usize) -> Result<ExprType, Error> {
[INFO] [stdout]     |                                           ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_spot`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `identifier`
[INFO] [stdout]    --> src/lang.rs:335:38
[INFO] [stdout]     |
[INFO] [stdout] 335 |         if let TokenType::Identifier(identifier) = self.curr_token.token_type {
[INFO] [stdout]     |                                      ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_identifier`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value_spot`
[INFO] [stdout]    --> src/lang.rs:346:24
[INFO] [stdout]     |
[INFO] [stdout] 346 |     fn tell(&mut self, value_spot: usize) -> Result<(), Error> {
[INFO] [stdout]     |                        ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_value_spot`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `self.curr_token.token_type` as enum variant `Identifier` which is behind a mutable reference
[INFO] [stdout]    --> src/lang.rs:402:29
[INFO] [stdout]     |
[INFO] [stdout] 402 |         let save_id = match self.curr_token.token_type {
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 403 |             Identifier(m) => m,
[INFO] [stdout]     |                        - data moved here because `m` has type `String`, which does not implement the `Copy` trait
[INFO] [stdout]     |
[INFO] [stdout] help: consider borrowing the pattern binding
[INFO] [stdout]     |
[INFO] [stdout] 403 |             Identifier(ref m) => m,
[INFO] [stdout]     |                        +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `save_id`
[INFO] [stdout]    --> src/lang.rs:402:13
[INFO] [stdout]     |
[INFO] [stdout] 402 |         let save_id = match self.curr_token.token_type {
[INFO] [stdout]     |             ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_save_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `question`
[INFO] [stdout]    --> src/lang.rs:416:13
[INFO] [stdout]     |
[INFO] [stdout] 416 |         let question = if let StringLiteral(question) = question_token.token_type {
[INFO] [stdout]     |             ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_question`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0382, E0507, E0515, E0596, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/lang.rs:505:52
[INFO] [stdout]     |
[INFO] [stdout] 505 |             branches.push(Branch::new(branch_name, branch_node_block))
[INFO] [stdout]     |                           -----------              ^^^^^^^^^^^^^^^^^ expected `OpCode`, found `Vec<OpCode>`
[INFO] [stdout]     |                           |
[INFO] [stdout]     |                           arguments to this function are incorrect
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected enum `OpCode`
[INFO] [stdout]              found struct `Vec<OpCode>`
[INFO] [stdout] note: associated function defined here
[INFO] [stdout]    --> src/models.rs:42:12
[INFO] [stdout]     |
[INFO] [stdout]  42 |     pub fn new(option: String, handler: OpCode) -> Self {
[INFO] [stdout]     |            ^^^                 ---------------
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no variant, associated function, or constant named `new_branch` found for enum `models::OpCode` in the current scope
[INFO] [stdout]    --> src/lang.rs:508:20
[INFO] [stdout]     |
[INFO] [stdout] 508 |         Ok(OpCode::new_branch(question, branches))
[INFO] [stdout]     |                    ^^^^^^^^^^ variant, associated function, or constant not found in `models::OpCode`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/models.rs:26:1
[INFO] [stdout]     |
[INFO] [stdout]  26 | pub enum OpCode {
[INFO] [stdout]     | --------------- variant, associated function, or constant `new_branch` not found for this enum
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rpg-rs` (lib) due to 12 previous errors; 8 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0599]: no method named `contains` found for struct `HashMap<K, V, S, A>` in the current scope
[INFO] [stdout]    --> src/lang.rs:535:48
[INFO] [stdout]     |
[INFO] [stdout] 535 |                     if !self.value_identifiers.contains(&number) {
[INFO] [stdout]     |                                                ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: there is a method `contains_key` with a similar name
[INFO] [stdout]     |
[INFO] [stdout] 535 |                     if !self.value_identifiers.contains_key(&number) {
[INFO] [stdout]     |                                                        ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of index of `Vec<models::OpCode>`
[INFO] [stdout]  --> src/runtime.rs:8:26
[INFO] [stdout]   |
[INFO] [stdout] 8 |         let is_end = run(byte_code[iptr], &mut iptr, game);
[INFO] [stdout]   |                          ^^^^^^^^^^^^^^^ move occurs because value has type `models::OpCode`, which does not implement the `Copy` trait
[INFO] [stdout]   |
[INFO] [stdout] help: you can `clone` the value and consume it, but this might not be your desired behavior
[INFO] [stdout]   |
[INFO] [stdout] 8 |         let is_end = run(<models::OpCode as Clone>::clone(&byte_code[iptr]), &mut iptr, game);
[INFO] [stdout]   |                          ++++++++++++++++++++++++++++++++++               +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `branch.handler` which is behind a shared reference
[INFO] [stdout]   --> src/runtime.rs:64:5
[INFO] [stdout]    |
[INFO] [stdout] 64 |     branch.handler
[INFO] [stdout]    |     ^^^^^^^^^^^^^^ move occurs because `branch.handler` has type `models::OpCode`, which does not implement the `Copy` trait
[INFO] [stdout]    |
[INFO] [stdout] help: consider cloning the value if the performance cost is acceptable
[INFO] [stdout]    |
[INFO] [stdout] 64 |     branch.handler.clone()
[INFO] [stdout]    |                   ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: borrow of moved value: `info`
[INFO] [stdout]   --> src/runtime.rs:84:15
[INFO] [stdout]    |
[INFO] [stdout] 81 | fn parse(info: String, game: &Game) -> String {
[INFO] [stdout]    |          ---- move occurs because `info` has type `String`, which does not implement the `Copy` trait
[INFO] [stdout] ...
[INFO] [stdout] 84 |     while i < info.len() {
[INFO] [stdout]    |     ----------^^^^------
[INFO] [stdout]    |     |         |
[INFO] [stdout]    |     |         value borrowed here after move
[INFO] [stdout]    |     inside of this loop
[INFO] [stdout] ...
[INFO] [stdout] 87 |             result += &handle_states(&mut i, info, game);
[INFO] [stdout]    |                                              ---- value moved here, in previous iteration of loop
[INFO] [stdout]    |
[INFO] [stdout] note: consider changing this parameter type in function `handle_states` to borrow instead if owning the value isn't necessary
[INFO] [stdout]   --> src/runtime.rs:99:39
[INFO] [stdout]    |
[INFO] [stdout] 99 | fn handle_states(i: &mut usize, info: String, game: &Game) -> String {
[INFO] [stdout]    |    ------------- in this function     ^^^^^^ this parameter takes ownership of the value
[INFO] [stdout] help: consider moving the expression out of the loop so it is only moved once
[INFO] [stdout]    |
[INFO] [stdout] 84 ~     let mut value = handle_states(&mut i, info, game);
[INFO] [stdout] 85 ~     while i < info.len() {
[INFO] [stdout] 86 |         let letter = info.chars().nth(i).unwrap();
[INFO] [stdout] 87 |         if letter == '$' {
[INFO] [stdout] 88 ~             result += &value;
[INFO] [stdout]    |
[INFO] [stdout] help: consider cloning the value if the performance cost is acceptable
[INFO] [stdout]    |
[INFO] [stdout] 87 |             result += &handle_states(&mut i, info.clone(), game);
[INFO] [stdout]    |                                                  ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0515]: cannot return value referencing function parameter `branches`
[INFO] [stdout]    --> src/runtime.rs:162:5
[INFO] [stdout]     |
[INFO] [stdout] 162 |     branches.get(selection).unwrap()
[INFO] [stdout]     |     --------^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |     |
[INFO] [stdout]     |     returns a value referencing data owned by the current function
[INFO] [stdout]     |     `branches` is borrowed here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/lang.rs:157:13
[INFO] [stdout]     |
[INFO] [stdout] 157 |         let mut letter = self.source.chars().nth(self.index).unwrap();
[INFO] [stdout]     |             ----^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/lang.rs:168:17
[INFO] [stdout]     |
[INFO] [stdout] 168 |             let mut letter = self.source.chars().nth(self.index).unwrap();
[INFO] [stdout]     |                 ----^^^^^^
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0596]: cannot borrow `identifier` as mutable, as it is not declared as mutable
[INFO] [stdout]    --> src/lang.rs:163:13
[INFO] [stdout]     |
[INFO] [stdout] 163 |             identifier.write_char(letter).unwrap();
[INFO] [stdout]     |             ^^^^^^^^^^ cannot borrow as mutable
[INFO] [stdout]     |
[INFO] [stdout] help: consider changing this to be mutable
[INFO] [stdout]     |
[INFO] [stdout] 155 |         let mut identifier = String::new();
[INFO] [stdout]     |             +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `letter`
[INFO] [stdout]    --> src/lang.rs:168:17
[INFO] [stdout]     |
[INFO] [stdout] 168 |             let mut letter = self.source.chars().nth(self.index).unwrap();
[INFO] [stdout]     |                 ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_letter`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `self.curr_token.token_type` as enum variant `Identifier` which is behind a mutable reference
[INFO] [stdout]    --> src/lang.rs:288:52
[INFO] [stdout]     |
[INFO] [stdout] 288 |         if let TokenType::Identifier(identifier) = self.curr_token.token_type {
[INFO] [stdout]     |                                      ----------    ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |                                      |
[INFO] [stdout]     |                                      data moved here because `identifier` has type `String`, which does not implement the `Copy` trait
[INFO] [stdout]     |
[INFO] [stdout] help: consider borrowing the pattern binding
[INFO] [stdout]     |
[INFO] [stdout] 288 |         if let TokenType::Identifier(ref identifier) = self.curr_token.token_type {
[INFO] [stdout]     |                                      +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `self.curr_token.token_type` as enum variant `Identifier` which is behind a mutable reference
[INFO] [stdout]    --> src/lang.rs:335:52
[INFO] [stdout]     |
[INFO] [stdout] 335 |         if let TokenType::Identifier(identifier) = self.curr_token.token_type {
[INFO] [stdout]     |                                      ----------    ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |                                      |
[INFO] [stdout]     |                                      data moved here because `identifier` has type `String`, which does not implement the `Copy` trait
[INFO] [stdout]     |
[INFO] [stdout] help: consider borrowing the pattern binding
[INFO] [stdout]     |
[INFO] [stdout] 335 |         if let TokenType::Identifier(ref identifier) = self.curr_token.token_type {
[INFO] [stdout]     |                                      +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `block_spot`
[INFO] [stdout]    --> src/lang.rs:329:43
[INFO] [stdout]     |
[INFO] [stdout] 329 |     fn expr(&mut self, value_spot: usize, block_spot: usize) -> Result<ExprType, Error> {
[INFO] [stdout]     |                                           ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_spot`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `identifier`
[INFO] [stdout]    --> src/lang.rs:335:38
[INFO] [stdout]     |
[INFO] [stdout] 335 |         if let TokenType::Identifier(identifier) = self.curr_token.token_type {
[INFO] [stdout]     |                                      ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_identifier`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value_spot`
[INFO] [stdout]    --> src/lang.rs:346:24
[INFO] [stdout]     |
[INFO] [stdout] 346 |     fn tell(&mut self, value_spot: usize) -> Result<(), Error> {
[INFO] [stdout]     |                        ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_value_spot`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `self.curr_token.token_type` as enum variant `Identifier` which is behind a mutable reference
[INFO] [stdout]    --> src/lang.rs:402:29
[INFO] [stdout]     |
[INFO] [stdout] 402 |         let save_id = match self.curr_token.token_type {
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 403 |             Identifier(m) => m,
[INFO] [stdout]     |                        - data moved here because `m` has type `String`, which does not implement the `Copy` trait
[INFO] [stdout]     |
[INFO] [stdout] help: consider borrowing the pattern binding
[INFO] [stdout]     |
[INFO] [stdout] 403 |             Identifier(ref m) => m,
[INFO] [stdout]     |                        +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `save_id`
[INFO] [stdout]    --> src/lang.rs:402:13
[INFO] [stdout]     |
[INFO] [stdout] 402 |         let save_id = match self.curr_token.token_type {
[INFO] [stdout]     |             ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_save_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `question`
[INFO] [stdout]    --> src/lang.rs:416:13
[INFO] [stdout]     |
[INFO] [stdout] 416 |         let question = if let StringLiteral(question) = question_token.token_type {
[INFO] [stdout]     |             ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_question`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0382, E0507, E0515, E0596, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rpg-rs` (lib test) due to 12 previous errors; 8 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "12e7147227d88dcaf3f6a799c6a30096f63752365a96f2467c4a3af4d21c15d5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "12e7147227d88dcaf3f6a799c6a30096f63752365a96f2467c4a3af4d21c15d5", kill_on_drop: false }`
[INFO] [stdout] 12e7147227d88dcaf3f6a799c6a30096f63752365a96f2467c4a3af4d21c15d5
