[INFO] cloning repository https://github.com/mcalawa/jikan [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mcalawa/jikan" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmcalawa%2Fjikan", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmcalawa%2Fjikan'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3e6ec3fccdc83446de3990099c83bf5b291fe73c [INFO] checking mcalawa/jikan against try#024378d9203a4009ed73d6db2681b88a8d74ce7a for pr-112160 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmcalawa%2Fjikan" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mcalawa/jikan 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 git repo https://github.com/mcalawa/jikan [INFO] finished tweaking git repo https://github.com/mcalawa/jikan [INFO] tweaked toml for git repo https://github.com/mcalawa/jikan written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/mcalawa/jikan 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-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 1dff058ac8c0afcedf0c93a7f3d36da540b0ded03e88ae9ac6185056de8a12e9 [INFO] running `Command { std: "docker" "start" "-a" "1dff058ac8c0afcedf0c93a7f3d36da540b0ded03e88ae9ac6185056de8a12e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1dff058ac8c0afcedf0c93a7f3d36da540b0ded03e88ae9ac6185056de8a12e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1dff058ac8c0afcedf0c93a7f3d36da540b0ded03e88ae9ac6185056de8a12e9", kill_on_drop: false }` [INFO] [stdout] 1dff058ac8c0afcedf0c93a7f3d36da540b0ded03e88ae9ac6185056de8a12e9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 03fbeadf3764e4d97910d3c502274f6d523f0356989d70dcf73225c3e6a7a2a3 [INFO] running `Command { std: "docker" "start" "-a" "03fbeadf3764e4d97910d3c502274f6d523f0356989d70dcf73225c3e6a7a2a3", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.5 [INFO] [stderr] Checking libc v0.2.42 [INFO] [stderr] Checking lazy_static v1.0.2 [INFO] [stderr] Checking time v0.1.40 [INFO] [stderr] Checking num-integer v0.1.39 [INFO] [stderr] Checking chrono v0.4.4 [INFO] [stderr] Checking jikan v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/jpn/era.rs:9:19 [INFO] [stdout] | [INFO] [stdout] 9 | '\u{4e00}'...'\u{9faf}' | [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/jpn/era.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 10 | '\u{3400}'...'\u{4dbf}' => 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/jpn/era.rs:9:19 [INFO] [stdout] | [INFO] [stdout] 9 | '\u{4e00}'...'\u{9faf}' | [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/jpn/era.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 10 | '\u{3400}'...'\u{4dbf}' => 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: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/jpn/era.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | / lazy_static! { [INFO] [stdout] 16 | | static ref LUNAR_NEW_YEAR: HashMap = { [INFO] [stdout] 17 | | let mut m = HashMap::new(); [INFO] [stdout] 18 | | m.insert(645, NaiveDate::from_ymd(645, 2, 5)); [INFO] [stdout] ... | [INFO] [stdout] 1721 | | }; [INFO] [stdout] 1722 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/jpn/era.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | / lazy_static! { [INFO] [stdout] 16 | | static ref LUNAR_NEW_YEAR: HashMap = { [INFO] [stdout] 17 | | let mut m = HashMap::new(); [INFO] [stdout] 18 | | m.insert(645, NaiveDate::from_ymd(645, 2, 5)); [INFO] [stdout] ... | [INFO] [stdout] 1721 | | }; [INFO] [stdout] 1722 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/jpn/era.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | / lazy_static! { [INFO] [stdout] 16 | | static ref LUNAR_NEW_YEAR: HashMap = { [INFO] [stdout] 17 | | let mut m = HashMap::new(); [INFO] [stdout] 18 | | m.insert(645, NaiveDate::from_ymd(645, 2, 5)); [INFO] [stdout] ... | [INFO] [stdout] 1721 | | }; [INFO] [stdout] 1722 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/jpn/period.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | / lazy_static! { [INFO] [stdout] 11 | | static ref PERIODS: HashMap<&'static str, Period> = { [INFO] [stdout] 12 | | let mut m = HashMap::new(); [INFO] [stdout] 13 | | m.insert("asuka", Period::new("Asuka jidai", "飛鳥時代", "あすかじだい", "Asuka jidai", "Asuka zidai", "Asuka zidai", "Asuka period" ... [INFO] [stdout] ... | [INFO] [stdout] 164 | | }; [INFO] [stdout] 165 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/jpn/era.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | / lazy_static! { [INFO] [stdout] 16 | | static ref LUNAR_NEW_YEAR: HashMap = { [INFO] [stdout] 17 | | let mut m = HashMap::new(); [INFO] [stdout] 18 | | m.insert(645, NaiveDate::from_ymd(645, 2, 5)); [INFO] [stdout] ... | [INFO] [stdout] 1721 | | }; [INFO] [stdout] 1722 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/jpn/era.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | / lazy_static! { [INFO] [stdout] 16 | | static ref LUNAR_NEW_YEAR: HashMap = { [INFO] [stdout] 17 | | let mut m = HashMap::new(); [INFO] [stdout] 18 | | m.insert(645, NaiveDate::from_ymd(645, 2, 5)); [INFO] [stdout] ... | [INFO] [stdout] 1721 | | }; [INFO] [stdout] 1722 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/jpn/era.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | / lazy_static! { [INFO] [stdout] 16 | | static ref LUNAR_NEW_YEAR: HashMap = { [INFO] [stdout] 17 | | let mut m = HashMap::new(); [INFO] [stdout] 18 | | m.insert(645, NaiveDate::from_ymd(645, 2, 5)); [INFO] [stdout] ... | [INFO] [stdout] 1721 | | }; [INFO] [stdout] 1722 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/jpn/period.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | / lazy_static! { [INFO] [stdout] 11 | | static ref PERIODS: HashMap<&'static str, Period> = { [INFO] [stdout] 12 | | let mut m = HashMap::new(); [INFO] [stdout] 13 | | m.insert("asuka", Period::new("Asuka jidai", "飛鳥時代", "あすかじだい", "Asuka jidai", "Asuka zidai", "Asuka zidai", "Asuka period" ... [INFO] [stdout] ... | [INFO] [stdout] 164 | | }; [INFO] [stdout] 165 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/jpn/era.rs:2053:17 [INFO] [stdout] | [INFO] [stdout] 2053 | let mut y1 = y + i; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/jpn/era.rs:2053:17 [INFO] [stdout] | [INFO] [stdout] 2053 | let mut y1 = y + i; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/jpn/period.rs:212:71 [INFO] [stdout] | [INFO] [stdout] 212 | let period = PERIODS.get(formatted_name.as_str()).unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `Period` does not implement `Clone`, so calling `clone` on `&Period` 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: aborting due to previous error; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `jikan` (lib test) due to 2 previous errors; 7 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/jpn/period.rs:212:71 [INFO] [stdout] | [INFO] [stdout] 212 | let period = PERIODS.get(formatted_name.as_str()).unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `Period` does not implement `Clone`, so calling `clone` on `&Period` 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: aborting due to previous error; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `jikan` (lib) due to 2 previous errors; 7 warnings emitted [INFO] running `Command { std: "docker" "inspect" "03fbeadf3764e4d97910d3c502274f6d523f0356989d70dcf73225c3e6a7a2a3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "03fbeadf3764e4d97910d3c502274f6d523f0356989d70dcf73225c3e6a7a2a3", kill_on_drop: false }` [INFO] [stdout] 03fbeadf3764e4d97910d3c502274f6d523f0356989d70dcf73225c3e6a7a2a3