[INFO] cloning repository https://github.com/ModProg/fnscript [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ModProg/fnscript" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FModProg%2Ffnscript", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FModProg%2Ffnscript'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 35332081760d0a3a06745613b0b1b8d584a1d2be [INFO] checking ModProg/fnscript against master#74c3f5a146860c94ff4d179fc3bfa34f879adf41 for pr-120248 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FModProg%2Ffnscript" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ModProg/fnscript on toolchain 74c3f5a146860c94ff4d179fc3bfa34f879adf41 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+74c3f5a146860c94ff4d179fc3bfa34f879adf41" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ModProg/fnscript [INFO] finished tweaking git repo https://github.com/ModProg/fnscript [INFO] tweaked toml for git repo https://github.com/ModProg/fnscript written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ModProg/fnscript 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" "+74c3f5a146860c94ff4d179fc3bfa34f879adf41" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking ModProg/fnscript against try#13cae6066db2d5e6c9bb508caceec8d34ca49980 for pr-120248 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FModProg%2Ffnscript" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ModProg/fnscript on toolchain 13cae6066db2d5e6c9bb508caceec8d34ca49980 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+13cae6066db2d5e6c9bb508caceec8d34ca49980" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ModProg/fnscript [INFO] finished tweaking git repo https://github.com/ModProg/fnscript [INFO] tweaked toml for git repo https://github.com/ModProg/fnscript written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ModProg/fnscript 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" "+13cae6066db2d5e6c9bb508caceec8d34ca49980" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating git repository `https://github.com/ModProg/attribute-derive` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking ModProg/fnscript against try#13cae6066db2d5e6c9bb508caceec8d34ca49980 for pr-120248 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FModProg%2Ffnscript" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ModProg/fnscript on toolchain 13cae6066db2d5e6c9bb508caceec8d34ca49980 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+13cae6066db2d5e6c9bb508caceec8d34ca49980" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ModProg/fnscript [INFO] finished tweaking git repo https://github.com/ModProg/fnscript [INFO] tweaked toml for git repo https://github.com/ModProg/fnscript written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ModProg/fnscript 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" "+13cae6066db2d5e6c9bb508caceec8d34ca49980" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded quote-use v0.5.1 [INFO] [stderr] Downloaded clap_derive v4.0.10 [INFO] [stderr] Downloaded clap v4.0.10 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+13cae6066db2d5e6c9bb508caceec8d34ca49980" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 405f2055ebf54c07507902f1fa4d495d6a6c545086303cc751b887eb2dc4a411 [INFO] running `Command { std: "docker" "start" "-a" "405f2055ebf54c07507902f1fa4d495d6a6c545086303cc751b887eb2dc4a411", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "405f2055ebf54c07507902f1fa4d495d6a6c545086303cc751b887eb2dc4a411", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "405f2055ebf54c07507902f1fa4d495d6a6c545086303cc751b887eb2dc4a411", kill_on_drop: false }` [INFO] [stdout] 405f2055ebf54c07507902f1fa4d495d6a6c545086303cc751b887eb2dc4a411 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+13cae6066db2d5e6c9bb508caceec8d34ca49980" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cee9e97bde88157ae92113d0dc87182395c9a0e838d3dca6d1bdc82bc8d6ca63 [INFO] running `Command { std: "docker" "start" "-a" "cee9e97bde88157ae92113d0dc87182395c9a0e838d3dca6d1bdc82bc8d6ca63", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.43 [INFO] [stderr] Compiling unicode-ident v1.0.3 [INFO] [stderr] Compiling quote v1.0.21 [INFO] [stderr] Compiling syn v1.0.99 [INFO] [stderr] Compiling libc v0.2.134 [INFO] [stderr] Compiling io-lifetimes v0.7.3 [INFO] [stderr] Compiling rustix v0.35.11 [INFO] [stderr] Checking linux-raw-sys v0.0.46 [INFO] [stderr] Checking os_str_bytes v6.3.0 [INFO] [stderr] Compiling anyhow v1.0.63 [INFO] [stderr] Compiling regex-syntax v0.6.27 [INFO] [stderr] Compiling beef v0.5.2 [INFO] [stderr] Checking unicode-xid v0.2.3 [INFO] [stderr] Checking once_cell v1.15.0 [INFO] [stderr] Checking unicode-normalization v0.1.21 [INFO] [stderr] Checking unicode-width v0.1.9 [INFO] [stderr] Checking rustc_lexer v0.1.0 [INFO] [stderr] Checking clap_lex v0.3.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking terminal_size v0.2.1 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling quote-use v0.5.1 [INFO] [stderr] Compiling clap_derive v4.0.10 [INFO] [stderr] Compiling logos-derive v0.12.1 [INFO] [stderr] Compiling thiserror-impl v1.0.33 [INFO] [stderr] Compiling getset v0.1.2 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling attribute-derive-macro v0.3.1 (https://github.com/ModProg/attribute-derive#813c49ac) [INFO] [stderr] Checking thiserror v1.0.33 [INFO] [stderr] Compiling attribute-derive v0.3.1 (https://github.com/ModProg/attribute-derive#813c49ac) [INFO] [stderr] Checking logos v0.12.1 [INFO] [stderr] Checking clap v4.0.10 [INFO] [stderr] Compiling fns-macros v0.1.0 (/opt/rustwide/workdir/macros) [INFO] [stderr] Checking fnscript v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `CopyGetters`, `Getters` [INFO] [stdout] --> src/syn/mod.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | use getset::{CopyGetters, Getters}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CopyGetters`, `Getters` [INFO] [stdout] --> src/syn/mod.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | use getset::{CopyGetters, Getters}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 3 arguments but 0 arguments were supplied [INFO] [stdout] --> src/exec/mod.rs:60:29 [INFO] [stdout] | [INFO] [stdout] 60 | globals.try_create() [INFO] [stdout] | ^^^^^^^^^^-- three arguments of type `&str`, `exec::Value`, and `Option` are missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/exec/mod.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn try_create(&mut self, name: &str, value: Value, ty: Option) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ ---------- ------------ ---------------- [INFO] [stdout] help: provide the arguments [INFO] [stdout] | [INFO] [stdout] 60 | globals.try_create(/* &str */, /* exec::Value */, /* Option */) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/exec/mod.rs:60:21 [INFO] [stdout] | [INFO] [stdout] 57 | / if assignment.is_pub() { [INFO] [stdout] 58 | | // TODO this should be verified in linting [INFO] [stdout] 59 | | assert!(assignment.is_let()); [INFO] [stdout] 60 | | globals.try_create() [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^ expected `()`, found `Result<(), Error>` [INFO] [stdout] 61 | | } [INFO] [stdout] | |_________________- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found enum `std::result::Result<(), exec::error::Error>` [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 60 | globals.try_create(); [INFO] [stdout] | + [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 61 | }; [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to return this value [INFO] [stdout] | [INFO] [stdout] 60 | return globals.try_create(); [INFO] [stdout] | ++++++ + [INFO] [stdout] help: use the `?` operator to extract the `std::result::Result<(), exec::error::Error>` value, propagating a `Result::Err` value to the caller [INFO] [stdout] | [INFO] [stdout] 60 | globals.try_create()? [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get` found for mutable reference `&'a mut Variables` in the current scope [INFO] [stdout] --> src/exec/mod.rs:78:22 [INFO] [stdout] | [INFO] [stdout] 77 | / locals [INFO] [stdout] 78 | | .get(ident) [INFO] [stdout] | | -^^^ method not found in `&mut Variables` [INFO] [stdout] | |_____________________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `get`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `SliceIndex` [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 78 | .0.get(ident) [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get` found for mutable reference `&'a mut Variables` in the current scope [INFO] [stdout] --> src/exec/mod.rs:79:41 [INFO] [stdout] | [INFO] [stdout] 79 | .or_else(|| globals.get(ident)) [INFO] [stdout] | ^^^ method not found in `&mut Variables` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `get`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `SliceIndex` [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 79 | .or_else(|| globals.0.get(ident)) [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 3 arguments but 0 arguments were supplied [INFO] [stdout] --> src/exec/mod.rs:60:29 [INFO] [stdout] | [INFO] [stdout] 60 | globals.try_create() [INFO] [stdout] | ^^^^^^^^^^-- three arguments of type `&str`, `exec::Value`, and `Option` are missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/exec/mod.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn try_create(&mut self, name: &str, value: Value, ty: Option) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ ---------- ------------ ---------------- [INFO] [stdout] help: provide the arguments [INFO] [stdout] | [INFO] [stdout] 60 | globals.try_create(/* &str */, /* exec::Value */, /* Option */) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/exec/mod.rs:60:21 [INFO] [stdout] | [INFO] [stdout] 57 | / if assignment.is_pub() { [INFO] [stdout] 58 | | // TODO this should be verified in linting [INFO] [stdout] 59 | | assert!(assignment.is_let()); [INFO] [stdout] 60 | | globals.try_create() [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^ expected `()`, found `Result<(), Error>` [INFO] [stdout] 61 | | } [INFO] [stdout] | |_________________- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found enum `std::result::Result<(), exec::error::Error>` [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 60 | globals.try_create(); [INFO] [stdout] | + [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 61 | }; [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to return this value [INFO] [stdout] | [INFO] [stdout] 60 | return globals.try_create(); [INFO] [stdout] | ++++++ + [INFO] [stdout] help: use the `?` operator to extract the `std::result::Result<(), exec::error::Error>` value, propagating a `Result::Err` value to the caller [INFO] [stdout] | [INFO] [stdout] 60 | globals.try_create()? [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get` found for mutable reference `&'a mut Variables` in the current scope [INFO] [stdout] --> src/exec/mod.rs:78:22 [INFO] [stdout] | [INFO] [stdout] 77 | / locals [INFO] [stdout] 78 | | .get(ident) [INFO] [stdout] | | -^^^ method not found in `&mut Variables` [INFO] [stdout] | |_____________________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `get`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `SliceIndex` [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 78 | .0.get(ident) [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get` found for mutable reference `&'a mut Variables` in the current scope [INFO] [stdout] --> src/exec/mod.rs:79:41 [INFO] [stdout] | [INFO] [stdout] 79 | .or_else(|| globals.get(ident)) [INFO] [stdout] | ^^^ method not found in `&mut Variables` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `get`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `SliceIndex` [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 79 | .or_else(|| globals.0.get(ident)) [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `eq_token` [INFO] [stdout] --> src/syn/expr.rs:661:21 [INFO] [stdout] | [INFO] [stdout] 661 | let eq_token: Token![=] = input.parse()?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_eq_token` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.ty` which is behind a shared reference [INFO] [stdout] --> src/syn/mod.rs:441:9 [INFO] [stdout] | [INFO] [stdout] 441 | self.ty.map(|t| t.1).as_ref() [INFO] [stdout] | ^^^^^^^ ------------ `self.ty` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | help: consider calling `.as_ref()` or `.as_mut()` to borrow the type's contents [INFO] [stdout] | move occurs because `self.ty` has type `Option<(token::Colon, Type)>`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `Option::::map` takes ownership of the receiver `self`, which moves `self.ty` [INFO] [stdout] --> /rustc/13cae6066db2d5e6c9bb508caceec8d34ca49980/library/core/src/option.rs:1067:22 [INFO] [stdout] help: you could `clone` the value and consume it, if the following trait bounds could be satisfied: `token::Colon: Clone` and `Type: Clone` [INFO] [stdout] | [INFO] [stdout] 441 | as Clone>::clone(&self.ty).map(|t| t.1).as_ref() [INFO] [stdout] | ++++++++++++++++++++++++++++++++++++++++++++++++ + [INFO] [stdout] help: consider annotating `token::Colon` with `#[derive(Clone)]` [INFO] [stdout] --> src/syn/token.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 + #[derive(Clone)] [INFO] [stdout] 8 | pub struct $name { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/syn/mod.rs:441:9 [INFO] [stdout] | [INFO] [stdout] 441 | self.ty.map(|t| t.1).as_ref() [INFO] [stdout] | --------------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | returns a value referencing data owned by the current function [INFO] [stdout] | temporary value created here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `eq_token` [INFO] [stdout] --> src/syn/expr.rs:661:21 [INFO] [stdout] | [INFO] [stdout] 661 | let eq_token: Token![=] = input.parse()?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_eq_token` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_value` [INFO] [stdout] --> src/exec/mod.rs:14:22 [INFO] [stdout] | [INFO] [stdout] 14 | if let Some((current_value, current_type)) = self.0.get(name) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_type` [INFO] [stdout] --> src/exec/mod.rs:14:37 [INFO] [stdout] | [INFO] [stdout] 14 | if let Some((current_value, current_type)) = self.0.get(name) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/exec/mod.rs:13:39 [INFO] [stdout] | [INFO] [stdout] 13 | fn try_set(&mut self, name: &str, value: Value, ty: Option) -> Result<()> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> src/exec/mod.rs:13:53 [INFO] [stdout] | [INFO] [stdout] 13 | fn try_set(&mut self, name: &str, value: Value, ty: Option) -> Result<()> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_value` [INFO] [stdout] --> src/exec/mod.rs:21:22 [INFO] [stdout] | [INFO] [stdout] 21 | if let Some((current_value, current_type)) = self.0.get(name) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_type` [INFO] [stdout] --> src/exec/mod.rs:21:37 [INFO] [stdout] | [INFO] [stdout] 21 | if let Some((current_value, current_type)) = self.0.get(name) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/exec/mod.rs:19:42 [INFO] [stdout] | [INFO] [stdout] 19 | fn try_create(&mut self, name: &str, value: Value, ty: Option) -> Result<()> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> src/exec/mod.rs:19:56 [INFO] [stdout] | [INFO] [stdout] 19 | fn try_create(&mut self, name: &str, value: Value, ty: Option) -> Result<()> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors; 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308, E0507, E0515, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.ty` which is behind a shared reference [INFO] [stdout] --> src/syn/mod.rs:441:9 [INFO] [stdout] | [INFO] [stdout] 441 | self.ty.map(|t| t.1).as_ref() [INFO] [stdout] | ^^^^^^^ ------------ `self.ty` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | help: consider calling `.as_ref()` or `.as_mut()` to borrow the type's contents [INFO] [stdout] | move occurs because `self.ty` has type `Option<(token::Colon, Type)>`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `Option::::map` takes ownership of the receiver `self`, which moves `self.ty` [INFO] [stdout] --> /rustc/13cae6066db2d5e6c9bb508caceec8d34ca49980/library/core/src/option.rs:1067:22 [INFO] [stdout] help: you could `clone` the value and consume it, if the following trait bounds could be satisfied: `token::Colon: Clone` and `Type: Clone` [INFO] [stdout] | [INFO] [stdout] 441 | as Clone>::clone(&self.ty).map(|t| t.1).as_ref() [INFO] [stdout] | ++++++++++++++++++++++++++++++++++++++++++++++++ + [INFO] [stdout] help: consider annotating `token::Colon` with `#[derive(Clone)]` [INFO] [stdout] --> src/syn/token.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 + #[derive(Clone)] [INFO] [stdout] 8 | pub struct $name { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/syn/mod.rs:441:9 [INFO] [stdout] | [INFO] [stdout] 441 | self.ty.map(|t| t.1).as_ref() [INFO] [stdout] | --------------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | returns a value referencing data owned by the current function [INFO] [stdout] | temporary value created here [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `fnscript` (lib) due to 7 previous errors; 10 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `current_value` [INFO] [stdout] --> src/exec/mod.rs:14:22 [INFO] [stdout] | [INFO] [stdout] 14 | if let Some((current_value, current_type)) = self.0.get(name) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_type` [INFO] [stdout] --> src/exec/mod.rs:14:37 [INFO] [stdout] | [INFO] [stdout] 14 | if let Some((current_value, current_type)) = self.0.get(name) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/exec/mod.rs:13:39 [INFO] [stdout] | [INFO] [stdout] 13 | fn try_set(&mut self, name: &str, value: Value, ty: Option) -> Result<()> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> src/exec/mod.rs:13:53 [INFO] [stdout] | [INFO] [stdout] 13 | fn try_set(&mut self, name: &str, value: Value, ty: Option) -> Result<()> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_value` [INFO] [stdout] --> src/exec/mod.rs:21:22 [INFO] [stdout] | [INFO] [stdout] 21 | if let Some((current_value, current_type)) = self.0.get(name) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_type` [INFO] [stdout] --> src/exec/mod.rs:21:37 [INFO] [stdout] | [INFO] [stdout] 21 | if let Some((current_value, current_type)) = self.0.get(name) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/exec/mod.rs:19:42 [INFO] [stdout] | [INFO] [stdout] 19 | fn try_create(&mut self, name: &str, value: Value, ty: Option) -> Result<()> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> src/exec/mod.rs:19:56 [INFO] [stdout] | [INFO] [stdout] 19 | fn try_create(&mut self, name: &str, value: Value, ty: Option) -> Result<()> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors; 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308, E0507, E0515, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `fnscript` (lib test) due to 7 previous errors; 10 warnings emitted [INFO] running `Command { std: "docker" "inspect" "cee9e97bde88157ae92113d0dc87182395c9a0e838d3dca6d1bdc82bc8d6ca63", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cee9e97bde88157ae92113d0dc87182395c9a0e838d3dca6d1bdc82bc8d6ca63", kill_on_drop: false }` [INFO] [stdout] cee9e97bde88157ae92113d0dc87182395c9a0e838d3dca6d1bdc82bc8d6ca63