[INFO] cloning repository https://github.com/qiaojinxia/StanfordCompilers-priciples [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/qiaojinxia/StanfordCompilers-priciples" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqiaojinxia%2FStanfordCompilers-priciples", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqiaojinxia%2FStanfordCompilers-priciples'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6848bb99d35073a3b3e7304f990defbc79916a74 [INFO] building qiaojinxia/StanfordCompilers-priciples 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%2Fqiaojinxia%2FStanfordCompilers-priciples" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/qiaojinxia/StanfordCompilers-priciples 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/qiaojinxia/StanfordCompilers-priciples [INFO] finished tweaking git repo https://github.com/qiaojinxia/StanfordCompilers-priciples [INFO] tweaked toml for git repo https://github.com/qiaojinxia/StanfordCompilers-priciples written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/qiaojinxia/StanfordCompilers-priciples 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] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 76fdb7a00ecf890e0066713e674280f253947d6b667603fedc6fece704f96c61 [INFO] running `Command { std: "docker" "start" "-a" "76fdb7a00ecf890e0066713e674280f253947d6b667603fedc6fece704f96c61", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "76fdb7a00ecf890e0066713e674280f253947d6b667603fedc6fece704f96c61", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "76fdb7a00ecf890e0066713e674280f253947d6b667603fedc6fece704f96c61", kill_on_drop: false }` [INFO] [stdout] 76fdb7a00ecf890e0066713e674280f253947d6b667603fedc6fece704f96c61 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] f9d8422b2d8992825434e2658ccb462c300bc96c2fe756d8e9c3f2058097ab59 [INFO] running `Command { std: "docker" "start" "-a" "f9d8422b2d8992825434e2658ccb462c300bc96c2fe756d8e9c3f2058097ab59", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling StanfordCompilers-priciples v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `ASSIGN`, `ASTERISK`, `MINUS`, `PLUS`, and `SLASH` [INFO] [stdout] --> src/lexers.rs:4:32 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::define::TokenType::{ASSIGN, ASTERISK, EOF, ID, KEYWORDS, LPAREN, MINUS, NUM, PLUS, RPAREN, SEMICOLON, SLASH, LBRACES, RBRACES}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^ ^^^^^ ^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parser` [INFO] [stdout] --> src/parse.rs:109:30 [INFO] [stdout] | [INFO] [stdout] 109 | pub(crate) fn func_parser_if(parser: &mut Parser) -> Option> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_parser` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/ast.rs:109:19 [INFO] [stdout] | [INFO] [stdout] 109 | fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/ast.rs:125:19 [INFO] [stdout] | [INFO] [stdout] 125 | fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/ast.rs:140:19 [INFO] [stdout] | [INFO] [stdout] 140 | fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `curr_token` is never read [INFO] [stdout] --> src/parse.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub(crate) struct TokenScaner { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 10 | scan_token: usize, [INFO] [stdout] 11 | curr_token: usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenScaner` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Strings` is never constructed [INFO] [stdout] --> src/ast.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct Strings { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Strings` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ast.rs:54:19 [INFO] [stdout] | [INFO] [stdout] 53 | impl Strings { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 54 | pub(crate) fn new() -> Strings { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `m_type` and `body` are never read [INFO] [stdout] --> src/ast.rs:104:16 [INFO] [stdout] | [INFO] [stdout] 103 | pub struct ArrayExpress { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 104 | pub(crate) m_type: TokenType, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 105 | pub(crate) body:Vec> [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `m_type` and `body` are never read [INFO] [stdout] --> src/ast.rs:120:16 [INFO] [stdout] | [INFO] [stdout] 119 | pub struct BlockStatement { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 120 | pub(crate) m_type: TokenType, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 121 | pub(crate) body:Vec> [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `test` and `alternate` are never read [INFO] [stdout] --> src/ast.rs:135:16 [INFO] [stdout] | [INFO] [stdout] 134 | pub struct IfStatement{ [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 135 | pub(crate) test:Option>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 136 | pub(crate) alternate:Option>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `MINUS`, `OPERATOR`, and `WHITESPACE` are never constructed [INFO] [stdout] --> src/define.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub enum TokenType { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 35 | MINUS, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | OPERATOR, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | WHITESPACE, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Float` and `Strings` are never constructed [INFO] [stdout] --> src/define.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 101 | pub enum NType { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 104 | Float, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 105 | Strings, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/lexers.rs:79:69 [INFO] [stdout] | [INFO] [stdout] 79 | tokens.push(Token::form(cur_line, NUM, &CODE.clone()[index..lookup - 1])); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/lexers.rs:88:47 [INFO] [stdout] | [INFO] [stdout] 88 | let temp_token = &CODE.clone()[index..lookup - 1]; [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/lexers.rs:103:68 [INFO] [stdout] | [INFO] [stdout] 103 | tokens.push(Token::form(cur_line, ID, &CODE.clone()[index ..lookup -1])); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.16s [INFO] running `Command { std: "docker" "inspect" "f9d8422b2d8992825434e2658ccb462c300bc96c2fe756d8e9c3f2058097ab59", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f9d8422b2d8992825434e2658ccb462c300bc96c2fe756d8e9c3f2058097ab59", kill_on_drop: false }` [INFO] [stdout] f9d8422b2d8992825434e2658ccb462c300bc96c2fe756d8e9c3f2058097ab59 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] a619b52f50d3d4881e2b2e949ce940225a9a900c6667d166ed2cc18a162f7d84 [INFO] running `Command { std: "docker" "start" "-a" "a619b52f50d3d4881e2b2e949ce940225a9a900c6667d166ed2cc18a162f7d84", kill_on_drop: false }` [INFO] [stderr] Compiling StanfordCompilers-priciples v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `ASSIGN`, `ASTERISK`, `MINUS`, `PLUS`, and `SLASH` [INFO] [stdout] --> src/lexers.rs:4:32 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::define::TokenType::{ASSIGN, ASTERISK, EOF, ID, KEYWORDS, LPAREN, MINUS, NUM, PLUS, RPAREN, SEMICOLON, SLASH, LBRACES, RBRACES}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^ ^^^^^ ^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parser` [INFO] [stdout] --> src/parse.rs:109:30 [INFO] [stdout] | [INFO] [stdout] 109 | pub(crate) fn func_parser_if(parser: &mut Parser) -> Option> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_parser` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/ast.rs:109:19 [INFO] [stdout] | [INFO] [stdout] 109 | fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/ast.rs:125:19 [INFO] [stdout] | [INFO] [stdout] 125 | fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/ast.rs:140:19 [INFO] [stdout] | [INFO] [stdout] 140 | fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `curr_token` is never read [INFO] [stdout] --> src/parse.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub(crate) struct TokenScaner { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 10 | scan_token: usize, [INFO] [stdout] 11 | curr_token: usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenScaner` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Strings` is never constructed [INFO] [stdout] --> src/ast.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct Strings { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Strings` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ast.rs:54:19 [INFO] [stdout] | [INFO] [stdout] 53 | impl Strings { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 54 | pub(crate) fn new() -> Strings { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `m_type` and `body` are never read [INFO] [stdout] --> src/ast.rs:104:16 [INFO] [stdout] | [INFO] [stdout] 103 | pub struct ArrayExpress { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 104 | pub(crate) m_type: TokenType, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 105 | pub(crate) body:Vec> [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `m_type` and `body` are never read [INFO] [stdout] --> src/ast.rs:120:16 [INFO] [stdout] | [INFO] [stdout] 119 | pub struct BlockStatement { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 120 | pub(crate) m_type: TokenType, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 121 | pub(crate) body:Vec> [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `test` and `alternate` are never read [INFO] [stdout] --> src/ast.rs:135:16 [INFO] [stdout] | [INFO] [stdout] 134 | pub struct IfStatement{ [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 135 | pub(crate) test:Option>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 136 | pub(crate) alternate:Option>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `MINUS`, `OPERATOR`, and `WHITESPACE` are never constructed [INFO] [stdout] --> src/define.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub enum TokenType { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 35 | MINUS, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | OPERATOR, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | WHITESPACE, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Float` and `Strings` are never constructed [INFO] [stdout] --> src/define.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 101 | pub enum NType { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 104 | Float, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 105 | Strings, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/lexers.rs:79:69 [INFO] [stdout] | [INFO] [stdout] 79 | tokens.push(Token::form(cur_line, NUM, &CODE.clone()[index..lookup - 1])); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/lexers.rs:88:47 [INFO] [stdout] | [INFO] [stdout] 88 | let temp_token = &CODE.clone()[index..lookup - 1]; [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/lexers.rs:103:68 [INFO] [stdout] | [INFO] [stdout] 103 | tokens.push(Token::form(cur_line, ID, &CODE.clone()[index ..lookup -1])); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.34s [INFO] running `Command { std: "docker" "inspect" "a619b52f50d3d4881e2b2e949ce940225a9a900c6667d166ed2cc18a162f7d84", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a619b52f50d3d4881e2b2e949ce940225a9a900c6667d166ed2cc18a162f7d84", kill_on_drop: false }` [INFO] [stdout] a619b52f50d3d4881e2b2e949ce940225a9a900c6667d166ed2cc18a162f7d84