[INFO] cloning repository https://github.com/Luke-Callaghan23/fscript [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Luke-Callaghan23/fscript" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLuke-Callaghan23%2Ffscript", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLuke-Callaghan23%2Ffscript'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 03693895f979afefd3577b40bb3fcfd67527f493 [INFO] building Luke-Callaghan23/fscript against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLuke-Callaghan23%2Ffscript" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Luke-Callaghan23/fscript on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Luke-Callaghan23/fscript [INFO] finished tweaking git repo https://github.com/Luke-Callaghan23/fscript [INFO] tweaked toml for git repo https://github.com/Luke-Callaghan23/fscript written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Luke-Callaghan23/fscript 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 84c79615da167aa81775dadd76c0c04fd2513fa5e716adeb95907827a30edeef [INFO] running `Command { std: "docker" "start" "-a" "84c79615da167aa81775dadd76c0c04fd2513fa5e716adeb95907827a30edeef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "84c79615da167aa81775dadd76c0c04fd2513fa5e716adeb95907827a30edeef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "84c79615da167aa81775dadd76c0c04fd2513fa5e716adeb95907827a30edeef", kill_on_drop: false }` [INFO] [stdout] 84c79615da167aa81775dadd76c0c04fd2513fa5e716adeb95907827a30edeef [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1902153726e4e3b9e5a89eb811a1593942bff4efdfd2ad05a19ebb6bcb9cd890 [INFO] running `Command { std: "docker" "start" "-a" "1902153726e4e3b9e5a89eb811a1593942bff4efdfd2ad05a19ebb6bcb9cd890", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling once_cell v1.5.2 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling regex-syntax v0.6.22 [INFO] [stderr] Compiling typed-arena v2.0.1 [INFO] [stderr] Compiling itertools v0.10.0 [INFO] [stderr] Compiling thread_local v1.1.3 [INFO] [stderr] Compiling aho-corasick v0.7.15 [INFO] [stderr] Compiling regex v1.4.3 [INFO] [stderr] Compiling fscriptv01 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `CompilationInstructions` and `Info` [INFO] [stdout] --> src/parser/parser.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | CompilationInstructions, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | Info [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `io::write_files::write_all` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use io::write_files::write_all; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CompilationInstructions` [INFO] [stdout] --> src/types.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | CompilationInstructions, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `type_implementations::type_implementations::*` [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use type_implementations::type_implementations::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Info` [INFO] [stdout] --> src/transpiler/implementations/fscript_if.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | Info [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `borrow::Borrow` [INFO] [stdout] --> src/transpiler/implementations/fscript_switch.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{borrow::Borrow, collections::VecDeque}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CompilationInstructions` [INFO] [stdout] --> src/main.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | CompilationInstructions, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/tokenizer/types.rs:278:39 [INFO] [stdout] | [INFO] [stdout] 186 | impl <'a> TokenStream <'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] ... [INFO] [stdout] 278 | pub fn first (&'a self) -> Option<&TokenOrStream<'a>> { [INFO] [stdout] | ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/tokenizer/types.rs:297:37 [INFO] [stdout] | [INFO] [stdout] 186 | impl <'a> TokenStream <'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] ... [INFO] [stdout] 297 | pub fn end (&'a self) -> Option<&TokenOrStream<'a>> { [INFO] [stdout] | ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/tokenizer/types.rs:320:41 [INFO] [stdout] | [INFO] [stdout] 186 | impl <'a> TokenStream <'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] ... [INFO] [stdout] 320 | pub fn current (&'a self) -> Option<&TokenOrStream<'a>> { [INFO] [stdout] | ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/tokenizer/types.rs:411:42 [INFO] [stdout] | [INFO] [stdout] 186 | impl <'a> TokenStream <'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] ... [INFO] [stdout] 411 | pub fn prev (&'a mut self) -> Option<&TokenOrStream<'a>> { [INFO] [stdout] | ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::tokenizer::types::TokenStream` [INFO] [stdout] --> src/tokenizer/traverse_token_stream.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::tokenizer::types::TokenStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::types::TokenOrStream` [INFO] [stdout] --> src/tokenizer/traverse_token_stream.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use super::types::TokenOrStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokenizer::types::TokenStream` [INFO] [stdout] --> src/main.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | use tokenizer::types::TokenStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_stream` [INFO] [stdout] --> src/transpiler/implementations/fscript_if.rs:37:19 [INFO] [stdout] | [INFO] [stdout] 37 | fn parse_if <'a> (token_stream: &'a mut TokenStream<'a>) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_stream` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/transpiler/implementations/fscript_if.rs:42:23 [INFO] [stdout] | [INFO] [stdout] 42 | fn transpile_if <'a> (data: CompilableSection<'a>) -> String{ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `paren_data` [INFO] [stdout] --> src/transpiler/implementations/fscript_switch.rs:108:21 [INFO] [stdout] | [INFO] [stdout] 108 | let paren_data = &data[parens.0+1..parens.1-1]; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_paren_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `curly_data` [INFO] [stdout] --> src/transpiler/implementations/fscript_switch.rs:109:21 [INFO] [stdout] | [INFO] [stdout] 109 | let curly_data = &data[curlies.0+1..curlies.1-1]; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_curly_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tok` [INFO] [stdout] --> src/transpiler/implementations/fscript_switch.rs:115:25 [INFO] [stdout] | [INFO] [stdout] 115 | let tok = stream.current().unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/transpiler/implementations/fscript_switch.rs:139:26 [INFO] [stdout] | [INFO] [stdout] 139 | Err( err ) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/transpiler/implementations/fscript_switch.rs:111:21 [INFO] [stdout] | [INFO] [stdout] 111 | let mut insert_return: VecDeque = VecDeque::new(); [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] warning: unused variable: `token_len` [INFO] [stdout] --> src/tokenizer/tokenizer.rs:329:9 [INFO] [stdout] | [INFO] [stdout] 329 | let token_len = get_token_len(&start_token.token); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transpiled_targets` [INFO] [stdout] --> src/main.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | let transpiled_targets = transpile_all_targets(parsed_target, &compilation_instructions); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transpiled_targets` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_all` is never used [INFO] [stdout] --> src/io/write_files.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn write_all (compiled: Vec) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_single` is never used [INFO] [stdout] --> src/io/write_files.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn write_single (compiled_file: CompilationTarget) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_file` is never used [INFO] [stdout] --> src/io/write_files.rs:61:4 [INFO] [stdout] | [INFO] [stdout] 61 | fn make_file (path: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_to_file` is never used [INFO] [stdout] --> src/io/write_files.rs:75:4 [INFO] [stdout] | [INFO] [stdout] 75 | fn write_to_file (mut file: fs::File, write: String, out_path: &String) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `vanilla_sections` and `compiled_sections` are never read [INFO] [stdout] --> src/types.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 89 | pub struct TranspiledFile <'a> { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 90 | pub size: usize, // size of the raw file [INFO] [stdout] 91 | pub vanilla_sections: Vec<&'a [u8]>, // vector of the sections of vanilla code that will be pasted directly into ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 92 | pub compiled_sections: Vec // vector of the .fjs expressions that will be compiled before being pasted in... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `construct_file` is never used [INFO] [stdout] --> src/transpiler/transpiler.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn construct_file (transpiled: TranspiledFile) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `end` is never read [INFO] [stdout] --> src/transpiler/types.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct CompilationInfo { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 16 | pub end: usize, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `IfInfo` and `None` are never constructed [INFO] [stdout] --> src/transpiler/types.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub enum Info { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 22 | IfInfo ( fscript_if::IfInfo ), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 23 | SwitchInfo ( fscript_switch::SwitchInfo ), [INFO] [stdout] 24 | None [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `comp_type` is never read [INFO] [stdout] --> src/transpiler/types.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct CompilationInstructions { [INFO] [stdout] | ----------------------- field in this struct [INFO] [stdout] 47 | pub comp_type: CompileType, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Lookup` is never used [INFO] [stdout] --> src/tokenizer/token_types.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum Lookup { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Lookup` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `end` and `prev` are never used [INFO] [stdout] --> src/tokenizer/types.rs:297:12 [INFO] [stdout] | [INFO] [stdout] 186 | impl <'a> TokenStream <'a> { [INFO] [stdout] | -------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 297 | pub fn end (&'a self) -> Option<&TokenOrStream<'a>> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 411 | pub fn prev (&'a mut self) -> Option<&TokenOrStream<'a>> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.36s [INFO] running `Command { std: "docker" "inspect" "1902153726e4e3b9e5a89eb811a1593942bff4efdfd2ad05a19ebb6bcb9cd890", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1902153726e4e3b9e5a89eb811a1593942bff4efdfd2ad05a19ebb6bcb9cd890", kill_on_drop: false }` [INFO] [stdout] 1902153726e4e3b9e5a89eb811a1593942bff4efdfd2ad05a19ebb6bcb9cd890 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b7c0272b38a3a850562504b855d9bdde9f4417c54ca37851b19c87e56f2daf8c [INFO] running `Command { std: "docker" "start" "-a" "b7c0272b38a3a850562504b855d9bdde9f4417c54ca37851b19c87e56f2daf8c", kill_on_drop: false }` [INFO] [stderr] Compiling fscriptv01 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `CompilationInstructions` and `Info` [INFO] [stdout] --> src/parser/parser.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | CompilationInstructions, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | Info [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `io::write_files::write_all` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use io::write_files::write_all; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CompilationInstructions` [INFO] [stdout] --> src/types.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | CompilationInstructions, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `type_implementations::type_implementations::*` [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use type_implementations::type_implementations::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Info` [INFO] [stdout] --> src/transpiler/implementations/fscript_if.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | Info [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `borrow::Borrow` [INFO] [stdout] --> src/transpiler/implementations/fscript_switch.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{borrow::Borrow, collections::VecDeque}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CompilationInstructions` [INFO] [stdout] --> src/main.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | CompilationInstructions, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/tokenizer/types.rs:278:39 [INFO] [stdout] | [INFO] [stdout] 186 | impl <'a> TokenStream <'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] ... [INFO] [stdout] 278 | pub fn first (&'a self) -> Option<&TokenOrStream<'a>> { [INFO] [stdout] | ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/tokenizer/types.rs:297:37 [INFO] [stdout] | [INFO] [stdout] 186 | impl <'a> TokenStream <'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] ... [INFO] [stdout] 297 | pub fn end (&'a self) -> Option<&TokenOrStream<'a>> { [INFO] [stdout] | ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/tokenizer/types.rs:320:41 [INFO] [stdout] | [INFO] [stdout] 186 | impl <'a> TokenStream <'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] ... [INFO] [stdout] 320 | pub fn current (&'a self) -> Option<&TokenOrStream<'a>> { [INFO] [stdout] | ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/tokenizer/types.rs:411:42 [INFO] [stdout] | [INFO] [stdout] 186 | impl <'a> TokenStream <'a> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] ... [INFO] [stdout] 411 | pub fn prev (&'a mut self) -> Option<&TokenOrStream<'a>> { [INFO] [stdout] | ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::tokenizer::types::TokenStream` [INFO] [stdout] --> src/tokenizer/traverse_token_stream.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::tokenizer::types::TokenStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::types::TokenOrStream` [INFO] [stdout] --> src/tokenizer/traverse_token_stream.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use super::types::TokenOrStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokenizer::types::TokenStream` [INFO] [stdout] --> src/main.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | use tokenizer::types::TokenStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_stream` [INFO] [stdout] --> src/transpiler/implementations/fscript_if.rs:37:19 [INFO] [stdout] | [INFO] [stdout] 37 | fn parse_if <'a> (token_stream: &'a mut TokenStream<'a>) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_stream` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/transpiler/implementations/fscript_if.rs:42:23 [INFO] [stdout] | [INFO] [stdout] 42 | fn transpile_if <'a> (data: CompilableSection<'a>) -> String{ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `paren_data` [INFO] [stdout] --> src/transpiler/implementations/fscript_switch.rs:108:21 [INFO] [stdout] | [INFO] [stdout] 108 | let paren_data = &data[parens.0+1..parens.1-1]; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_paren_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `curly_data` [INFO] [stdout] --> src/transpiler/implementations/fscript_switch.rs:109:21 [INFO] [stdout] | [INFO] [stdout] 109 | let curly_data = &data[curlies.0+1..curlies.1-1]; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_curly_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tok` [INFO] [stdout] --> src/transpiler/implementations/fscript_switch.rs:115:25 [INFO] [stdout] | [INFO] [stdout] 115 | let tok = stream.current().unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/transpiler/implementations/fscript_switch.rs:139:26 [INFO] [stdout] | [INFO] [stdout] 139 | Err( err ) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/transpiler/implementations/fscript_switch.rs:111:21 [INFO] [stdout] | [INFO] [stdout] 111 | let mut insert_return: VecDeque = VecDeque::new(); [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] warning: unused variable: `token_len` [INFO] [stdout] --> src/tokenizer/tokenizer.rs:329:9 [INFO] [stdout] | [INFO] [stdout] 329 | let token_len = get_token_len(&start_token.token); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transpiled_targets` [INFO] [stdout] --> src/main.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | let transpiled_targets = transpile_all_targets(parsed_target, &compilation_instructions); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transpiled_targets` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_all` is never used [INFO] [stdout] --> src/io/write_files.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn write_all (compiled: Vec) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_single` is never used [INFO] [stdout] --> src/io/write_files.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn write_single (compiled_file: CompilationTarget) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_file` is never used [INFO] [stdout] --> src/io/write_files.rs:61:4 [INFO] [stdout] | [INFO] [stdout] 61 | fn make_file (path: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_to_file` is never used [INFO] [stdout] --> src/io/write_files.rs:75:4 [INFO] [stdout] | [INFO] [stdout] 75 | fn write_to_file (mut file: fs::File, write: String, out_path: &String) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `vanilla_sections` and `compiled_sections` are never read [INFO] [stdout] --> src/types.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 89 | pub struct TranspiledFile <'a> { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 90 | pub size: usize, // size of the raw file [INFO] [stdout] 91 | pub vanilla_sections: Vec<&'a [u8]>, // vector of the sections of vanilla code that will be pasted directly into ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 92 | pub compiled_sections: Vec // vector of the .fjs expressions that will be compiled before being pasted in... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `construct_file` is never used [INFO] [stdout] --> src/transpiler/transpiler.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn construct_file (transpiled: TranspiledFile) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `end` is never read [INFO] [stdout] --> src/transpiler/types.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct CompilationInfo { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 16 | pub end: usize, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `IfInfo` and `None` are never constructed [INFO] [stdout] --> src/transpiler/types.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub enum Info { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 22 | IfInfo ( fscript_if::IfInfo ), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 23 | SwitchInfo ( fscript_switch::SwitchInfo ), [INFO] [stdout] 24 | None [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `comp_type` is never read [INFO] [stdout] --> src/transpiler/types.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct CompilationInstructions { [INFO] [stdout] | ----------------------- field in this struct [INFO] [stdout] 47 | pub comp_type: CompileType, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Lookup` is never used [INFO] [stdout] --> src/tokenizer/token_types.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum Lookup { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Lookup` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `end` and `prev` are never used [INFO] [stdout] --> src/tokenizer/types.rs:297:12 [INFO] [stdout] | [INFO] [stdout] 186 | impl <'a> TokenStream <'a> { [INFO] [stdout] | -------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 297 | pub fn end (&'a self) -> Option<&TokenOrStream<'a>> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 411 | pub fn prev (&'a mut self) -> Option<&TokenOrStream<'a>> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.31s [INFO] running `Command { std: "docker" "inspect" "b7c0272b38a3a850562504b855d9bdde9f4417c54ca37851b19c87e56f2daf8c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b7c0272b38a3a850562504b855d9bdde9f4417c54ca37851b19c87e56f2daf8c", kill_on_drop: false }` [INFO] [stdout] b7c0272b38a3a850562504b855d9bdde9f4417c54ca37851b19c87e56f2daf8c