[INFO] fetching crate lavellang 0.3.0... [INFO] checking lavellang-0.3.0 against try#024378d9203a4009ed73d6db2681b88a8d74ce7a for pr-112160 [INFO] extracting crate lavellang 0.3.0 into /workspace/builds/worker-6-tc2/source [INFO] validating manifest of crates.io crate lavellang 0.3.0 on toolchain 024378d9203a4009ed73d6db2681b88a8d74ce7a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate lavellang 0.3.0 [INFO] finished tweaking crates.io crate lavellang 0.3.0 [INFO] tweaked toml for crates.io crate lavellang 0.3.0 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate crates.io crate lavellang 0.3.0 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" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 76b56b6c40dd276e5c6de95309daf76c455726eb0015541363901023289b517c [INFO] running `Command { std: "docker" "start" "-a" "76b56b6c40dd276e5c6de95309daf76c455726eb0015541363901023289b517c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "76b56b6c40dd276e5c6de95309daf76c455726eb0015541363901023289b517c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "76b56b6c40dd276e5c6de95309daf76c455726eb0015541363901023289b517c", kill_on_drop: false }` [INFO] [stdout] 76b56b6c40dd276e5c6de95309daf76c455726eb0015541363901023289b517c [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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1cc7cd6062b56550cb4fa5302d02ffdbe3ee37beb5c900d5906807da30f47e3b [INFO] running `Command { std: "docker" "start" "-a" "1cc7cd6062b56550cb4fa5302d02ffdbe3ee37beb5c900d5906807da30f47e3b", 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 maybe-uninit v2.0.0 [INFO] [stderr] Compiling libc v0.2.132 [INFO] [stderr] Compiling serde_derive v1.0.143 [INFO] [stderr] Compiling serde v1.0.143 [INFO] [stderr] Checking os_str_bytes v6.3.0 [INFO] [stderr] Checking termcolor v1.1.3 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking textwrap v0.15.0 [INFO] [stderr] Checking evalexpr v8.1.0 [INFO] [stderr] Compiling indexmap v1.9.1 [INFO] [stderr] Checking md5 v0.7.0 [INFO] [stderr] Checking clap_lex v0.2.4 [INFO] [stderr] Checking smallvec v0.6.14 [INFO] [stderr] Checking peek-nth v0.2.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking clap v3.2.17 [INFO] [stderr] Checking lexer v0.1.18 [INFO] [stderr] Checking lavellang v0.3.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Types` [INFO] [stdout] --> src/ast.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::parser::{Types, Var}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Types` [INFO] [stdout] --> src/ast.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::parser::{Types, Var}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/ast.rs:23:34 [INFO] [stdout] | [INFO] [stdout] 23 | if let TokenValue::Identifier(value) = list[0].value() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/ast.rs:29:35 [INFO] [stdout] | [INFO] [stdout] 29 | else if let TokenValue::Number(value) = list[0].value() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `right` [INFO] [stdout] --> src/ast.rs:49:59 [INFO] [stdout] | [INFO] [stdout] 49 | ... if let TokenValue::Number(right) = current_token.value() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_right` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `right` [INFO] [stdout] --> src/ast.rs:61:35 [INFO] [stdout] | [INFO] [stdout] 61 | ... if let TokenValue::Number(right) = current_token.value() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_right` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `right` [INFO] [stdout] --> src/ast.rs:73:59 [INFO] [stdout] | [INFO] [stdout] 73 | ... if let TokenValue::Number(right) = current_token.value() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_right` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `right` [INFO] [stdout] --> src/ast.rs:85:56 [INFO] [stdout] | [INFO] [stdout] 85 | ... if let TokenValue::Number(right) = current_token.value() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_right` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `operator` [INFO] [stdout] --> src/ast.rs:92:35 [INFO] [stdout] | [INFO] [stdout] 92 | else if let TokenValue::Char(operator) = current_token.value() {} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_operator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/ast.rs:93:35 [INFO] [stdout] | [INFO] [stdout] 93 | else if let TokenValue::List(expr) = current_token.value() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error` [INFO] [stdout] --> src/ast.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | Err(error) => panic!("error, to be continued...") [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/ast.rs:23:34 [INFO] [stdout] | [INFO] [stdout] 23 | if let TokenValue::Identifier(value) = list[0].value() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/ast.rs:29:35 [INFO] [stdout] | [INFO] [stdout] 29 | else if let TokenValue::Number(value) = list[0].value() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `right` [INFO] [stdout] --> src/ast.rs:49:59 [INFO] [stdout] | [INFO] [stdout] 49 | ... if let TokenValue::Number(right) = current_token.value() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_right` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `right` [INFO] [stdout] --> src/ast.rs:61:35 [INFO] [stdout] | [INFO] [stdout] 61 | ... if let TokenValue::Number(right) = current_token.value() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_right` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `right` [INFO] [stdout] --> src/ast.rs:73:59 [INFO] [stdout] | [INFO] [stdout] 73 | ... if let TokenValue::Number(right) = current_token.value() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_right` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `right` [INFO] [stdout] --> src/ast.rs:85:56 [INFO] [stdout] | [INFO] [stdout] 85 | ... if let TokenValue::Number(right) = current_token.value() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_right` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `operator` [INFO] [stdout] --> src/ast.rs:92:35 [INFO] [stdout] | [INFO] [stdout] 92 | else if let TokenValue::Char(operator) = current_token.value() {} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_operator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/ast.rs:93:35 [INFO] [stdout] | [INFO] [stdout] 93 | else if let TokenValue::List(expr) = current_token.value() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error` [INFO] [stdout] --> src/ast.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | Err(error) => panic!("error, to be continued...") [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `filename` is never read [INFO] [stdout] --> src/parser.rs:7:2 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Parser<'a> { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 7 | filename: &'a str, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Procedure`, `String`, `Number`, and `None` are never constructed [INFO] [stdout] --> src/parser.rs:15:2 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum Types { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 15 | Procedure, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 16 | String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 17 | Number, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 18 | None, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Types` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/ast.rs:119:17 [INFO] [stdout] | [INFO] [stdout] 119 | self.filename.clone(), [INFO] [stdout] | ^^^^^^^^ unnecessary method 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: `#[deny(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/ast.rs:130:17 [INFO] [stdout] | [INFO] [stdout] 130 | self.filename.clone(), [INFO] [stdout] | ^^^^^^^^ unnecessary method 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] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:38:22 [INFO] [stdout] | [INFO] [stdout] 38 | filename: filename.clone(), [INFO] [stdout] | ^^^^^^^^ unnecessary method 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: field `filename` is never read [INFO] [stdout] --> src/parser.rs:7:2 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Parser<'a> { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 7 | filename: &'a str, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Procedure`, `String`, `Number`, and `None` are never constructed [INFO] [stdout] --> src/parser.rs:15:2 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum Types { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 15 | Procedure, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 16 | String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 17 | Number, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 18 | None, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Types` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/ast.rs:119:17 [INFO] [stdout] | [INFO] [stdout] 119 | self.filename.clone(), [INFO] [stdout] | ^^^^^^^^ unnecessary method 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: `#[deny(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/ast.rs:130:17 [INFO] [stdout] | [INFO] [stdout] 130 | self.filename.clone(), [INFO] [stdout] | ^^^^^^^^ unnecessary method 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] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:38:22 [INFO] [stdout] | [INFO] [stdout] 38 | filename: filename.clone(), [INFO] [stdout] | ^^^^^^^^ unnecessary method 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] error: aborting due to 3 previous errors; 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `lavellang` (bin "lavellang") due to 4 previous errors; 12 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `lavellang` (bin "lavellang" test) due to 4 previous errors; 12 warnings emitted [INFO] running `Command { std: "docker" "inspect" "1cc7cd6062b56550cb4fa5302d02ffdbe3ee37beb5c900d5906807da30f47e3b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1cc7cd6062b56550cb4fa5302d02ffdbe3ee37beb5c900d5906807da30f47e3b", kill_on_drop: false }` [INFO] [stdout] 1cc7cd6062b56550cb4fa5302d02ffdbe3ee37beb5c900d5906807da30f47e3b