[INFO] fetching crate pyo3-asyncio 0.20.0... [INFO] checking pyo3-asyncio-0.20.0 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate pyo3-asyncio 0.20.0 into /workspace/builds/worker-3-tc2/source [INFO] validating manifest of crates.io crate pyo3-asyncio 0.20.0 on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate pyo3-asyncio 0.20.0 [INFO] removed 0 missing examples [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate pyo3-asyncio 0.20.0 [INFO] tweaked toml for crates.io crate pyo3-asyncio 0.20.0 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate crates.io crate pyo3-asyncio 0.20.0 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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5368520ac4f60ebfd2db0b36690dba0eaffc3dc0b93106fe107ddbb009578da4 [INFO] running `Command { std: "docker" "start" "-a" "5368520ac4f60ebfd2db0b36690dba0eaffc3dc0b93106fe107ddbb009578da4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5368520ac4f60ebfd2db0b36690dba0eaffc3dc0b93106fe107ddbb009578da4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5368520ac4f60ebfd2db0b36690dba0eaffc3dc0b93106fe107ddbb009578da4", kill_on_drop: false }` [INFO] [stdout] 5368520ac4f60ebfd2db0b36690dba0eaffc3dc0b93106fe107ddbb009578da4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 552916122f3ba22b5ae9bebcbab2abf2723141532174d6ce0c1b17baff800f80 [INFO] running `Command { std: "docker" "start" "-a" "552916122f3ba22b5ae9bebcbab2abf2723141532174d6ce0c1b17baff800f80", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Fixed Cargo.toml (6 fixes) [INFO] [stderr] Compiling target-lexicon v0.12.11 [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling once_cell v1.18.0 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Compiling libc v0.2.149 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Checking futures-sink v0.3.28 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Checking smallvec v1.11.1 [INFO] [stderr] Checking futures-io v0.3.28 [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Checking unindent v0.2.3 [INFO] [stderr] Compiling indoc v2.0.4 [INFO] [stderr] Compiling pyo3-build-config v0.20.0 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.38 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling pyo3-ffi v0.20.0 [INFO] [stderr] Compiling pyo3 v0.20.0 [INFO] [stderr] Compiling pyo3-macros-backend v0.20.0 [INFO] [stderr] Compiling futures-macro v0.3.28 [INFO] [stderr] Compiling pyo3-macros v0.20.0 [INFO] [stderr] Checking futures-executor v0.3.28 [INFO] [stderr] Checking futures v0.3.28 [INFO] [stderr] Checking pyo3-asyncio v0.20.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `pyo3_asyncio` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/generic.rs [INFO] [stderr] * src/lib.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[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/lib.rs:376:10 [INFO] [stderr] | [INFO] [stderr] 376 | ($x:expr_2021, $module:item) => { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/lib.rs:384:10 [INFO] [stderr] | [INFO] [stderr] 384 | ($x:expr_2021, $y:ident) => { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stderr] --> src/generic.rs:325:32 [INFO] [stderr] | [INFO] [stderr] 325 | fn __call__(&self, future: &PyAny, complete: &PyAny, value: &PyAny) -> PyResult<()> { [INFO] [stderr] | ^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stderr] --> src/generic.rs:325:50 [INFO] [stderr] | [INFO] [stderr] 325 | fn __call__(&self, future: &PyAny, complete: &PyAny, value: &PyAny) -> PyResult<()> { [INFO] [stderr] | ^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stderr] --> src/generic.rs:325:65 [INFO] [stderr] | [INFO] [stderr] 325 | fn __call__(&self, future: &PyAny, complete: &PyAny, value: &PyAny) -> PyResult<()> { [INFO] [stderr] | ^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stderr] --> src/generic.rs:724:37 [INFO] [stderr] | [INFO] [stderr] 724 | pub fn __call__(&mut self, fut: &PyAny) -> PyResult<()> { [INFO] [stderr] | ^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stderr] --> src/generic.rs:1507:34 [INFO] [stderr] | [INFO] [stderr] 1507 | pub fn send(&mut self, item: PyObject) -> PyResult { [INFO] [stderr] | ^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stderr] --> src/lib.rs:530:38 [INFO] [stderr] | [INFO] [stderr] 530 | pub fn __call__(&mut self, task: &PyAny) -> PyResult<()> { [INFO] [stderr] | ^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors; 6 warnings emitted [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0133, E0658. [INFO] [stderr] For more information about an error, try `rustc --explain E0133`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/generic.rs:1286:5 [INFO] [stdout] | [INFO] [stdout] 1286 | gen: &'p PyAny, [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] = note: `--force-warn keyword-idents-2024` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/generic.rs:1292:32 [INFO] [stdout] | [INFO] [stdout] 1292 | let anext = PyObject::from(gen.getattr("__anext__")?); [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/generic.rs:1429:5 [INFO] [stdout] | [INFO] [stdout] 1429 | gen: &'p PyAny, [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/generic.rs:1434:61 [INFO] [stdout] | [INFO] [stdout] 1434 | into_stream_with_locals_v1::(get_current_locals::(gen.py())?, gen) [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/generic.rs:1434:73 [INFO] [stdout] | [INFO] [stdout] 1434 | into_stream_with_locals_v1::(get_current_locals::(gen.py())?, gen) [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/generic.rs:1640:5 [INFO] [stdout] | [INFO] [stdout] 1640 | gen: &'p PyAny, [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/generic.rs:1646:14 [INFO] [stdout] | [INFO] [stdout] 1646 | let py = gen.py(); [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/generic.rs:1668:21 [INFO] [stdout] | [INFO] [stdout] 1668 | gen, [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/generic.rs:1784:5 [INFO] [stdout] | [INFO] [stdout] 1784 | gen: &'p PyAny, [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/generic.rs:1789:61 [INFO] [stdout] | [INFO] [stdout] 1789 | into_stream_with_locals_v2::(get_current_locals::(gen.py())?, gen) [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/generic.rs:1789:73 [INFO] [stdout] | [INFO] [stdout] 1789 | into_stream_with_locals_v2::(get_current_locals::(gen.py())?, gen) [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/lib.rs:376:13 [INFO] [stdout] | [INFO] [stdout] 376 | ($x:expr, $module:item) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 376 | ($x:expr_2021, $module:item) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/lib.rs:384:13 [INFO] [stdout] | [INFO] [stdout] 384 | ($x:expr, $y:ident) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 384 | ($x:expr_2021, $y:ident) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/generic.rs:325:32 [INFO] [stdout] | [INFO] [stdout] 325 | fn __call__(&self, future: &PyAny, complete: &PyAny, value: &PyAny) -> PyResult<()> { [INFO] [stdout] | ^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/generic.rs:325:50 [INFO] [stdout] | [INFO] [stdout] 325 | fn __call__(&self, future: &PyAny, complete: &PyAny, value: &PyAny) -> PyResult<()> { [INFO] [stdout] | ^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/generic.rs:325:65 [INFO] [stdout] | [INFO] [stdout] 325 | fn __call__(&self, future: &PyAny, complete: &PyAny, value: &PyAny) -> PyResult<()> { [INFO] [stdout] | ^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/generic.rs:724:37 [INFO] [stdout] | [INFO] [stdout] 724 | pub fn __call__(&mut self, fut: &PyAny) -> PyResult<()> { [INFO] [stdout] | ^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/generic.rs:1507:34 [INFO] [stdout] | [INFO] [stdout] 1507 | pub fn send(&mut self, item: PyObject) -> PyResult { [INFO] [stdout] | ^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:530:38 [INFO] [stdout] | [INFO] [stdout] 530 | pub fn __call__(&mut self, task: &PyAny) -> PyResult<()> { [INFO] [stdout] | ^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `py_true` is never used [INFO] [stdout] --> src/generic.rs:1437:4 [INFO] [stdout] | [INFO] [stdout] 1437 | fn py_true() -> PyObject { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `py_false` is never used [INFO] [stdout] --> src/generic.rs:1442:4 [INFO] [stdout] | [INFO] [stdout] 1442 | fn py_false() -> PyObject { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GenericSender` is never constructed [INFO] [stdout] --> src/generic.rs:1454:8 [INFO] [stdout] | [INFO] [stdout] 1454 | struct GenericSender [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl futures::Future, pyo3::PyErr>> + std::marker::Send` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/lib.rs:638:15 [INFO] [stdout] | [INFO] [stdout] 638 | ) -> PyResult> + Send> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, these lifetimes are in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/lib.rs:636:13 [INFO] [stdout] | [INFO] [stdout] 636 | locals: &TaskLocals, [INFO] [stdout] | ^ [INFO] [stdout] 637 | awaitable: &PyAny, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 638 | ) -> PyResult> + Send + use<>> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/generic.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 94 | if let Some(locals) = R::get_task_locals() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^-------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/generic.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | } else { [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 94 ~ match R::get_task_locals() { Some(locals) => { [INFO] [stdout] 95 | Ok(locals.event_loop.into_ref(py)) [INFO] [stdout] 96 ~ } _ => { [INFO] [stdout] 97 | get_running_loop(py) [INFO] [stdout] 98 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/generic.rs:107:8 [INFO] [stdout] | [INFO] [stdout] 107 | if let Some(locals) = R::get_task_locals() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^-------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/generic.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 109 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 107 ~ match R::get_task_locals() { Some(locals) => { [INFO] [stdout] 108 | Ok(locals) [INFO] [stdout] 109 ~ } _ => { [INFO] [stdout] 110 | Ok(TaskLocals::with_running_loop(py)?.copy_context(py)?) [INFO] [stdout] 111 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl futures::Future, pyo3::PyErr>> + std::marker::Send` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/generic.rs:456:15 [INFO] [stdout] | [INFO] [stdout] 456 | ) -> PyResult> + Send> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/generic.rs:455:16 [INFO] [stdout] | [INFO] [stdout] 455 | awaitable: &PyAny, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 456 | ) -> PyResult> + Send + use> [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused implementer of `futures::Future` that must be used [INFO] [stdout] --> src/generic.rs:589:5 [INFO] [stdout] | [INFO] [stdout] 589 | / R::spawn(async move { [INFO] [stdout] 590 | | let locals2 = locals.clone(); [INFO] [stdout] 591 | | [INFO] [stdout] 592 | | if let Err(e) = R::spawn(async move { [INFO] [stdout] ... | [INFO] [stdout] 638 | | } [INFO] [stdout] 639 | | }); [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/generic.rs:592:12 [INFO] [stdout] | [INFO] [stdout] 592 | if let Err(e) = R::spawn(async move { [INFO] [stdout] | ____________^ - [INFO] [stdout] | |_________________________| [INFO] [stdout] 593 | || let result = R::scope( [INFO] [stdout] 594 | || locals2.clone(), [INFO] [stdout] 595 | || Cancellable::new_with_cancel_rx(fut, cancel_rx), [INFO] [stdout] ... || [INFO] [stdout] 614 | || }) [INFO] [stdout] 615 | || .await [INFO] [stdout] | ||______________^ this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | |______________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/generic.rs:638:9 [INFO] [stdout] | [INFO] [stdout] 638 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 592 ~ match R::spawn(async move { [INFO] [stdout] 593 | let result = R::scope( [INFO] [stdout] ... [INFO] [stdout] 615 | .await [INFO] [stdout] 616 ~ { Err(e) => { [INFO] [stdout] 617 | if e.is_panic() { [INFO] [stdout] ... [INFO] [stdout] 637 | } [INFO] [stdout] 638 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused implementer of `futures::Future` that must be used [INFO] [stdout] --> src/generic.rs:993:5 [INFO] [stdout] | [INFO] [stdout] 993 | / R::spawn_local(async move { [INFO] [stdout] 994 | | let locals2 = locals.clone(); [INFO] [stdout] 995 | | [INFO] [stdout] 996 | | if let Err(e) = R::spawn_local(async move { [INFO] [stdout] ... | [INFO] [stdout] 1042 | | } [INFO] [stdout] 1043 | | }); [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/generic.rs:996:12 [INFO] [stdout] | [INFO] [stdout] 996 | if let Err(e) = R::spawn_local(async move { [INFO] [stdout] | ____________^ - [INFO] [stdout] | |_________________________| [INFO] [stdout] 997 | || let result = R::scope_local( [INFO] [stdout] 998 | || locals2.clone(), [INFO] [stdout] 999 | || Cancellable::new_with_cancel_rx(fut, cancel_rx), [INFO] [stdout] ... || [INFO] [stdout] 1018 | || }) [INFO] [stdout] 1019 | || .await [INFO] [stdout] | ||______________^ this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | |______________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/generic.rs:1042:9 [INFO] [stdout] | [INFO] [stdout] 1042 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 996 ~ match R::spawn_local(async move { [INFO] [stdout] 997 | let result = R::scope_local( [INFO] [stdout] ... [INFO] [stdout] 1019 | .await [INFO] [stdout] 1020 ~ { Err(e) => { [INFO] [stdout] 1021 | if e.is_panic() { [INFO] [stdout] ... [INFO] [stdout] 1041 | } [INFO] [stdout] 1042 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `pyo3_asyncio` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/generic.rs [INFO] [stderr] * src/lib.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[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/lib.rs:376:10 [INFO] [stderr] | [INFO] [stderr] 376 | ($x:expr_2021, $module:item) => { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/lib.rs:384:10 [INFO] [stderr] | [INFO] [stderr] 384 | ($x:expr_2021, $y:ident) => { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stderr] --> src/generic.rs:325:32 [INFO] [stderr] | [INFO] [stderr] 325 | fn __call__(&self, future: &PyAny, complete: &PyAny, value: &PyAny) -> PyResult<()> { [INFO] [stderr] | ^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stderr] --> src/generic.rs:325:50 [INFO] [stderr] | [INFO] [stderr] 325 | fn __call__(&self, future: &PyAny, complete: &PyAny, value: &PyAny) -> PyResult<()> { [INFO] [stderr] | ^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stderr] --> src/generic.rs:325:65 [INFO] [stderr] | [INFO] [stderr] 325 | fn __call__(&self, future: &PyAny, complete: &PyAny, value: &PyAny) -> PyResult<()> { [INFO] [stderr] | ^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stderr] --> src/generic.rs:724:37 [INFO] [stderr] | [INFO] [stderr] 724 | pub fn __call__(&mut self, fut: &PyAny) -> PyResult<()> { [INFO] [stderr] | ^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stderr] --> src/generic.rs:1507:34 [INFO] [stderr] | [INFO] [stderr] 1507 | pub fn send(&mut self, item: PyObject) -> PyResult { [INFO] [stderr] | ^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stderr] --> src/lib.rs:530:38 [INFO] [stderr] | [INFO] [stderr] 530 | pub fn __call__(&mut self, task: &PyAny) -> PyResult<()> { [INFO] [stderr] | ^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors; 6 warnings emitted [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0133, E0658. [INFO] [stderr] For more information about an error, try `rustc --explain E0133`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/generic.rs:1286:5 [INFO] [stdout] | [INFO] [stdout] 1286 | gen: &'p PyAny, [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] = note: `--force-warn keyword-idents-2024` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/generic.rs:1292:32 [INFO] [stdout] | [INFO] [stdout] 1292 | let anext = PyObject::from(gen.getattr("__anext__")?); [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/generic.rs:1429:5 [INFO] [stdout] | [INFO] [stdout] 1429 | gen: &'p PyAny, [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/generic.rs:1434:61 [INFO] [stdout] | [INFO] [stdout] 1434 | into_stream_with_locals_v1::(get_current_locals::(gen.py())?, gen) [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/generic.rs:1434:73 [INFO] [stdout] | [INFO] [stdout] 1434 | into_stream_with_locals_v1::(get_current_locals::(gen.py())?, gen) [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/generic.rs:1640:5 [INFO] [stdout] | [INFO] [stdout] 1640 | gen: &'p PyAny, [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/generic.rs:1646:14 [INFO] [stdout] | [INFO] [stdout] 1646 | let py = gen.py(); [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/generic.rs:1668:21 [INFO] [stdout] | [INFO] [stdout] 1668 | gen, [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/generic.rs:1784:5 [INFO] [stdout] | [INFO] [stdout] 1784 | gen: &'p PyAny, [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/generic.rs:1789:61 [INFO] [stdout] | [INFO] [stdout] 1789 | into_stream_with_locals_v2::(get_current_locals::(gen.py())?, gen) [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/generic.rs:1789:73 [INFO] [stdout] | [INFO] [stdout] 1789 | into_stream_with_locals_v2::(get_current_locals::(gen.py())?, gen) [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/lib.rs:376:13 [INFO] [stdout] | [INFO] [stdout] 376 | ($x:expr, $module:item) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 376 | ($x:expr_2021, $module:item) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/lib.rs:384:13 [INFO] [stdout] | [INFO] [stdout] 384 | ($x:expr, $y:ident) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 384 | ($x:expr_2021, $y:ident) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/generic.rs:325:32 [INFO] [stdout] | [INFO] [stdout] 325 | fn __call__(&self, future: &PyAny, complete: &PyAny, value: &PyAny) -> PyResult<()> { [INFO] [stdout] | ^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/generic.rs:325:50 [INFO] [stdout] | [INFO] [stdout] 325 | fn __call__(&self, future: &PyAny, complete: &PyAny, value: &PyAny) -> PyResult<()> { [INFO] [stdout] | ^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/generic.rs:325:65 [INFO] [stdout] | [INFO] [stdout] 325 | fn __call__(&self, future: &PyAny, complete: &PyAny, value: &PyAny) -> PyResult<()> { [INFO] [stdout] | ^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/generic.rs:724:37 [INFO] [stdout] | [INFO] [stdout] 724 | pub fn __call__(&mut self, fut: &PyAny) -> PyResult<()> { [INFO] [stdout] | ^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/generic.rs:1507:34 [INFO] [stdout] | [INFO] [stdout] 1507 | pub fn send(&mut self, item: PyObject) -> PyResult { [INFO] [stdout] | ^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:530:38 [INFO] [stdout] | [INFO] [stdout] 530 | pub fn __call__(&mut self, task: &PyAny) -> PyResult<()> { [INFO] [stdout] | ^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `py_true` is never used [INFO] [stdout] --> src/generic.rs:1437:4 [INFO] [stdout] | [INFO] [stdout] 1437 | fn py_true() -> PyObject { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `py_false` is never used [INFO] [stdout] --> src/generic.rs:1442:4 [INFO] [stdout] | [INFO] [stdout] 1442 | fn py_false() -> PyObject { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GenericSender` is never constructed [INFO] [stdout] --> src/generic.rs:1454:8 [INFO] [stdout] | [INFO] [stdout] 1454 | struct GenericSender [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl futures::Future, pyo3::PyErr>> + std::marker::Send` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/lib.rs:638:15 [INFO] [stdout] | [INFO] [stdout] 638 | ) -> PyResult> + Send> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, these lifetimes are in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/lib.rs:636:13 [INFO] [stdout] | [INFO] [stdout] 636 | locals: &TaskLocals, [INFO] [stdout] | ^ [INFO] [stdout] 637 | awaitable: &PyAny, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 638 | ) -> PyResult> + Send + use<>> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/generic.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 94 | if let Some(locals) = R::get_task_locals() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^-------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/generic.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | } else { [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 94 ~ match R::get_task_locals() { Some(locals) => { [INFO] [stdout] 95 | Ok(locals.event_loop.into_ref(py)) [INFO] [stdout] 96 ~ } _ => { [INFO] [stdout] 97 | get_running_loop(py) [INFO] [stdout] 98 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/generic.rs:107:8 [INFO] [stdout] | [INFO] [stdout] 107 | if let Some(locals) = R::get_task_locals() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^-------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/generic.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 109 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 107 ~ match R::get_task_locals() { Some(locals) => { [INFO] [stdout] 108 | Ok(locals) [INFO] [stdout] 109 ~ } _ => { [INFO] [stdout] 110 | Ok(TaskLocals::with_running_loop(py)?.copy_context(py)?) [INFO] [stdout] 111 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl futures::Future, pyo3::PyErr>> + std::marker::Send` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/generic.rs:456:15 [INFO] [stdout] | [INFO] [stdout] 456 | ) -> PyResult> + Send> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/generic.rs:455:16 [INFO] [stdout] | [INFO] [stdout] 455 | awaitable: &PyAny, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 456 | ) -> PyResult> + Send + use> [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused implementer of `futures::Future` that must be used [INFO] [stdout] --> src/generic.rs:589:5 [INFO] [stdout] | [INFO] [stdout] 589 | / R::spawn(async move { [INFO] [stdout] 590 | | let locals2 = locals.clone(); [INFO] [stdout] 591 | | [INFO] [stdout] 592 | | if let Err(e) = R::spawn(async move { [INFO] [stdout] ... | [INFO] [stdout] 638 | | } [INFO] [stdout] 639 | | }); [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/generic.rs:592:12 [INFO] [stdout] | [INFO] [stdout] 592 | if let Err(e) = R::spawn(async move { [INFO] [stdout] | ____________^ - [INFO] [stdout] | |_________________________| [INFO] [stdout] 593 | || let result = R::scope( [INFO] [stdout] 594 | || locals2.clone(), [INFO] [stdout] 595 | || Cancellable::new_with_cancel_rx(fut, cancel_rx), [INFO] [stdout] ... || [INFO] [stdout] 614 | || }) [INFO] [stdout] 615 | || .await [INFO] [stdout] | ||______________^ this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | |______________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/generic.rs:638:9 [INFO] [stdout] | [INFO] [stdout] 638 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 592 ~ match R::spawn(async move { [INFO] [stdout] 593 | let result = R::scope( [INFO] [stdout] ... [INFO] [stdout] 615 | .await [INFO] [stdout] 616 ~ { Err(e) => { [INFO] [stdout] 617 | if e.is_panic() { [INFO] [stdout] ... [INFO] [stdout] 637 | } [INFO] [stdout] 638 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused implementer of `futures::Future` that must be used [INFO] [stdout] --> src/generic.rs:993:5 [INFO] [stdout] | [INFO] [stdout] 993 | / R::spawn_local(async move { [INFO] [stdout] 994 | | let locals2 = locals.clone(); [INFO] [stdout] 995 | | [INFO] [stdout] 996 | | if let Err(e) = R::spawn_local(async move { [INFO] [stdout] ... | [INFO] [stdout] 1042 | | } [INFO] [stdout] 1043 | | }); [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/generic.rs:996:12 [INFO] [stdout] | [INFO] [stdout] 996 | if let Err(e) = R::spawn_local(async move { [INFO] [stdout] | ____________^ - [INFO] [stdout] | |_________________________| [INFO] [stdout] 997 | || let result = R::scope_local( [INFO] [stdout] 998 | || locals2.clone(), [INFO] [stdout] 999 | || Cancellable::new_with_cancel_rx(fut, cancel_rx), [INFO] [stdout] ... || [INFO] [stdout] 1018 | || }) [INFO] [stdout] 1019 | || .await [INFO] [stdout] | ||______________^ this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | |______________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/generic.rs:1042:9 [INFO] [stdout] | [INFO] [stdout] 1042 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 996 ~ match R::spawn_local(async move { [INFO] [stdout] 997 | let result = R::scope_local( [INFO] [stdout] ... [INFO] [stdout] 1019 | .await [INFO] [stdout] 1020 ~ { Err(e) => { [INFO] [stdout] 1021 | if e.is_panic() { [INFO] [stdout] ... [INFO] [stdout] 1041 | } [INFO] [stdout] 1042 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.12s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking pyo3-asyncio v0.20.0 (/tmp/fixit) [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/generic.rs:1286:5 [INFO] [stdout] | [INFO] [stdout] 1286 | gen: &'p PyAny, [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 1286 | r#gen: &'p PyAny, [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/generic.rs:1286:5 [INFO] [stdout] | [INFO] [stdout] 1286 | gen: &'p PyAny, [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 1286 | r#gen: &'p PyAny, [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/generic.rs:1292:32 [INFO] [stdout] | [INFO] [stdout] 1292 | let anext = PyObject::from(gen.getattr("__anext__")?); [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/generic.rs:1292:32 [INFO] [stdout] | [INFO] [stdout] 1292 | let anext = PyObject::from(gen.getattr("__anext__")?); [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/generic.rs:1429:5 [INFO] [stdout] | [INFO] [stdout] 1429 | gen: &'p PyAny, [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 1429 | r#gen: &'p PyAny, [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/generic.rs:1429:5 [INFO] [stdout] | [INFO] [stdout] 1429 | gen: &'p PyAny, [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 1429 | r#gen: &'p PyAny, [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/generic.rs:1434:61 [INFO] [stdout] | [INFO] [stdout] 1434 | into_stream_with_locals_v1::(get_current_locals::(gen.py())?, gen) [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/generic.rs:1434:61 [INFO] [stdout] | [INFO] [stdout] 1434 | into_stream_with_locals_v1::(get_current_locals::(gen.py())?, gen) [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/generic.rs:1434:73 [INFO] [stdout] | [INFO] [stdout] 1434 | into_stream_with_locals_v1::(get_current_locals::(gen.py())?, gen) [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/generic.rs:1434:73 [INFO] [stdout] | [INFO] [stdout] 1434 | into_stream_with_locals_v1::(get_current_locals::(gen.py())?, gen) [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/generic.rs:1640:5 [INFO] [stdout] | [INFO] [stdout] 1640 | gen: &'p PyAny, [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 1640 | r#gen: &'p PyAny, [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/generic.rs:1640:5 [INFO] [stdout] | [INFO] [stdout] 1640 | gen: &'p PyAny, [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 1640 | r#gen: &'p PyAny, [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/generic.rs:1646:14 [INFO] [stdout] | [INFO] [stdout] 1646 | let py = gen.py(); [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/generic.rs:1646:14 [INFO] [stdout] | [INFO] [stdout] 1646 | let py = gen.py(); [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/generic.rs:1784:5 [INFO] [stdout] | [INFO] [stdout] 1784 | gen: &'p PyAny, [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 1784 | r#gen: &'p PyAny, [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/generic.rs:1789:61 [INFO] [stdout] | [INFO] [stdout] 1789 | into_stream_with_locals_v2::(get_current_locals::(gen.py())?, gen) [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/generic.rs:1789:73 [INFO] [stdout] | [INFO] [stdout] 1789 | into_stream_with_locals_v2::(get_current_locals::(gen.py())?, gen) [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/generic.rs:1784:5 [INFO] [stdout] | [INFO] [stdout] 1784 | gen: &'p PyAny, [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 1784 | r#gen: &'p PyAny, [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/generic.rs:1789:61 [INFO] [stdout] | [INFO] [stdout] 1789 | into_stream_with_locals_v2::(get_current_locals::(gen.py())?, gen) [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/generic.rs:1789:73 [INFO] [stdout] | [INFO] [stdout] 1789 | into_stream_with_locals_v2::(get_current_locals::(gen.py())?, gen) [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/generic.rs:460:30 [INFO] [stdout] | [INFO] [stdout] 455 | awaitable: &PyAny, [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 460 | into_future_with_locals(&get_current_locals::(awaitable.py())?, awaitable) [INFO] [stdout] | -------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------ [INFO] [stdout] | | | [INFO] [stdout] | | creates a temporary value which is freed while still in use [INFO] [stdout] | argument requires that borrow lasts for `'1` [INFO] [stdout] 461 | } [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/generic.rs:460:30 [INFO] [stdout] | [INFO] [stdout] 455 | awaitable: &PyAny, [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 460 | into_future_with_locals(&get_current_locals::(awaitable.py())?, awaitable) [INFO] [stdout] | -------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------ [INFO] [stdout] | | | [INFO] [stdout] | | creates a temporary value which is freed while still in use [INFO] [stdout] | argument requires that borrow lasts for `'1` [INFO] [stdout] 461 | } [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/generic.rs:325:32 [INFO] [stdout] | [INFO] [stdout] 325 | fn __call__(&self, future: &PyAny, complete: &PyAny, value: &PyAny) -> PyResult<()> { [INFO] [stdout] | ^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/generic.rs:325:32 [INFO] [stdout] | [INFO] [stdout] 325 | fn __call__(&self, future: &PyAny, complete: &PyAny, value: &PyAny) -> PyResult<()> { [INFO] [stdout] | ^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/generic.rs:325:50 [INFO] [stdout] | [INFO] [stdout] 325 | fn __call__(&self, future: &PyAny, complete: &PyAny, value: &PyAny) -> PyResult<()> { [INFO] [stdout] | ^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/generic.rs:325:50 [INFO] [stdout] | [INFO] [stdout] 325 | fn __call__(&self, future: &PyAny, complete: &PyAny, value: &PyAny) -> PyResult<()> { [INFO] [stdout] | ^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/generic.rs:325:65 [INFO] [stdout] | [INFO] [stdout] 325 | fn __call__(&self, future: &PyAny, complete: &PyAny, value: &PyAny) -> PyResult<()> { [INFO] [stdout] | ^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/generic.rs:325:65 [INFO] [stdout] | [INFO] [stdout] 325 | fn __call__(&self, future: &PyAny, complete: &PyAny, value: &PyAny) -> PyResult<()> { [INFO] [stdout] | ^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/generic.rs:724:37 [INFO] [stdout] | [INFO] [stdout] 724 | pub fn __call__(&mut self, fut: &PyAny) -> PyResult<()> { [INFO] [stdout] | ^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/generic.rs:724:37 [INFO] [stdout] | [INFO] [stdout] 724 | pub fn __call__(&mut self, fut: &PyAny) -> PyResult<()> { [INFO] [stdout] | ^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/generic.rs:1507:34 [INFO] [stdout] | [INFO] [stdout] 1507 | pub fn send(&mut self, item: PyObject) -> PyResult { [INFO] [stdout] | ^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/generic.rs:1507:34 [INFO] [stdout] | [INFO] [stdout] 1507 | pub fn send(&mut self, item: PyObject) -> PyResult { [INFO] [stdout] | ^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:530:38 [INFO] [stdout] | [INFO] [stdout] 530 | pub fn __call__(&mut self, task: &PyAny) -> PyResult<()> { [INFO] [stdout] | ^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:530:38 [INFO] [stdout] | [INFO] [stdout] 530 | pub fn __call__(&mut self, task: &PyAny) -> PyResult<()> { [INFO] [stdout] | ^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0133, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0133, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] error: could not compile `pyo3-asyncio` (lib test) due to 12 previous errors; 6 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `pyo3-asyncio` (lib) due to 12 previous errors; 6 warnings emitted [INFO] [stderr] error: failed to check after updating to 2024 [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" "552916122f3ba22b5ae9bebcbab2abf2723141532174d6ce0c1b17baff800f80", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "552916122f3ba22b5ae9bebcbab2abf2723141532174d6ce0c1b17baff800f80", kill_on_drop: false }` [INFO] [stdout] 552916122f3ba22b5ae9bebcbab2abf2723141532174d6ce0c1b17baff800f80