[INFO] fetching crate copse 0.4.1... [INFO] building copse-0.4.1 against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] extracting crate copse 0.4.1 into /workspace/builds/worker-1-tc1/source [INFO] validating manifest of crates.io crate copse 0.4.1 on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate copse 0.4.1 [INFO] finished tweaking crates.io crate copse 0.4.1 [INFO] tweaked toml for crates.io crate copse 0.4.1 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "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 4 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 79ed374faaae592d85169a031e84f93a524a5f8a84bcb899f27961e1f945fdd2 [INFO] running `Command { std: "docker" "start" "-a" "79ed374faaae592d85169a031e84f93a524a5f8a84bcb899f27961e1f945fdd2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "79ed374faaae592d85169a031e84f93a524a5f8a84bcb899f27961e1f945fdd2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "79ed374faaae592d85169a031e84f93a524a5f8a84bcb899f27961e1f945fdd2", kill_on_drop: false }` [INFO] [stdout] 79ed374faaae592d85169a031e84f93a524a5f8a84bcb899f27961e1f945fdd2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b774d269987be4a6929be8ddd9b502061ce0ff06c6192d35916ca1c5d8dbd122 [INFO] running `Command { std: "docker" "start" "-a" "b774d269987be4a6929be8ddd9b502061ce0ff06c6192d35916ca1c5d8dbd122", kill_on_drop: false }` [INFO] [stderr] Compiling copse v0.4.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition name: `no_global_oom_handling` [INFO] [stdout] --> src/lib.rs:40:11 [INFO] [stdout] | [INFO] [stdout] 40 | #[cfg(not(no_global_oom_handling))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `fmt_debug`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows` [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(no_global_oom_handling)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(no_global_oom_handling)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `no_global_oom_handling` [INFO] [stdout] --> src/lib.rs:44:11 [INFO] [stdout] | [INFO] [stdout] 44 | #[cfg(not(no_global_oom_handling))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(no_global_oom_handling)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(no_global_oom_handling)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `no_global_oom_handling` [INFO] [stdout] --> src/lib.rs:48:11 [INFO] [stdout] | [INFO] [stdout] 48 | #[cfg(not(no_global_oom_handling))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(no_global_oom_handling)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(no_global_oom_handling)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `no_global_oom_handling` [INFO] [stdout] --> src/liballoc.rs:32:15 [INFO] [stdout] | [INFO] [stdout] 32 | #[cfg(not(no_global_oom_handling))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(no_global_oom_handling)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(no_global_oom_handling)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `no_global_oom_handling` [INFO] [stdout] --> src/liballoc.rs:35:15 [INFO] [stdout] | [INFO] [stdout] 35 | #[cfg(not(no_global_oom_handling))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(no_global_oom_handling)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(no_global_oom_handling)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `no_global_oom_handling` [INFO] [stdout] --> src/liballoc.rs:38:15 [INFO] [stdout] | [INFO] [stdout] 38 | #[cfg(not(no_global_oom_handling))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(no_global_oom_handling)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(no_global_oom_handling)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `no_global_oom_handling` [INFO] [stdout] --> src/liballoc.rs:44:15 [INFO] [stdout] | [INFO] [stdout] 44 | #[cfg(not(no_global_oom_handling))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(no_global_oom_handling)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(no_global_oom_handling)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/polyfill.rs:300:25 [INFO] [stdout] | [INFO] [stdout] 300 | self.iter().is_sorted_by(|a, b| compare(*a, *b)) [INFO] [stdout] | ^^^^^^^^^^^^ multiple `is_sorted_by` found [INFO] [stdout] | [INFO] [stdout] note: candidate #1 is defined in the trait `SliceIsSorted` [INFO] [stdout] --> src/polyfill.rs:271:9 [INFO] [stdout] | [INFO] [stdout] 271 | / fn is_sorted_by<'a, F>(&'a self, compare: F) -> bool [INFO] [stdout] 272 | | where [INFO] [stdout] 273 | | F: FnMut(&'a Self::Element, &'a Self::Element) -> Option; [INFO] [stdout] | |_______________________________________________________________________________^ [INFO] [stdout] note: candidate #2 is defined in an impl of the trait `IterIsSorted` for the type `I` [INFO] [stdout] --> src/polyfill.rs:307:9 [INFO] [stdout] | [INFO] [stdout] 307 | / fn is_sorted_by(mut self, compare: F) -> bool [INFO] [stdout] 308 | | where [INFO] [stdout] 309 | | F: FnMut(&I::Item, &I::Item) -> Option, [INFO] [stdout] | |_____________________________________________________________^ [INFO] [stdout] = note: candidate #3 is defined in an impl of the trait `Iterator` for the type `core::slice::Iter<'a, T>` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 300 | SliceIsSorted::is_sorted_by(&self.iter(), |a, b| compare(*a, *b)) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 300 | IterIsSorted::is_sorted_by(self.iter(), |a, b| compare(*a, *b)) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #3 [INFO] [stdout] | [INFO] [stdout] 300 | Iterator::is_sorted_by(self.iter(), |a, b| compare(*a, *b)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: relative drop order changing in Rust 2024 [INFO] [stdout] --> src/liballoc/collections/btree/node.rs:1051:27 [INFO] [stdout] | [INFO] [stdout] 1041 | let (mut split, handle) = match self.insert(key, value, alloc.clone()) { [INFO] [stdout] | --------- [INFO] [stdout] | | [INFO] [stdout] | `split` calls a custom destructor [INFO] [stdout] | `split` will be dropped later as of Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 1051 | match parent.insert(split.kv.0, split.kv.1, split.right, alloc.clone()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value will be stored in a temporary; let us call it `#1` [INFO] [stdout] | up until Edition 2021 `#1` is dropped last but will be dropped earlier in Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 1057 | } [INFO] [stdout] | - now the temporary value is dropped here, before the local variables in the block or statement [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0034`. [INFO] [stdout] [INFO] [stderr] error: could not compile `copse` (lib) due to 2 previous errors; 7 warnings emitted [INFO] running `Command { std: "docker" "inspect" "b774d269987be4a6929be8ddd9b502061ce0ff06c6192d35916ca1c5d8dbd122", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b774d269987be4a6929be8ddd9b502061ce0ff06c6192d35916ca1c5d8dbd122", kill_on_drop: false }` [INFO] [stdout] b774d269987be4a6929be8ddd9b502061ce0ff06c6192d35916ca1c5d8dbd122