[INFO] cloning repository https://github.com/esheppa/resolution [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/esheppa/resolution" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fesheppa%2Fresolution", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fesheppa%2Fresolution'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 54cb6c528c7b28255e7e84daa665e71df23cd29e [INFO] checking esheppa/resolution against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fesheppa%2Fresolution" "/workspace/builds/worker-12/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-12/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/esheppa/resolution on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/esheppa/resolution [INFO] finished tweaking git repo https://github.com/esheppa/resolution [INFO] tweaked toml for git repo https://github.com/esheppa/resolution written to /workspace/builds/worker-12/source/Cargo.toml [INFO] crate git repo https://github.com/esheppa/resolution already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 60755130d2f443733a6033b0fded4dc10e1749f5d1cf50f49598f7f2fe1c89a4 [INFO] running `Command { std: "docker" "start" "-a" "60755130d2f443733a6033b0fded4dc10e1749f5d1cf50f49598f7f2fe1c89a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "60755130d2f443733a6033b0fded4dc10e1749f5d1cf50f49598f7f2fe1c89a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "60755130d2f443733a6033b0fded4dc10e1749f5d1cf50f49598f7f2fe1c89a4", kill_on_drop: false }` [INFO] [stdout] 60755130d2f443733a6033b0fded4dc10e1749f5d1cf50f49598f7f2fe1c89a4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c9364289ddf3bcb405f4888f0c29eca7d994a8a09edefc6fec8f23fb38a515b8 [INFO] running `Command { std: "docker" "start" "-a" "c9364289ddf3bcb405f4888f0c29eca7d994a8a09edefc6fec8f23fb38a515b8", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] note: Switching to Edition 2021 will enable the use of the version 2 feature resolver in Cargo. [INFO] [stderr] This may cause some dependencies to be built with fewer features enabled than previously. [INFO] [stderr] More information about the resolver changes may be found at https://doc.rust-lang.org/nightly/edition-guide/rust-2021/default-cargo-resolver.html [INFO] [stderr] When building the following dependencies, the given features will no longer be used: [INFO] [stderr] [INFO] [stderr] log v0.4.14: std [INFO] [stderr] regex v1.5.4 (as host dependency): aho-corasick, default, memchr, perf, perf-cache, perf-dfa, perf-inline, perf-literal, unicode, unicode-age, unicode-bool, unicode-case, unicode-gencat, unicode-script, unicode-segment [INFO] [stderr] regex-syntax v0.6.25 (as host dependency): default, unicode, unicode-age, unicode-bool, unicode-case, unicode-gencat, unicode-script, unicode-segment [INFO] [stderr] [INFO] [stderr] Compiling syn v1.0.72 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking humantime v1.3.0 [INFO] [stderr] Checking env_logger v0.6.2 [INFO] [stderr] Checking num-integer v0.1.44 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling thiserror-impl v1.0.25 [INFO] [stderr] Checking thiserror v1.0.25 [INFO] [stderr] Checking serde v1.0.126 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking serde_json v1.0.64 [INFO] [stderr] Checking chrono-tz v0.5.3 [INFO] [stderr] Checking resolution v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2018 edition to 2021 [INFO] [stdout] error[E0432]: unresolved import `crate::resolution` [INFO] [stdout] --> src/month.rs:111:16 [INFO] [stdout] | [INFO] [stdout] 111 | use crate::resolution::DateResolution; [INFO] [stdout] | ^^^^^^^^^^ could not find `resolution` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `any::TypeId` [INFO] [stdout] --> src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use any::TypeId; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/lib.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | ser::{self, SerializeStruct}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `result` [INFO] [stdout] --> src/lib.rs:7:57 [INFO] [stdout] | [INFO] [stdout] 7 | use std::{any, num, collections, convert::TryFrom, fmt, result}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SerializeStruct` [INFO] [stdout] --> src/minutes.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | ser::{self, SerializeStruct}, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SerializeStruct`, `self` [INFO] [stdout] --> src/date.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | ser::{self, SerializeStruct}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SerializeStruct`, `self` [INFO] [stdout] --> src/month.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | ser::{self, SerializeStruct}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cmp` [INFO] [stdout] --> src/month.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | use std::{str, cmp, convert::TryFrom, fmt}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SerializeStruct`, `self` [INFO] [stdout] --> src/quarter.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | ser::{self, SerializeStruct}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cmp` [INFO] [stdout] --> src/quarter.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | use std::{str, cmp, convert::TryFrom, fmt}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SerializeStruct`, `self` [INFO] [stdout] --> src/year.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | ser::{self, SerializeStruct}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `start` found for struct `month::Month` in the current scope [INFO] [stdout] --> src/month.rs:116:26 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct Month(i64); // number of months +- since 0AD [INFO] [stdout] | ---------------------- method `start` not found for this [INFO] [stdout] ... [INFO] [stdout] 116 | Month(24240).start(), [INFO] [stdout] | ^^^^^ method not found in `month::Month` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | fn start(&self) -> chrono::NaiveDate; [INFO] [stdout] | ----- the method is available for `month::Month` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] `use crate::DateResolution;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `start` found for struct `month::Month` in the current scope [INFO] [stdout] --> src/month.rs:120:26 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct Month(i64); // number of months +- since 0AD [INFO] [stdout] | ---------------------- method `start` not found for this [INFO] [stdout] ... [INFO] [stdout] 120 | Month(24249).start(), [INFO] [stdout] | ^^^^^ method not found in `month::Month` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | fn start(&self) -> chrono::NaiveDate; [INFO] [stdout] | ----- the method is available for `month::Month` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] `use crate::DateResolution;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `start` found for struct `month::Month` in the current scope [INFO] [stdout] --> src/month.rs:123:30 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct Month(i64); // number of months +- since 0AD [INFO] [stdout] | ---------------------- method `start` not found for this [INFO] [stdout] ... [INFO] [stdout] 123 | assert_eq!(Month(15).start(), chrono::NaiveDate::from_ymd(1, 4, 1)); [INFO] [stdout] | ^^^^^ method not found in `month::Month` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | fn start(&self) -> chrono::NaiveDate; [INFO] [stdout] | ----- the method is available for `month::Month` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] `use crate::DateResolution;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `start` found for struct `month::Month` in the current scope [INFO] [stdout] --> src/month.rs:124:29 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct Month(i64); // number of months +- since 0AD [INFO] [stdout] | ---------------------- method `start` not found for this [INFO] [stdout] ... [INFO] [stdout] 124 | assert_eq!(Month(2).start(), chrono::NaiveDate::from_ymd(0, 3, 1)); [INFO] [stdout] | ^^^^^ method not found in `month::Month` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | fn start(&self) -> chrono::NaiveDate; [INFO] [stdout] | ----- the method is available for `month::Month` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] `use crate::DateResolution;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `start` found for struct `month::Month` in the current scope [INFO] [stdout] --> src/month.rs:125:29 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct Month(i64); // number of months +- since 0AD [INFO] [stdout] | ---------------------- method `start` not found for this [INFO] [stdout] ... [INFO] [stdout] 125 | assert_eq!(Month(1).start(), chrono::NaiveDate::from_ymd(0, 2, 1)); [INFO] [stdout] | ^^^^^ method not found in `month::Month` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | fn start(&self) -> chrono::NaiveDate; [INFO] [stdout] | ----- the method is available for `month::Month` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] `use crate::DateResolution;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `start` found for struct `month::Month` in the current scope [INFO] [stdout] --> src/month.rs:126:29 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct Month(i64); // number of months +- since 0AD [INFO] [stdout] | ---------------------- method `start` not found for this [INFO] [stdout] ... [INFO] [stdout] 126 | assert_eq!(Month(0).start(), chrono::NaiveDate::from_ymd(0, 1, 1)); [INFO] [stdout] | ^^^^^ method not found in `month::Month` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | fn start(&self) -> chrono::NaiveDate; [INFO] [stdout] | ----- the method is available for `month::Month` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] `use crate::DateResolution;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `start` found for struct `month::Month` in the current scope [INFO] [stdout] --> src/month.rs:127:30 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct Month(i64); // number of months +- since 0AD [INFO] [stdout] | ---------------------- method `start` not found for this [INFO] [stdout] ... [INFO] [stdout] 127 | assert_eq!(Month(-1).start(), chrono::NaiveDate::from_ymd(-1, 12, 1)); [INFO] [stdout] | ^^^^^ method not found in `month::Month` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | fn start(&self) -> chrono::NaiveDate; [INFO] [stdout] | ----- the method is available for `month::Month` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] `use crate::DateResolution;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `start` found for struct `month::Month` in the current scope [INFO] [stdout] --> src/month.rs:128:30 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct Month(i64); // number of months +- since 0AD [INFO] [stdout] | ---------------------- method `start` not found for this [INFO] [stdout] ... [INFO] [stdout] 128 | assert_eq!(Month(-2).start(), chrono::NaiveDate::from_ymd(-1, 11, 1)); [INFO] [stdout] | ^^^^^ method not found in `month::Month` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | fn start(&self) -> chrono::NaiveDate; [INFO] [stdout] | ----- the method is available for `month::Month` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] `use crate::DateResolution;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `start` found for struct `month::Month` in the current scope [INFO] [stdout] --> src/month.rs:129:31 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct Month(i64); // number of months +- since 0AD [INFO] [stdout] | ---------------------- method `start` not found for this [INFO] [stdout] ... [INFO] [stdout] 129 | assert_eq!(Month(-15).start(), chrono::NaiveDate::from_ymd(-2, 10, 1)); [INFO] [stdout] | ^^^^^ method not found in `month::Month` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | fn start(&self) -> chrono::NaiveDate; [INFO] [stdout] | ----- the method is available for `month::Month` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] `use crate::DateResolution;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SerializeStruct` [INFO] [stdout] --> src/lib.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | ser::{self, SerializeStruct}, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors; 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `resolution` due to 11 previous errors; 11 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] Fixed src/lib.rs (5 fixes) [INFO] [stderr] Fixed src/year.rs (1 fix) [INFO] [stderr] Fixed src/date.rs (1 fix) [INFO] [stderr] Fixed src/minutes.rs (9 fixes) [INFO] [stderr] Fixed src/month.rs (3 fixes) [INFO] [stderr] Fixed src/quarter.rs (3 fixes) [INFO] [stdout] warning: unused import: `any` [INFO] [stdout] --> src/lib.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | use std::{any, num, collections, convert::TryFrom, fmt}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SerializeStruct` [INFO] [stdout] --> src/lib.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | ser::{SerializeStruct}, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "c9364289ddf3bcb405f4888f0c29eca7d994a8a09edefc6fec8f23fb38a515b8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c9364289ddf3bcb405f4888f0c29eca7d994a8a09edefc6fec8f23fb38a515b8", kill_on_drop: false }` [INFO] [stdout] c9364289ddf3bcb405f4888f0c29eca7d994a8a09edefc6fec8f23fb38a515b8