[INFO] cloning repository https://github.com/d3lio/fmi-project-static-code-analyser [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/d3lio/fmi-project-static-code-analyser" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fd3lio%2Ffmi-project-static-code-analyser", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fd3lio%2Ffmi-project-static-code-analyser'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5dae3978439d68622d61d1df62ea67d4b058e724 [INFO] checking d3lio/fmi-project-static-code-analyser/5dae3978439d68622d61d1df62ea67d4b058e724 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fd3lio%2Ffmi-project-static-code-analyser" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/d3lio/fmi-project-static-code-analyser on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/d3lio/fmi-project-static-code-analyser [INFO] finished tweaking git repo https://github.com/d3lio/fmi-project-static-code-analyser [INFO] tweaked toml for git repo https://github.com/d3lio/fmi-project-static-code-analyser written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/d3lio/fmi-project-static-code-analyser 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded lexpar v0.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3cb0bb941088684c56dddf5b19c4acc3bcd5d60ed3fd2cf89766f4c7cb0bf59c [INFO] running `Command { std: "docker" "start" "-a" "3cb0bb941088684c56dddf5b19c4acc3bcd5d60ed3fd2cf89766f4c7cb0bf59c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3cb0bb941088684c56dddf5b19c4acc3bcd5d60ed3fd2cf89766f4c7cb0bf59c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3cb0bb941088684c56dddf5b19c4acc3bcd5d60ed3fd2cf89766f4c7cb0bf59c", kill_on_drop: false }` [INFO] [stdout] 3cb0bb941088684c56dddf5b19c4acc3bcd5d60ed3fd2cf89766f4c7cb0bf59c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b84d0c12d02c9ff494d888217c41910d6f24499fbc013b65493a65b9bbba314a [INFO] running `Command { std: "docker" "start" "-a" "b84d0c12d02c9ff494d888217c41910d6f24499fbc013b65493a65b9bbba314a", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.48 [INFO] [stderr] Compiling memchr v2.1.3 [INFO] [stderr] Compiling regex v0.2.11 [INFO] [stderr] Checking regex-syntax v0.5.6 [INFO] [stderr] Checking aho-corasick v0.6.9 [INFO] [stderr] Checking lexpar v0.1.0 [INFO] [stderr] Checking static_analizer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/parser/mod.rs:173:43 [INFO] [stdout] | [INFO] [stdout] 173 | unsafe { acc.push(::std::mem::uninitialized()) } [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/parser/mod.rs:173:43 [INFO] [stdout] | [INFO] [stdout] 173 | unsafe { acc.push(::std::mem::uninitialized()) } [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `span` are never read [INFO] [stdout] --> src/analyser.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 11 | WrongNumberOfArguments { [INFO] [stdout] | ---------------------- fields in this variant [INFO] [stdout] 12 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 13 | span: Span, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` 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: fields `name` and `span` are never read [INFO] [stdout] --> src/analyser.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 15 | UsingUndefinedVariable { [INFO] [stdout] | ---------------------- fields in this variant [INFO] [stdout] 16 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | span: Span, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `span` are never read [INFO] [stdout] --> src/analyser.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 19 | CallingUndefinedFunction { [INFO] [stdout] | ------------------------ fields in this variant [INFO] [stdout] 20 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 21 | span: Span, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `span` are never read [INFO] [stdout] --> src/analyser.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 23 | UnusedVariable { [INFO] [stdout] | -------------- fields in this variant [INFO] [stdout] 24 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 25 | span: Span, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `span` and `name` are never read [INFO] [stdout] --> src/analyser.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 38 | Fn { [INFO] [stdout] | -- fields in this variant [INFO] [stdout] 39 | span: Span, [INFO] [stdout] | ^^^^ [INFO] [stdout] 40 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Def` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/analyser.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 46 | struct Context { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 47 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Context` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `context` is never read [INFO] [stdout] --> src/analyser.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 88 | pub struct StaticAnalyser { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 89 | errors: Vec, [INFO] [stdout] 90 | context: Rc>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StaticAnalyser` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/parser/ast.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | String(String), [INFO] [stdout] | ------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ast` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 82 | String(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/parser/ast.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 83 | Number(f64), [INFO] [stdout] | ------ ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ast` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 83 | Number(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `span` are never read [INFO] [stdout] --> src/analyser.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 11 | WrongNumberOfArguments { [INFO] [stdout] | ---------------------- fields in this variant [INFO] [stdout] 12 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 13 | span: Span, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` 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: fields `name` and `span` are never read [INFO] [stdout] --> src/analyser.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 15 | UsingUndefinedVariable { [INFO] [stdout] | ---------------------- fields in this variant [INFO] [stdout] 16 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | span: Span, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `span` are never read [INFO] [stdout] --> src/analyser.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 19 | CallingUndefinedFunction { [INFO] [stdout] | ------------------------ fields in this variant [INFO] [stdout] 20 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 21 | span: Span, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `span` are never read [INFO] [stdout] --> src/analyser.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 23 | UnusedVariable { [INFO] [stdout] | -------------- fields in this variant [INFO] [stdout] 24 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 25 | span: Span, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `span` and `name` are never read [INFO] [stdout] --> src/analyser.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 38 | Fn { [INFO] [stdout] | -- fields in this variant [INFO] [stdout] 39 | span: Span, [INFO] [stdout] | ^^^^ [INFO] [stdout] 40 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Def` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/analyser.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 46 | struct Context { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 47 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Context` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `context` is never read [INFO] [stdout] --> src/analyser.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 88 | pub struct StaticAnalyser { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 89 | errors: Vec, [INFO] [stdout] 90 | context: Rc>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StaticAnalyser` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/parser/ast.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | String(String), [INFO] [stdout] | ------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ast` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 82 | String(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/parser/ast.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 83 | Number(f64), [INFO] [stdout] | ------ ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ast` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 83 | Number(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `AstNode` does not permit being left uninitialized [INFO] [stdout] --> src/parser/mod.rs:173:31 [INFO] [stdout] | [INFO] [stdout] 173 | unsafe { acc.push(::std::mem::uninitialized()) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] note: integers must be initialized (in this struct field) [INFO] [stdout] --> src/parser/ast.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub span: Span, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `AstNode` does not permit being left uninitialized [INFO] [stdout] --> src/parser/mod.rs:173:31 [INFO] [stdout] | [INFO] [stdout] 173 | unsafe { acc.push(::std::mem::uninitialized()) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] note: integers must be initialized (in this struct field) [INFO] [stdout] --> src/parser/ast.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub span: Span, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.83s [INFO] running `Command { std: "docker" "inspect" "b84d0c12d02c9ff494d888217c41910d6f24499fbc013b65493a65b9bbba314a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b84d0c12d02c9ff494d888217c41910d6f24499fbc013b65493a65b9bbba314a", kill_on_drop: false }` [INFO] [stdout] b84d0c12d02c9ff494d888217c41910d6f24499fbc013b65493a65b9bbba314a