[INFO] cloning repository https://github.com/rzhikharevich/defunct [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rzhikharevich/defunct" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frzhikharevich%2Fdefunct", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frzhikharevich%2Fdefunct'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6dba3193a780bb1fee0da03d660e6f99427e213a [INFO] checking rzhikharevich/defunct against master#b359ccf1b0b7b2d2c1c4932344b806e68bd053a9 for pr-105483 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frzhikharevich%2Fdefunct" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/rzhikharevich/defunct on toolchain b359ccf1b0b7b2d2c1c4932344b806e68bd053a9 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+b359ccf1b0b7b2d2c1c4932344b806e68bd053a9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/rzhikharevich/defunct [INFO] finished tweaking git repo https://github.com/rzhikharevich/defunct [INFO] tweaked toml for git repo https://github.com/rzhikharevich/defunct written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/rzhikharevich/defunct already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+b359ccf1b0b7b2d2c1c4932344b806e68bd053a9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded num-bigint v0.1.40 [INFO] [stderr] Downloaded num-complex v0.1.39 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:bb5b0feb4f87116a4ea905b7ff5bf5b85913db05e9f0fbc1abdd3168928d9075" "/opt/rustwide/cargo-home/bin/cargo" "+b359ccf1b0b7b2d2c1c4932344b806e68bd053a9" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4677f1f9831077f5ee3be43e606ceb3f6f30e7c1466317e1d2e084b44f363f81 [INFO] running `Command { std: "docker" "start" "-a" "4677f1f9831077f5ee3be43e606ceb3f6f30e7c1466317e1d2e084b44f363f81", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4677f1f9831077f5ee3be43e606ceb3f6f30e7c1466317e1d2e084b44f363f81", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4677f1f9831077f5ee3be43e606ceb3f6f30e7c1466317e1d2e084b44f363f81", kill_on_drop: false }` [INFO] [stdout] 4677f1f9831077f5ee3be43e606ceb3f6f30e7c1466317e1d2e084b44f363f81 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:bb5b0feb4f87116a4ea905b7ff5bf5b85913db05e9f0fbc1abdd3168928d9075" "/opt/rustwide/cargo-home/bin/cargo" "+b359ccf1b0b7b2d2c1c4932344b806e68bd053a9" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5455c46bb13f0f22bda9d9b135a4b40d8dd87c3ab6981b3e6bf0dc42e8e540d3 [INFO] running `Command { std: "docker" "start" "-a" "5455c46bb13f0f22bda9d9b135a4b40d8dd87c3ab6981b3e6bf0dc42e8e540d3", kill_on_drop: false }` [INFO] [stderr] Checking num-traits v0.1.40 [INFO] [stderr] Checking rustc-serialize v0.3.24 [INFO] [stderr] Checking libc v0.2.26 [INFO] [stderr] Checking unicode-segmentation v1.2.0 [INFO] [stderr] Checking rand v0.3.15 [INFO] [stderr] Checking num-integer v0.1.35 [INFO] [stderr] Checking num-iter v0.1.34 [INFO] [stderr] Checking num-bigint v0.1.40 [INFO] [stderr] Checking num-complex v0.1.39 [INFO] [stderr] Checking num-rational v0.1.39 [INFO] [stderr] Checking num v0.1.40 [INFO] [stderr] Checking defunct v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused macro definition: `opt_err` [INFO] [stdout] --> src/utils.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | macro_rules! opt_err { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `opt_err` [INFO] [stdout] --> src/utils.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | macro_rules! opt_err { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tok.rs:338:13 [INFO] [stdout] | [INFO] [stdout] 338 | 'a' ... 'z' | 'A' ... 'Z' => true, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tok.rs:338:27 [INFO] [stdout] | [INFO] [stdout] 338 | 'a' ... 'z' | 'A' ... 'Z' => true, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tok.rs:338:13 [INFO] [stdout] | [INFO] [stdout] 338 | 'a' ... 'z' | 'A' ... 'Z' => true, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tok.rs:345:13 [INFO] [stdout] | [INFO] [stdout] 345 | '0' ... '9' => true, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/parser/mod.rs:268:15 [INFO] [stdout] | [INFO] [stdout] 268 | -> Result<(&'a str), ()> [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 268 - -> Result<(&'a str), ()> [INFO] [stdout] 268 + -> Result<&'a str, ()> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tok.rs:338:27 [INFO] [stdout] | [INFO] [stdout] 338 | 'a' ... 'z' | 'A' ... 'Z' => true, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tok.rs:345:13 [INFO] [stdout] | [INFO] [stdout] 345 | '0' ... '9' => true, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/parser/mod.rs:268:15 [INFO] [stdout] | [INFO] [stdout] 268 | -> Result<(&'a str), ()> [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 268 - -> Result<(&'a str), ()> [INFO] [stdout] 268 + -> Result<&'a str, ()> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `errors` [INFO] [stdout] --> src/parser/expr.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | errors: &mut Vec<(Location, Error)>, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_errors` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `errors` [INFO] [stdout] --> src/parser/expr.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | errors: &mut Vec<(Location, Error)>, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_errors` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `StrLit` is never constructed [INFO] [stdout] --> src/tok.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub enum Token<'a> { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 27 | StrLit(Vec>), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Str` and `Esc` are never constructed [INFO] [stdout] --> src/tok.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 72 | pub enum StrLitItem<'a> { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 73 | Str(&'a str), [INFO] [stdout] | ^^^ [INFO] [stdout] 74 | Esc(char), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StrLitItem` 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: associated function `is_error` is never used [INFO] [stdout] --> src/tok.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn is_error(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_ok` is never used [INFO] [stdout] --> src/tok.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn is_ok(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `arg_ids`, `stmts`, and `ret_expr` are never read [INFO] [stdout] --> src/parser/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Fn<'a> { [INFO] [stdout] | -- fields in this struct [INFO] [stdout] 13 | arg_ids: Vec<&'a str>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 14 | stmts: Vec<(Location, Stmt<'a>)>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | ret_expr: (Location, Expr<'a>), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Fn` 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 `operator`, `left`, and `right` are never read [INFO] [stdout] --> src/parser/mod.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct BinOperation<'a> { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 40 | operator: BinOperator, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 41 | left: Expr<'a>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 42 | right: Expr<'a>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinOperation` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Tok` is never constructed [INFO] [stdout] --> src/parser/mod.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 53 | pub enum Error { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] 54 | Expected(&'static [Expectation]), [INFO] [stdout] 55 | Tok(TokErrorInfo), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Lit` is never constructed [INFO] [stdout] --> src/parser/mod.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 69 | pub enum Expectation { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 78 | Lit, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expectation` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `StrLit` is never constructed [INFO] [stdout] --> src/tok.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub enum Token<'a> { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 27 | StrLit(Vec>), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Str` and `Esc` are never constructed [INFO] [stdout] --> src/tok.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 72 | pub enum StrLitItem<'a> { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 73 | Str(&'a str), [INFO] [stdout] | ^^^ [INFO] [stdout] 74 | Esc(char), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StrLitItem` 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: associated function `is_error` is never used [INFO] [stdout] --> src/tok.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn is_error(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_ok` is never used [INFO] [stdout] --> src/tok.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn is_ok(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `arg_ids`, `stmts`, and `ret_expr` are never read [INFO] [stdout] --> src/parser/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Fn<'a> { [INFO] [stdout] | -- fields in this struct [INFO] [stdout] 13 | arg_ids: Vec<&'a str>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 14 | stmts: Vec<(Location, Stmt<'a>)>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | ret_expr: (Location, Expr<'a>), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Fn` 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 `operator`, `left`, and `right` are never read [INFO] [stdout] --> src/parser/mod.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct BinOperation<'a> { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 40 | operator: BinOperator, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 41 | left: Expr<'a>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 42 | right: Expr<'a>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinOperation` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Tok` is never constructed [INFO] [stdout] --> src/parser/mod.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 53 | pub enum Error { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] 54 | Expected(&'static [Expectation]), [INFO] [stdout] 55 | Tok(TokErrorInfo), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Lit` is never constructed [INFO] [stdout] --> src/parser/mod.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 69 | pub enum Expectation { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 78 | Lit, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expectation` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.79s [INFO] running `Command { std: "docker" "inspect" "5455c46bb13f0f22bda9d9b135a4b40d8dd87c3ab6981b3e6bf0dc42e8e540d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5455c46bb13f0f22bda9d9b135a4b40d8dd87c3ab6981b3e6bf0dc42e8e540d3", kill_on_drop: false }` [INFO] [stdout] 5455c46bb13f0f22bda9d9b135a4b40d8dd87c3ab6981b3e6bf0dc42e8e540d3