[INFO] fetching crate pyo3 0.14.3... [INFO] checking pyo3-0.14.3 against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] extracting crate pyo3 0.14.3 into /workspace/builds/worker-23/source [INFO] validating manifest of crates.io crate pyo3 0.14.3 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 crates.io crate pyo3 0.14.3 [INFO] finished tweaking crates.io crate pyo3 0.14.3 [INFO] tweaked toml for crates.io crate pyo3 0.14.3 written to /workspace/builds/worker-23/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-23/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-23/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] 2e0ad17f7acda8ef870bfdc425ac7e32fe84e189503fdaaaaee5748bd4e247e4 [INFO] running `Command { std: "docker" "start" "-a" "2e0ad17f7acda8ef870bfdc425ac7e32fe84e189503fdaaaaee5748bd4e247e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2e0ad17f7acda8ef870bfdc425ac7e32fe84e189503fdaaaaee5748bd4e247e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2e0ad17f7acda8ef870bfdc425ac7e32fe84e189503fdaaaaee5748bd4e247e4", kill_on_drop: false }` [INFO] [stdout] 2e0ad17f7acda8ef870bfdc425ac7e32fe84e189503fdaaaaee5748bd4e247e4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-23/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-23/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] 774bb65f425b320d0e3b3ce1322ff31efbda6ef6032f8794efd5302c3044f3f3 [INFO] running `Command { std: "docker" "start" "-a" "774bb65f425b320d0e3b3ce1322ff31efbda6ef6032f8794efd5302c3044f3f3", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Blocking waiting for file lock on package cache [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] syn v1.0.75 (as host dependency): visit [INFO] [stderr] [INFO] [stderr] Compiling semver v1.0.4 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling pyo3-build-config v0.14.3 [INFO] [stderr] Compiling crossbeam-epoch v0.9.5 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling once_cell v1.8.0 [INFO] [stderr] Compiling rayon-core v1.9.1 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Compiling unindent v0.1.7 [INFO] [stderr] Checking plotters-backend v0.3.2 [INFO] [stderr] Checking half v1.7.1 [INFO] [stderr] Compiling trybuild v1.0.45 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Checking glob v0.3.0 [INFO] [stderr] Checking assert_approx_eq v1.1.0 [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Checking instant v0.1.10 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking getrandom v0.1.16 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Compiling paste-impl v0.1.18 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Compiling serde_derive v1.0.128 [INFO] [stderr] Checking lock_api v0.4.4 [INFO] [stderr] Checking paste v0.1.18 [INFO] [stderr] Checking itertools v0.10.1 [INFO] [stderr] Compiling indoc-impl v0.3.6 [INFO] [stderr] Checking plotters-svg v0.3.1 [INFO] [stderr] Checking parking_lot_core v0.8.3 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Checking crossbeam-channel v0.5.1 [INFO] [stderr] Checking csv-core v0.1.10 [INFO] [stderr] Compiling pyo3-macros-backend v0.14.3 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand_xorshift v0.2.0 [INFO] [stderr] Checking parking_lot v0.11.1 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Compiling cast v0.2.7 [INFO] [stderr] Checking plotters v0.3.1 [INFO] [stderr] Compiling pyo3 v0.14.3 (/tmp/fixit) [INFO] [stderr] Migrating build.rs from 2018 edition to 2021 [INFO] [stderr] Checking crossbeam-deque v0.8.1 [INFO] [stderr] Checking indoc v0.3.6 [INFO] [stderr] Checking proptest v0.10.1 [INFO] [stderr] Checking criterion-plot v0.4.4 [INFO] [stderr] Checking serde v1.0.128 [INFO] [stderr] Compiling pyo3-macros v0.14.3 [INFO] [stderr] Migrating src/lib.rs from 2018 edition to 2021 [INFO] [stderr] Checking serde_json v1.0.66 [INFO] [stderr] Checking bstr v0.2.16 [INFO] [stderr] Checking toml v0.5.8 [INFO] [stderr] Checking serde_cbor v0.11.2 [INFO] [stderr] Checking csv v1.1.6 [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Checking criterion v0.3.4 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `pyo3` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/conversion.rs [INFO] [stderr] * src/instance.rs [INFO] [stderr] * src/types/any.rs [INFO] [stderr] * src/types/string.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0107]: this trait takes 0 generic arguments but 1 generic argument was supplied [INFO] [stderr] --> src/conversion.rs:383:15 [INFO] [stderr] | [INFO] [stderr] 383 | <U as PyTryFrom<_>>::try_from(self) [INFO] [stderr] | ^^^^^^^^^--- help: remove these generics [INFO] [stderr] | | [INFO] [stderr] | expected 0 generic arguments [INFO] [stderr] | [INFO] [stderr] note: trait defined here, with 0 generic parameters [INFO] [stderr] --> src/conversion.rs:351:11 [INFO] [stderr] | [INFO] [stderr] 351 | pub trait PyTryFrom<'v>: Sized + PyNativeType { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0107]: this trait takes 0 generic arguments but 1 generic argument was supplied [INFO] [stderr] --> src/instance.rs:858:15 [INFO] [stderr] | [INFO] [stderr] 858 | <D as PyTryFrom<_>>::try_from(unsafe { py.from_borrowed_ptr::<PyAny>(self.as_ptr()) }) [INFO] [stderr] | ^^^^^^^^^--- help: remove these generics [INFO] [stderr] | | [INFO] [stderr] | expected 0 generic arguments [INFO] [stderr] | [INFO] [stderr] note: trait defined here, with 0 generic parameters [INFO] [stderr] --> src/conversion.rs:351:11 [INFO] [stderr] | [INFO] [stderr] 351 | pub trait PyTryFrom<'v>: Sized + PyNativeType { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0107]: this trait takes 0 generic arguments but 1 generic argument was supplied [INFO] [stderr] --> src/types/any.rs:606:15 [INFO] [stderr] | [INFO] [stderr] 606 | <D as PyTryFrom<_>>::try_from(self) [INFO] [stderr] | ^^^^^^^^^--- help: remove these generics [INFO] [stderr] | | [INFO] [stderr] | expected 0 generic arguments [INFO] [stderr] | [INFO] [stderr] note: trait defined here, with 0 generic parameters [INFO] [stderr] --> src/conversion.rs:351:11 [INFO] [stderr] | [INFO] [stderr] 351 | pub trait PyTryFrom<'v>: Sized + PyNativeType { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0107]: this trait takes 0 generic arguments but 1 generic argument was supplied [INFO] [stderr] --> src/types/string.rs:339:30 [INFO] [stderr] | [INFO] [stderr] 339 | let s = <PyString as PyTryFrom<_>>::try_from(obj)?.to_str()?; [INFO] [stderr] | ^^^^^^^^^--- help: remove these generics [INFO] [stderr] | | [INFO] [stderr] | expected 0 generic arguments [INFO] [stderr] | [INFO] [stderr] note: trait defined here, with 0 generic parameters [INFO] [stderr] --> src/conversion.rs:351:11 [INFO] [stderr] | [INFO] [stderr] 351 | pub trait PyTryFrom<'v>: Sized + PyNativeType { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 4 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0107`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: changes to closure capture in Rust 2021 will affect `Sync`, `Send` trait implementation for closure [INFO] [stdout] --> src/buffer.rs:596:26 [INFO] [stdout] | [INFO] [stdout] 596 | Python::with_gil(|_| unsafe { ffi::PyBuffer_Release(&mut *self.0) }); [INFO] [stdout] | ^^^^^^^^^^ ------ in Rust 2018, this closure captures all of `self`, but in Rust 2021, it will only capture `*self.0` [INFO] [stdout] | | [INFO] [stdout] | in Rust 2018, this closure implements `Sync`, `Send` as `self` implements `Sync`, `Send`, but in Rust 2021, this closure will no longer implement `Sync`, `Send` as `*self.0` does not implement `Sync`, `Send` [INFO] [stdout] | [INFO] [stdout] = note: `--force-warn rust-2021-incompatible-closure-captures` implied by `--force-warn rust-2021-compatibility` [INFO] [stdout] = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/disjoint-capture-in-closures.html> [INFO] [stdout] help: add a dummy let to cause `self` to be fully captured [INFO] [stdout] | [INFO] [stdout] 596 | Python::with_gil(|_| { let _ = &self; unsafe { ffi::PyBuffer_Release(&mut *self.0) } }); [INFO] [stdout] | ++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait-associated function `try_from` will become ambiguous in Rust 2021 [INFO] [stdout] --> src/conversion.rs:383:9 [INFO] [stdout] | [INFO] [stdout] 383 | U::try_from(self) [INFO] [stdout] | ^^^^^^^^^^^ help: disambiguate the associated function: `<U as PyTryFrom<_>>::try_from` [INFO] [stdout] | [INFO] [stdout] = note: `--force-warn rust-2021-prelude-collisions` implied by `--force-warn rust-2021-compatibility` [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/prelude.html> [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait-associated function `try_from` will become ambiguous in Rust 2021 [INFO] [stdout] --> src/instance.rs:858:9 [INFO] [stdout] | [INFO] [stdout] 858 | D::try_from(unsafe { py.from_borrowed_ptr::<PyAny>(self.as_ptr()) }) [INFO] [stdout] | ^^^^^^^^^^^ help: disambiguate the associated function: `<D as PyTryFrom<_>>::try_from` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/prelude.html> [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait-associated function `try_from` will become ambiguous in Rust 2021 [INFO] [stdout] --> src/types/any.rs:606:9 [INFO] [stdout] | [INFO] [stdout] 606 | D::try_from(self) [INFO] [stdout] | ^^^^^^^^^^^ help: disambiguate the associated function: `<D as PyTryFrom<_>>::try_from` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/prelude.html> [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait-associated function `try_from` will become ambiguous in Rust 2021 [INFO] [stdout] --> src/types/string.rs:339:17 [INFO] [stdout] | [INFO] [stdout] 339 | let s = PyString::try_from(obj)?.to_str()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: disambiguate the associated function: `<PyString as PyTryFrom<_>>::try_from` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/prelude.html> [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: changes to closure capture in Rust 2021 will affect `Sync`, `Send` trait implementation for closure [INFO] [stdout] --> src/buffer.rs:596:26 [INFO] [stdout] | [INFO] [stdout] 596 | Python::with_gil(|_| unsafe { ffi::PyBuffer_Release(&mut *self.0) }); [INFO] [stdout] | ^^^^^^^^^^ ------ in Rust 2018, this closure captures all of `self`, but in Rust 2021, it will only capture `*self.0` [INFO] [stdout] | | [INFO] [stdout] | in Rust 2018, this closure implements `Sync`, `Send` as `self` implements `Sync`, `Send`, but in Rust 2021, this closure will no longer implement `Sync`, `Send` as `*self.0` does not implement `Sync`, `Send` [INFO] [stdout] | [INFO] [stdout] = note: `--force-warn rust-2021-incompatible-closure-captures` implied by `--force-warn rust-2021-compatibility` [INFO] [stdout] = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/disjoint-capture-in-closures.html> [INFO] [stdout] help: add a dummy let to cause `self` to be fully captured [INFO] [stdout] | [INFO] [stdout] 596 | Python::with_gil(|_| { let _ = &self; unsafe { ffi::PyBuffer_Release(&mut *self.0) } }); [INFO] [stdout] | ++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating tests/test_proc_macro_hygiene.rs from 2018 edition to 2021 [INFO] [stderr] Migrating benches/bench_pyobject.rs from 2018 edition to 2021 [INFO] [stderr] Migrating benches/bench_gil.rs from 2018 edition to 2021 [INFO] [stderr] Migrating tests/test_bytes.rs from 2018 edition to 2021 [INFO] [stderr] Migrating tests/test_dict_iter.rs from 2018 edition to 2021 [INFO] [stderr] Migrating benches/bench_pyclass.rs from 2018 edition to 2021 [INFO] [stderr] Migrating tests/test_string.rs from 2018 edition to 2021 [INFO] [stderr] Migrating benches/bench_err.rs from 2018 edition to 2021 [INFO] [stderr] Migrating tests/test_class_new.rs from 2018 edition to 2021 [INFO] [stderr] Migrating tests/test_buffer.rs from 2018 edition to 2021 [INFO] [stderr] Migrating tests/test_wrap_pyfunction_deduction.rs from 2018 edition to 2021 [INFO] [stderr] Migrating tests/test_inheritance.rs from 2018 edition to 2021 [INFO] [stderr] Migrating tests/test_pyself.rs from 2018 edition to 2021 [INFO] [stderr] Migrating tests/test_compile_error.rs from 2018 edition to 2021 [INFO] [stderr] Migrating tests/test_pyfunction.rs from 2018 edition to 2021 [INFO] [stderr] Migrating benches/bench_dict.rs from 2018 edition to 2021 [INFO] [stderr] Migrating tests/test_exceptions.rs from 2018 edition to 2021 [INFO] [stderr] Migrating tests/test_serde.rs from 2018 edition to 2021 [INFO] [stderr] Migrating benches/bench_tuple.rs from 2018 edition to 2021 [INFO] [stderr] Migrating tests/test_getter_setter.rs from 2018 edition to 2021 [INFO] [stderr] Migrating tests/test_dunder.rs from 2018 edition to 2021 [INFO] [stderr] Migrating tests/test_text_signature.rs from 2018 edition to 2021 [INFO] [stderr] Migrating tests/test_various.rs from 2018 edition to 2021 [INFO] [stderr] Migrating tests/test_frompyobject.rs from 2018 edition to 2021 [INFO] [stderr] Migrating tests/test_arithmetics.rs from 2018 edition to 2021 [INFO] [stderr] Migrating tests/test_macros.rs from 2018 edition to 2021 [INFO] [stderr] Migrating tests/test_class_conversion.rs from 2018 edition to 2021 [INFO] [stderr] Migrating tests/test_module.rs from 2018 edition to 2021 [INFO] [stderr] Migrating tests/test_class_basics.rs from 2018 edition to 2021 [INFO] [stderr] Migrating tests/test_gc.rs from 2018 edition to 2021 [INFO] [stderr] Migrating tests/test_sequence.rs from 2018 edition to 2021 [INFO] [stderr] Migrating tests/test_methods.rs from 2018 edition to 2021 [INFO] [stderr] Migrating benches/bench_list.rs from 2018 edition to 2021 [INFO] [stderr] Migrating benches/bench_set.rs from 2018 edition to 2021 [INFO] [stderr] Migrating tests/test_buffer_protocol.rs from 2018 edition to 2021 [INFO] [stderr] Migrating tests/common.rs from 2018 edition to 2021 [INFO] [stderr] Migrating tests/test_mapping.rs from 2018 edition to 2021 [INFO] [stderr] Migrating tests/test_unsendable_dict.rs from 2018 edition to 2021 [INFO] [stderr] Migrating tests/test_multiple_pymethods.rs from 2018 edition to 2021 [INFO] [stderr] Migrating benches/bench_call.rs from 2018 edition to 2021 [INFO] [stderr] Migrating tests/test_class_attributes.rs from 2018 edition to 2021 [INFO] [stderr] Migrating tests/test_variable_arguments.rs from 2018 edition to 2021 [INFO] [stderr] Migrating tests/test_datetime.rs from 2018 edition to 2021 [INFO] [stdout] warning: trait-associated function `try_from` will become ambiguous in Rust 2021 [INFO] [stdout] --> src/conversion.rs:383:9 [INFO] [stdout] | [INFO] [stdout] 383 | U::try_from(self) [INFO] [stdout] | ^^^^^^^^^^^ help: disambiguate the associated function: `<U as PyTryFrom<_>>::try_from` [INFO] [stdout] | [INFO] [stdout] = note: `--force-warn rust-2021-prelude-collisions` implied by `--force-warn rust-2021-compatibility` [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/prelude.html> [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait-associated function `try_from` will become ambiguous in Rust 2021 [INFO] [stdout] --> src/conversion.rs:559:17 [INFO] [stdout] | [INFO] [stdout] 559 | assert!(PyList::try_from(list).is_ok()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: disambiguate the associated function: `<PyList as PyTryFrom<_>>::try_from` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/prelude.html> [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait-associated function `try_from` will become ambiguous in Rust 2021 [INFO] [stdout] --> src/conversion.rs:560:17 [INFO] [stdout] | [INFO] [stdout] 560 | assert!(PyDict::try_from(dict).is_ok()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: disambiguate the associated function: `<PyDict as PyTryFrom<_>>::try_from` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/prelude.html> [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait-associated function `try_from` will become ambiguous in Rust 2021 [INFO] [stdout] --> src/conversion.rs:562:17 [INFO] [stdout] | [INFO] [stdout] 562 | assert!(PyAny::try_from(list).is_ok()); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: disambiguate the associated function: `<PyAny as PyTryFrom<_>>::try_from` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/prelude.html> [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait-associated function `try_from` will become ambiguous in Rust 2021 [INFO] [stdout] --> src/conversion.rs:563:17 [INFO] [stdout] | [INFO] [stdout] 563 | assert!(PyAny::try_from(dict).is_ok()); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: disambiguate the associated function: `<PyAny as PyTryFrom<_>>::try_from` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/prelude.html> [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait-associated function `try_from` will become ambiguous in Rust 2021 [INFO] [stdout] --> src/instance.rs:858:9 [INFO] [stdout] | [INFO] [stdout] 858 | D::try_from(unsafe { py.from_borrowed_ptr::<PyAny>(self.as_ptr()) }) [INFO] [stdout] | ^^^^^^^^^^^ help: disambiguate the associated function: `<D as PyTryFrom<_>>::try_from` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/prelude.html> [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait-associated function `try_from` will become ambiguous in Rust 2021 [INFO] [stdout] --> src/types/any.rs:606:9 [INFO] [stdout] | [INFO] [stdout] 606 | D::try_from(self) [INFO] [stdout] | ^^^^^^^^^^^ help: disambiguate the associated function: `<D as PyTryFrom<_>>::try_from` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/prelude.html> [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait-associated function `try_from` will become ambiguous in Rust 2021 [INFO] [stdout] --> src/types/iterator.rs:214:33 [INFO] [stdout] | [INFO] [stdout] 214 | let iter: &PyIterator = PyIterator::try_from(obj.as_ref(py)).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: disambiguate the associated function: `<PyIterator as PyTryFrom<_>>::try_from` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/prelude.html> [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait-associated function `try_from` will become ambiguous in Rust 2021 [INFO] [stdout] --> src/types/string.rs:339:17 [INFO] [stdout] | [INFO] [stdout] 339 | let s = PyString::try_from(obj)?.to_str()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: disambiguate the associated function: `<PyString as PyTryFrom<_>>::try_from` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/prelude.html> [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed tests/test_gc.rs (1 fix) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 42.24s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Compiling syn v1.0.75 [INFO] [stderr] Compiling pyo3 v0.14.3 (/tmp/fixit) [INFO] [stderr] Compiling pyo3-macros-backend v0.14.3 [INFO] [stderr] Compiling serde_derive v1.0.128 [INFO] [stderr] Compiling indoc-impl v0.3.6 [INFO] [stderr] Compiling pyo3-macros v0.14.3 [INFO] [stderr] Checking indoc v0.3.6 [INFO] [stdout] warning: the item `TryInto` is imported redundantly [INFO] [stdout] --> src/pycell.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TryInto` is imported redundantly [INFO] [stdout] --> src/pycell.rs:153:13 [INFO] [stdout] | [INFO] [stdout] 153 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/types/string.rs:339:27 [INFO] [stdout] | [INFO] [stdout] 339 | let s = PyString::try_from(obj)?.to_str()?; [INFO] [stdout] | ^^^^^^^^ multiple `try_from` found [INFO] [stdout] | [INFO] [stdout] note: candidate #1 is defined in an impl of the trait `PyTryFrom` for the type `T` [INFO] [stdout] --> src/conversion.rs:394:5 [INFO] [stdout] | [INFO] [stdout] 394 | fn try_from<V: Into<&'v PyAny>>(value: V) -> Result<&'v Self, PyDowncastError<'v>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `TryFrom` for the type `T` [INFO] [stdout] help: disambiguate the associated function for candidate #1 [INFO] [stdout] | [INFO] [stdout] 339 | let s = PyTryFrom::try_from(obj)?.to_str()?; [INFO] [stdout] | ~~~~~~~~~~~ [INFO] [stdout] help: disambiguate the associated function for candidate #2 [INFO] [stdout] | [INFO] [stdout] 339 | let s = TryFrom::try_from(obj)?.to_str()?; [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0034`. [INFO] [stdout] [INFO] [stderr] error: could not compile `pyo3` due to 2 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] [stderr] error: failed to check after updating to 2021 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "774bb65f425b320d0e3b3ce1322ff31efbda6ef6032f8794efd5302c3044f3f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "774bb65f425b320d0e3b3ce1322ff31efbda6ef6032f8794efd5302c3044f3f3", kill_on_drop: false }` [INFO] [stdout] 774bb65f425b320d0e3b3ce1322ff31efbda6ef6032f8794efd5302c3044f3f3