[INFO] fetching crate python-ast 0.3.1... [INFO] checking python-ast-0.3.1 against try#c387b04bf028733cd561d62128c8a5eee4bc1458+rustflags=-Dtail_expr_drop_order for pr-130930 [INFO] extracting crate python-ast 0.3.1 into /workspace/builds/worker-6-tc2/source [INFO] validating manifest of crates.io crate python-ast 0.3.1 on toolchain c387b04bf028733cd561d62128c8a5eee4bc1458 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate python-ast 0.3.1 [INFO] finished tweaking crates.io crate python-ast 0.3.1 [INFO] tweaked toml for crates.io crate python-ast 0.3.1 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 97 packages to latest compatible versions [INFO] [stderr] Adding heck v0.4.1 (available: v0.5.0) [INFO] [stderr] Adding iter-read v0.3.1 (available: v1.1.0) [INFO] [stderr] Adding matchers v0.1.0 (available: v0.2.0) [INFO] [stderr] Adding nu-ansi-term v0.46.0 (available: v0.50.1) [INFO] [stderr] Adding pyo3 v0.21.2 (available: v0.22.3) [INFO] [stderr] Adding pyo3-build-config v0.21.2 (available: v0.22.3) [INFO] [stderr] Adding pyo3-ffi v0.21.2 (available: v0.22.3) [INFO] [stderr] Adding pyo3-macros v0.21.2 (available: v0.22.3) [INFO] [stderr] Adding pyo3-macros-backend v0.21.2 (available: v0.22.3) [INFO] [stderr] Adding pythonize v0.21.1 (available: v0.22.0) [INFO] [stderr] Adding regex-automata v0.1.10 (available: v0.4.7) [INFO] [stderr] Adding regex-syntax v0.6.29 (available: v0.8.4) [INFO] [stderr] Adding syn v1.0.109 (available: v2.0.79) [INFO] [stderr] Adding windows-sys v0.52.0 (available: v0.59.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 99d7a87b7c9c6b409a785f02caf378d4e59f4b6ea96905547c466b4a91fec2f3 [INFO] running `Command { std: "docker" "start" "-a" "99d7a87b7c9c6b409a785f02caf378d4e59f4b6ea96905547c466b4a91fec2f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "99d7a87b7c9c6b409a785f02caf378d4e59f4b6ea96905547c466b4a91fec2f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "99d7a87b7c9c6b409a785f02caf378d4e59f4b6ea96905547c466b4a91fec2f3", kill_on_drop: false }` [INFO] [stdout] 99d7a87b7c9c6b409a785f02caf378d4e59f4b6ea96905547c466b4a91fec2f3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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 -Dtail_expr_drop_order" "-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4c9e679705680e3aaa386c97da55ea21cd47f7f4112fd88337f018960ffb9e14 [INFO] running `Command { std: "docker" "start" "-a" "4c9e679705680e3aaa386c97da55ea21cd47f7f4112fd88337f018960ffb9e14", kill_on_drop: false }` [INFO] [stderr] Compiling target-lexicon v0.12.16 [INFO] [stderr] Checking encoding_index_tests v0.1.4 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling portable-atomic v1.9.0 [INFO] [stderr] Compiling memoffset v0.9.1 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling syn v2.0.79 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking anstream v0.6.15 [INFO] [stderr] Checking unindent v0.2.3 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking iter-read v0.3.1 [INFO] [stderr] Checking to_tokenstream v0.1.3 [INFO] [stderr] Checking litrs v0.4.1 [INFO] [stderr] Checking encoding-index-korean v1.20141219.5 [INFO] [stderr] Checking encoding-index-tradchinese v1.20141219.5 [INFO] [stderr] Checking encoding-index-japanese v1.20141219.5 [INFO] [stderr] Checking encoding-index-singlebyte v1.20141219.5 [INFO] [stderr] Checking encoding-index-simpchinese v1.20141219.5 [INFO] [stderr] Checking encoding v0.2.33 [INFO] [stderr] Compiling pyo3-build-config v0.21.2 [INFO] [stderr] Checking regex v1.10.6 [INFO] [stderr] Compiling pyo3-ffi v0.21.2 [INFO] [stderr] Compiling pyo3 v0.21.2 [INFO] [stderr] Checking env_filter v0.1.2 [INFO] [stderr] Checking env_logger v0.11.5 [INFO] [stderr] Compiling pyo3-macros-backend v0.21.2 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling test-log-macros v0.2.16 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Checking test-log v0.2.16 [INFO] [stderr] Checking thiserror v1.0.64 [INFO] [stderr] Compiling pyo3-macros v0.21.2 [INFO] [stderr] Checking serde-pickle v1.1.1 [INFO] [stderr] Checking pythonize v0.21.1 [INFO] [stderr] Checking python-ast v0.3.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/datamodel/mod.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 38 | unimplemented!(); [INFO] [stdout] | ---------------- any code following this expression is unreachable [INFO] [stdout] 39 | / vec![ [INFO] [stdout] 40 | | "__class__", [INFO] [stdout] 41 | | "__class_getitem__", [INFO] [stdout] 42 | | "__contains__", [INFO] [stdout] ... | [INFO] [stdout] 85 | | "values", [INFO] [stdout] 86 | | ] [INFO] [stdout] | |_________^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/datamodel/mod.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 38 | unimplemented!(); [INFO] [stdout] | ---------------- any code following this expression is unreachable [INFO] [stdout] 39 | / vec![ [INFO] [stdout] 40 | | "__class__", [INFO] [stdout] 41 | | "__class_getitem__", [INFO] [stdout] 42 | | "__contains__", [INFO] [stdout] ... | [INFO] [stdout] 85 | | "values", [INFO] [stdout] 86 | | ] [INFO] [stdout] | |_________^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `pyo3::prelude::PyModule::from_code`: `PyModule::from_code` will be replaced by `PyModule::from_code_bound` in a future PyO3 version [INFO] [stdout] --> src/parser/mod.rs:16:30 [INFO] [stdout] | [INFO] [stdout] 16 | let pymodule = PyModule::from_code(py, pymodule_code, "__init__.py", "parser")?; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `pyo3::prelude::PyModule::from_code`: `PyModule::from_code` will be replaced by `PyModule::from_code_bound` in a future PyO3 version [INFO] [stdout] --> src/parser/mod.rs:16:30 [INFO] [stdout] | [INFO] [stdout] 16 | let pymodule = PyModule::from_code(py, pymodule_code, "__init__.py", "parser")?; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module_name` [INFO] [stdout] --> src/ast/tree/expression.rs:422:13 [INFO] [stdout] | [INFO] [stdout] 422 | let module_name = match ctx.clone() { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_module_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module_name` [INFO] [stdout] --> src/ast/tree/expression.rs:422:13 [INFO] [stdout] | [INFO] [stdout] 422 | let module_name = match ctx.clone() { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_module_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this value of type `pyo3::Bound<'_, pyo3::PyAny>` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/dump/mod.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 10 | let pymodule = PyModule::from_code_bound(py, pymodule_code, "dump.py", "parser")?; [INFO] [stdout] | -------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] 11 | let t = pymodule.getattr("dump")?; [INFO] [stdout] | - these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 15 | t.call1(args)?.extract() [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/datamodel/class.rs:19:31 [INFO] [stdout] | [INFO] [stdout] 19 | fn __init__(&mut self, args: A) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `python-ast` (lib) due to 2 previous errors; 4 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: this value of type `pyo3::Bound<'_, pyo3::PyAny>` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/ast/dump/mod.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 10 | let pymodule = PyModule::from_code_bound(py, pymodule_code, "dump.py", "parser")?; [INFO] [stdout] | -------- these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] 11 | let t = pymodule.getattr("dump")?; [INFO] [stdout] | - these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 15 | t.call1(args)?.extract() [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/datamodel/class.rs:19:31 [INFO] [stdout] | [INFO] [stdout] 19 | fn __init__(&mut self, args: A) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `python-ast` (lib test) due to 2 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "4c9e679705680e3aaa386c97da55ea21cd47f7f4112fd88337f018960ffb9e14", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4c9e679705680e3aaa386c97da55ea21cd47f7f4112fd88337f018960ffb9e14", kill_on_drop: false }` [INFO] [stdout] 4c9e679705680e3aaa386c97da55ea21cd47f7f4112fd88337f018960ffb9e14