[INFO] cloning repository https://github.com/marcopist/pyo3-test [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/marcopist/pyo3-test" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmarcopist%2Fpyo3-test", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmarcopist%2Fpyo3-test'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a9487ee27463f1702a254ee62390a8748d240edd [INFO] checking marcopist/pyo3-test against try#446cb600aa4837dd6c513f14fa0d25a909b177d7 for pr-149195 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmarcopist%2Fpyo3-test" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/marcopist/pyo3-test [INFO] finished tweaking git repo https://github.com/marcopist/pyo3-test [INFO] tweaked toml for git repo https://github.com/marcopist/pyo3-test written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/marcopist/pyo3-test on toolchain 446cb600aa4837dd6c513f14fa0d25a909b177d7 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+446cb600aa4837dd6c513f14fa0d25a909b177d7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/marcopist/pyo3-test 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" "+446cb600aa4837dd6c513f14fa0d25a909b177d7" "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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+446cb600aa4837dd6c513f14fa0d25a909b177d7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 607d004f79d0537133ce52fc314098e544536f3b9fce85fa65975b784915ea2b [INFO] running `Command { std: "docker" "start" "-a" "607d004f79d0537133ce52fc314098e544536f3b9fce85fa65975b784915ea2b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "607d004f79d0537133ce52fc314098e544536f3b9fce85fa65975b784915ea2b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "607d004f79d0537133ce52fc314098e544536f3b9fce85fa65975b784915ea2b", kill_on_drop: false }` [INFO] [stdout] 607d004f79d0537133ce52fc314098e544536f3b9fce85fa65975b784915ea2b [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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+446cb600aa4837dd6c513f14fa0d25a909b177d7" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ead7a4a73ef61773f25d954f519d03af2b12ec84e7a013a54b7e69a17cd0dfb7 [INFO] running `Command { std: "docker" "start" "-a" "ead7a4a73ef61773f25d954f519d03af2b12ec84e7a013a54b7e69a17cd0dfb7", kill_on_drop: false }` [INFO] [stderr] Compiling target-lexicon v0.12.16 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling proc-macro2 v1.0.89 [INFO] [stderr] Compiling memoffset v0.9.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling pyo3-build-config v0.22.6 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.87 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Compiling pyo3-ffi v0.22.6 [INFO] [stderr] Compiling pyo3-macros-backend v0.22.6 [INFO] [stderr] Compiling pyo3 v0.22.6 [INFO] [stderr] Compiling pyo3-macros v0.22.6 [INFO] [stderr] Checking pyo3-test v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0659]: `DateTime` is ambiguous [INFO] [stdout] --> src/datetime.rs:79:24 [INFO] [stdout] | [INFO] [stdout] 79 | let datetime = DateTime::new(2021, 1, 1, 0, 0, 0).unwrap(); [INFO] [stdout] | ^^^^^^^^ ambiguous name [INFO] [stdout] | [INFO] [stdout] = note: ambiguous because of multiple glob imports of a name in the same module [INFO] [stdout] note: `DateTime` could refer to the struct imported here [INFO] [stdout] --> src/datetime.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = help: consider adding an explicit import of `DateTime` to disambiguate [INFO] [stdout] note: `DateTime` could also refer to the struct imported here [INFO] [stdout] --> src/datetime.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = help: consider adding an explicit import of `DateTime` to disambiguate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0659]: `DateTime` is ambiguous [INFO] [stdout] --> src/datetime.rs:91:24 [INFO] [stdout] | [INFO] [stdout] 91 | let datetime = DateTime::from_string("2021-01-01 00:00:00").unwrap(); [INFO] [stdout] | ^^^^^^^^ ambiguous name [INFO] [stdout] | [INFO] [stdout] = note: ambiguous because of multiple glob imports of a name in the same module [INFO] [stdout] note: `DateTime` could refer to the struct imported here [INFO] [stdout] --> src/datetime.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = help: consider adding an explicit import of `DateTime` to disambiguate [INFO] [stdout] note: `DateTime` could also refer to the struct imported here [INFO] [stdout] --> src/datetime.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = help: consider adding an explicit import of `DateTime` to disambiguate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0659]: `DateTime` is ambiguous [INFO] [stdout] --> src/datetime.rs:100:24 [INFO] [stdout] | [INFO] [stdout] 100 | let datetime = DateTime::from_string("2021-01-01").unwrap(); [INFO] [stdout] | ^^^^^^^^ ambiguous name [INFO] [stdout] | [INFO] [stdout] = note: ambiguous because of multiple glob imports of a name in the same module [INFO] [stdout] note: `DateTime` could refer to the struct imported here [INFO] [stdout] --> src/datetime.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = help: consider adding an explicit import of `DateTime` to disambiguate [INFO] [stdout] note: `DateTime` could also refer to the struct imported here [INFO] [stdout] --> src/datetime.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = help: consider adding an explicit import of `DateTime` to disambiguate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0659]: `DateTime` is ambiguous [INFO] [stdout] --> src/datetime.rs:112:24 [INFO] [stdout] | [INFO] [stdout] 112 | let datetime = DateTime::from_string("2021-01-01 00:00:00:00"); [INFO] [stdout] | ^^^^^^^^ ambiguous name [INFO] [stdout] | [INFO] [stdout] = note: ambiguous because of multiple glob imports of a name in the same module [INFO] [stdout] note: `DateTime` could refer to the struct imported here [INFO] [stdout] --> src/datetime.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = help: consider adding an explicit import of `DateTime` to disambiguate [INFO] [stdout] note: `DateTime` could also refer to the struct imported here [INFO] [stdout] --> src/datetime.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = help: consider adding an explicit import of `DateTime` to disambiguate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `datetime` is never read [INFO] [stdout] --> src/datetime.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct DateTime { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 27 | datetime: NaiveDateTime, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new` found for struct `chrono::DateTime` in the current scope [INFO] [stdout] --> src/datetime.rs:79:34 [INFO] [stdout] | [INFO] [stdout] 79 | let datetime = DateTime::new(2021, 1, 1, 0, 0, 0).unwrap(); [INFO] [stdout] | ^^^ function or associated item not found in `chrono::DateTime<_>` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `chrono::DateTime<_>` consider using one of the following associated functions: [INFO] [stdout] chrono::DateTime::::from_naive_utc_and_offset [INFO] [stdout] chrono::DateTime::::from_utc [INFO] [stdout] chrono::DateTime::::from_local [INFO] [stdout] chrono::DateTime::::from_timestamp [INFO] [stdout] and 6 others [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/chrono-0.4.38/src/datetime/mod.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 94 | / pub const fn from_naive_utc_and_offset( [INFO] [stdout] 95 | | datetime: NaiveDateTime, [INFO] [stdout] 96 | | offset: Tz::Offset, [INFO] [stdout] 97 | | ) -> DateTime { [INFO] [stdout] | |_____________________^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn from_utc(datetime: NaiveDateTime, offset: Tz::Offset) -> DateTime { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn from_local(datetime: NaiveDateTime, offset: Tz::Offset) -> DateTime { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 747 | pub const fn from_timestamp(secs: i64, nsecs: u32) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: there is a method `ne` with a similar name, but with different arguments [INFO] [stdout] --> /rustc/446cb600aa4837dd6c513f14fa0d25a909b177d7/library/core/src/cmp.rs:264:4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_string` found for struct `chrono::DateTime` in the current scope [INFO] [stdout] --> src/datetime.rs:91:34 [INFO] [stdout] | [INFO] [stdout] 91 | let datetime = DateTime::from_string("2021-01-01 00:00:00").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ function or associated item not found in `chrono::DateTime<_>` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `chrono::DateTime<_>` consider using one of the following associated functions: [INFO] [stdout] chrono::DateTime::::from_naive_utc_and_offset [INFO] [stdout] chrono::DateTime::::from_utc [INFO] [stdout] chrono::DateTime::::from_local [INFO] [stdout] chrono::DateTime::::from_timestamp [INFO] [stdout] and 6 others [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/chrono-0.4.38/src/datetime/mod.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 94 | / pub const fn from_naive_utc_and_offset( [INFO] [stdout] 95 | | datetime: NaiveDateTime, [INFO] [stdout] 96 | | offset: Tz::Offset, [INFO] [stdout] 97 | | ) -> DateTime { [INFO] [stdout] | |_____________________^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn from_utc(datetime: NaiveDateTime, offset: Tz::Offset) -> DateTime { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn from_local(datetime: NaiveDateTime, offset: Tz::Offset) -> DateTime { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 747 | pub const fn from_timestamp(secs: i64, nsecs: u32) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: there is an associated function `from_str` with a similar name [INFO] [stdout] | [INFO] [stdout] 91 - let datetime = DateTime::from_string("2021-01-01 00:00:00").unwrap(); [INFO] [stdout] 91 + let datetime = DateTime::from_str("2021-01-01 00:00:00").unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_string` found for struct `chrono::DateTime` in the current scope [INFO] [stdout] --> src/datetime.rs:100:34 [INFO] [stdout] | [INFO] [stdout] 100 | let datetime = DateTime::from_string("2021-01-01").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ function or associated item not found in `chrono::DateTime<_>` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `chrono::DateTime<_>` consider using one of the following associated functions: [INFO] [stdout] chrono::DateTime::::from_naive_utc_and_offset [INFO] [stdout] chrono::DateTime::::from_utc [INFO] [stdout] chrono::DateTime::::from_local [INFO] [stdout] chrono::DateTime::::from_timestamp [INFO] [stdout] and 6 others [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/chrono-0.4.38/src/datetime/mod.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 94 | / pub const fn from_naive_utc_and_offset( [INFO] [stdout] 95 | | datetime: NaiveDateTime, [INFO] [stdout] 96 | | offset: Tz::Offset, [INFO] [stdout] 97 | | ) -> DateTime { [INFO] [stdout] | |_____________________^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn from_utc(datetime: NaiveDateTime, offset: Tz::Offset) -> DateTime { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn from_local(datetime: NaiveDateTime, offset: Tz::Offset) -> DateTime { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 747 | pub const fn from_timestamp(secs: i64, nsecs: u32) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: there is an associated function `from_str` with a similar name [INFO] [stdout] | [INFO] [stdout] 100 - let datetime = DateTime::from_string("2021-01-01").unwrap(); [INFO] [stdout] 100 + let datetime = DateTime::from_str("2021-01-01").unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_string` found for struct `chrono::DateTime` in the current scope [INFO] [stdout] --> src/datetime.rs:112:34 [INFO] [stdout] | [INFO] [stdout] 112 | let datetime = DateTime::from_string("2021-01-01 00:00:00:00"); [INFO] [stdout] | ^^^^^^^^^^^ function or associated item not found in `chrono::DateTime<_>` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `chrono::DateTime<_>` consider using one of the following associated functions: [INFO] [stdout] chrono::DateTime::::from_naive_utc_and_offset [INFO] [stdout] chrono::DateTime::::from_utc [INFO] [stdout] chrono::DateTime::::from_local [INFO] [stdout] chrono::DateTime::::from_timestamp [INFO] [stdout] and 6 others [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/chrono-0.4.38/src/datetime/mod.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 94 | / pub const fn from_naive_utc_and_offset( [INFO] [stdout] 95 | | datetime: NaiveDateTime, [INFO] [stdout] 96 | | offset: Tz::Offset, [INFO] [stdout] 97 | | ) -> DateTime { [INFO] [stdout] | |_____________________^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn from_utc(datetime: NaiveDateTime, offset: Tz::Offset) -> DateTime { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn from_local(datetime: NaiveDateTime, offset: Tz::Offset) -> DateTime { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 747 | pub const fn from_timestamp(secs: i64, nsecs: u32) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: there is an associated function `from_str` with a similar name [INFO] [stdout] | [INFO] [stdout] 112 - let datetime = DateTime::from_string("2021-01-01 00:00:00:00"); [INFO] [stdout] 112 + let datetime = DateTime::from_str("2021-01-01 00:00:00:00"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0599, E0659. [INFO] [stdout] [INFO] [stderr] error: could not compile `pyo3-test` (lib test) due to 8 previous errors [INFO] [stdout] For more information about an error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "ead7a4a73ef61773f25d954f519d03af2b12ec84e7a013a54b7e69a17cd0dfb7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ead7a4a73ef61773f25d954f519d03af2b12ec84e7a013a54b7e69a17cd0dfb7", kill_on_drop: false }` [INFO] [stdout] ead7a4a73ef61773f25d954f519d03af2b12ec84e7a013a54b7e69a17cd0dfb7