[INFO] cloning repository https://github.com/crate-py/imrc [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/crate-py/imrc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcrate-py%2Fimrc", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcrate-py%2Fimrc'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6f913f6cd0d49d64e0b9500a57179de72bde3da0 [INFO] checking crate-py/imrc against try#84addd32a13fa2d3f62fe5d99031611147b7fb13 for pr-147565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcrate-py%2Fimrc" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/crate-py/imrc [INFO] finished tweaking git repo https://github.com/crate-py/imrc [INFO] tweaked toml for git repo https://github.com/crate-py/imrc written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/crate-py/imrc on toolchain 84addd32a13fa2d3f62fe5d99031611147b7fb13 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+84addd32a13fa2d3f62fe5d99031611147b7fb13" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/crate-py/imrc 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" "+84addd32a13fa2d3f62fe5d99031611147b7fb13" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded pyo3-macros v0.20.1 [INFO] [stderr] Downloaded pyo3-macros-backend v0.20.1 [INFO] [stderr] Downloaded pyo3-build-config v0.20.1 [INFO] [stderr] Downloaded pyo3-ffi v0.20.1 [INFO] [stderr] Downloaded target-lexicon v0.12.6 [INFO] [stderr] Downloaded pyo3 v0.20.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+84addd32a13fa2d3f62fe5d99031611147b7fb13" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 91ebfdc94dd3d766c39d386062482a568e874f3299259edd20114c9489918d46 [INFO] running `Command { std: "docker" "start" "-a" "91ebfdc94dd3d766c39d386062482a568e874f3299259edd20114c9489918d46", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "91ebfdc94dd3d766c39d386062482a568e874f3299259edd20114c9489918d46", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "91ebfdc94dd3d766c39d386062482a568e874f3299259edd20114c9489918d46", kill_on_drop: false }` [INFO] [stdout] 91ebfdc94dd3d766c39d386062482a568e874f3299259edd20114c9489918d46 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+84addd32a13fa2d3f62fe5d99031611147b7fb13" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e357ae2b3d29707fb42e892ce8f33c233bf3556f81961be4fe1a1698e2d399ba [INFO] running `Command { std: "docker" "start" "-a" "e357ae2b3d29707fb42e892ce8f33c233bf3556f81961be4fe1a1698e2d399ba", kill_on_drop: false }` [INFO] [stderr] Compiling target-lexicon v0.12.6 [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling unicode-ident v1.0.6 [INFO] [stderr] Compiling libc v0.2.139 [INFO] [stderr] Compiling lock_api v0.4.9 [INFO] [stderr] Compiling parking_lot_core v0.9.7 [INFO] [stderr] Checking smallvec v1.10.0 [INFO] [stderr] Compiling indoc v2.0.4 [INFO] [stderr] Compiling im-rc v15.1.0 [INFO] [stderr] Checking rand_xoshiro v0.6.0 [INFO] [stderr] Checking unindent v0.2.3 [INFO] [stderr] Checking bitmaps v2.1.0 [INFO] [stderr] Checking sized-chunks v0.6.5 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.38 [INFO] [stderr] Compiling pyo3-build-config v0.20.1 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling pyo3-ffi v0.20.1 [INFO] [stderr] Compiling pyo3 v0.20.1 [INFO] [stderr] Compiling pyo3-macros-backend v0.20.1 [INFO] [stderr] Compiling pyo3-macros v0.20.1 [INFO] [stderr] Checking imrc v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0200]: the trait `AsPyPointer` requires an `unsafe impl` declaration [INFO] [stdout] --> src/lib.rs:42:1 [INFO] [stdout] | [INFO] [stdout] 42 | impl AsPyPointer for Key { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the trait `AsPyPointer` enforces invariants that the compiler can't check. Review the trait documentation and make sure this implementation upholds those invariants before adding the `unsafe` keyword [INFO] [stdout] help: add `unsafe` to this trait implementation [INFO] [stdout] | [INFO] [stdout] 42 | unsafe impl AsPyPointer for Key { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try` [INFO] [stdout] --> src/lib.rs:169:12 [INFO] [stdout] | [INFO] [stdout] 169 | if value.is_instance_of::()? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `bool` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `bool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Key: AsRef` is not satisfied [INFO] [stdout] --> src/lib.rs:87:1 [INFO] [stdout] | [INFO] [stdout] 87 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `AsRef` is not implemented for `Key` [INFO] [stdout] --> src/lib.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | struct Key { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = help: the trait `OkWrap` is implemented for `Result` [INFO] [stdout] = note: required for `&Key` to implement `pyo3::IntoPy>` [INFO] [stdout] = note: 2 redundant requirements hidden [INFO] [stdout] = note: required for `Vec<(&Key, &pyo3::Py)>` to implement `pyo3::IntoPy>` [INFO] [stdout] = note: required for `Vec<(&Key, &pyo3::Py)>` to implement `OkWrap)>>` [INFO] [stdout] = note: this error originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0200]: the trait `AsPyPointer` requires an `unsafe impl` declaration [INFO] [stdout] --> src/lib.rs:42:1 [INFO] [stdout] | [INFO] [stdout] 42 | impl AsPyPointer for Key { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the trait `AsPyPointer` enforces invariants that the compiler can't check. Review the trait documentation and make sure this implementation upholds those invariants before adding the `unsafe` keyword [INFO] [stdout] help: add `unsafe` to this trait implementation [INFO] [stdout] | [INFO] [stdout] 42 | unsafe impl AsPyPointer for Key { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try` [INFO] [stdout] --> src/lib.rs:169:12 [INFO] [stdout] | [INFO] [stdout] 169 | if value.is_instance_of::()? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `bool` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `bool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*k` which is behind a shared reference [INFO] [stdout] --> src/lib.rs:136:17 [INFO] [stdout] | [INFO] [stdout] 136 | k.into_py(py), [INFO] [stdout] | ^ ----------- `*k` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*k` has type `Key`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `into_py` takes ownership of the receiver `self`, which moves `*k` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyo3-0.20.1/src/conversion.rs:165:16 [INFO] [stdout] | [INFO] [stdout] 165 | fn into_py(self, py: Python<'_>) -> T; [INFO] [stdout] | ^^^^ [INFO] [stdout] help: you can `clone` the value and consume it, but this might not be your desired behavior [INFO] [stdout] | [INFO] [stdout] 136 | ::clone(&k).into_py(py), [INFO] [stdout] | +++++++++++++++++++++++ + [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 136 | k.clone().into_py(py), [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Key: AsRef` is not satisfied [INFO] [stdout] --> src/lib.rs:87:1 [INFO] [stdout] | [INFO] [stdout] 87 | #[pymethods] [INFO] [stdout] | ^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `AsRef` is not implemented for `Key` [INFO] [stdout] --> src/lib.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | struct Key { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = help: the trait `OkWrap` is implemented for `Result` [INFO] [stdout] = note: required for `&Key` to implement `pyo3::IntoPy>` [INFO] [stdout] = note: 2 redundant requirements hidden [INFO] [stdout] = note: required for `Vec<(&Key, &pyo3::Py)>` to implement `pyo3::IntoPy>` [INFO] [stdout] = note: required for `Vec<(&Key, &pyo3::Py)>` to implement `OkWrap)>>` [INFO] [stdout] = note: this error originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*k` which is behind a shared reference [INFO] [stdout] --> src/lib.rs:321:13 [INFO] [stdout] | [INFO] [stdout] 321 | k.into_py(py) [INFO] [stdout] | ^ ----------- `*k` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*k` has type `Key`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `into_py` takes ownership of the receiver `self`, which moves `*k` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyo3-0.20.1/src/conversion.rs:165:16 [INFO] [stdout] | [INFO] [stdout] 165 | fn into_py(self, py: Python<'_>) -> T; [INFO] [stdout] | ^^^^ [INFO] [stdout] help: you can `clone` the value and consume it, but this might not be your desired behavior [INFO] [stdout] | [INFO] [stdout] 321 | ::clone(&k).into_py(py) [INFO] [stdout] | +++++++++++++++++++++++ + [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 321 | k.clone().into_py(py) [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0200, E0277, E0507. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0200`. [INFO] [stdout] [INFO] [stderr] error: could not compile `imrc` (lib test) due to 5 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0507]: cannot move out of `*k` which is behind a shared reference [INFO] [stdout] --> src/lib.rs:136:17 [INFO] [stdout] | [INFO] [stdout] 136 | k.into_py(py), [INFO] [stdout] | ^ ----------- `*k` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*k` has type `Key`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `into_py` takes ownership of the receiver `self`, which moves `*k` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyo3-0.20.1/src/conversion.rs:165:16 [INFO] [stdout] | [INFO] [stdout] 165 | fn into_py(self, py: Python<'_>) -> T; [INFO] [stdout] | ^^^^ [INFO] [stdout] help: you can `clone` the value and consume it, but this might not be your desired behavior [INFO] [stdout] | [INFO] [stdout] 136 | ::clone(&k).into_py(py), [INFO] [stdout] | +++++++++++++++++++++++ + [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 136 | k.clone().into_py(py), [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*k` which is behind a shared reference [INFO] [stdout] --> src/lib.rs:321:13 [INFO] [stdout] | [INFO] [stdout] 321 | k.into_py(py) [INFO] [stdout] | ^ ----------- `*k` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*k` has type `Key`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `into_py` takes ownership of the receiver `self`, which moves `*k` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyo3-0.20.1/src/conversion.rs:165:16 [INFO] [stdout] | [INFO] [stdout] 165 | fn into_py(self, py: Python<'_>) -> T; [INFO] [stdout] | ^^^^ [INFO] [stdout] help: you can `clone` the value and consume it, but this might not be your desired behavior [INFO] [stdout] | [INFO] [stdout] 321 | ::clone(&k).into_py(py) [INFO] [stdout] | +++++++++++++++++++++++ + [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 321 | k.clone().into_py(py) [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0200, E0277, E0507. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0200`. [INFO] [stdout] [INFO] [stderr] error: could not compile `imrc` (lib) due to 5 previous errors [INFO] running `Command { std: "docker" "inspect" "e357ae2b3d29707fb42e892ce8f33c233bf3556f81961be4fe1a1698e2d399ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e357ae2b3d29707fb42e892ce8f33c233bf3556f81961be4fe1a1698e2d399ba", kill_on_drop: false }` [INFO] [stdout] e357ae2b3d29707fb42e892ce8f33c233bf3556f81961be4fe1a1698e2d399ba