[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 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342 [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-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [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-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/d3lio/fmi-project-static-code-analyser on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 024fcdb5924d2906544db6b876503701525c27927ddd6b864b81096526d1e303 [INFO] running `Command { std: "docker" "start" "-a" "024fcdb5924d2906544db6b876503701525c27927ddd6b864b81096526d1e303", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "024fcdb5924d2906544db6b876503701525c27927ddd6b864b81096526d1e303", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "024fcdb5924d2906544db6b876503701525c27927ddd6b864b81096526d1e303", kill_on_drop: false }` [INFO] [stdout] 024fcdb5924d2906544db6b876503701525c27927ddd6b864b81096526d1e303 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 652f19da41f07299ab6c4561412f8b94237c4bb8c51aee57fb5d1304150ea991 [INFO] running `Command { std: "docker" "start" "-a" "652f19da41f07299ab6c4561412f8b94237c4bb8c51aee57fb5d1304150ea991", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.48 [INFO] [stderr] Compiling memchr v2.1.3 [INFO] [stderr] Checking cfg-if v0.1.6 [INFO] [stderr] Checking lazy_static v1.2.0 [INFO] [stderr] Compiling regex v0.2.11 [INFO] [stderr] Checking ucd-util v0.1.3 [INFO] [stderr] Checking utf8-ranges v1.0.2 [INFO] [stderr] Checking thread_local v0.3.6 [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(String), [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(f64), [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: 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(String), [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(f64), [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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.63s [INFO] running `Command { std: "docker" "inspect" "652f19da41f07299ab6c4561412f8b94237c4bb8c51aee57fb5d1304150ea991", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "652f19da41f07299ab6c4561412f8b94237c4bb8c51aee57fb5d1304150ea991", kill_on_drop: false }` [INFO] [stdout] 652f19da41f07299ab6c4561412f8b94237c4bb8c51aee57fb5d1304150ea991