[INFO] fetching crate sdl2 0.37.0... [INFO] checking sdl2-0.37.0 against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] extracting crate sdl2 0.37.0 into /workspace/builds/worker-5-tc2/source [INFO] validating manifest of crates.io crate sdl2 0.37.0 on toolchain 4d98531622e1718ae0bc3c7a1ab9cd8938428452 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate sdl2 0.37.0 [INFO] removed 1 missing examples [INFO] finished tweaking crates.io crate sdl2 0.37.0 [INFO] tweaked toml for crates.io crate sdl2 0.37.0 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate crates.io crate sdl2 0.37.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" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: An explicit [[example]] section is specified in Cargo.toml which currently [INFO] [stderr] disables Cargo from automatically inferring other example targets. [INFO] [stderr] This inference behavior will change in the Rust 2018 edition and the following [INFO] [stderr] files will be included as a example target: [INFO] [stderr] [INFO] [stderr] * examples/raw-window-handle-with-wgpu/main.rs [INFO] [stderr] [INFO] [stderr] This is likely to break cargo build or cargo test as these files may not be [INFO] [stderr] ready to be compiled as a example target today. You can future-proof yourself [INFO] [stderr] and disable this warning by adding `autoexamples = false` to your [package] [INFO] [stderr] section. You may also move the files to a location where Cargo would not [INFO] [stderr] automatically infer them to be a target, such as in subfolders. [INFO] [stderr] [INFO] [stderr] For more information on this warning you can consult [INFO] [stderr] https://github.com/rust-lang/cargo/issues/5330 [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2f2d55d29a21c2032c5a753a37b920ba9bc54df8bebb7d89d19367b934515492 [INFO] running `Command { std: "docker" "start" "-a" "2f2d55d29a21c2032c5a753a37b920ba9bc54df8bebb7d89d19367b934515492", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2f2d55d29a21c2032c5a753a37b920ba9bc54df8bebb7d89d19367b934515492", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2f2d55d29a21c2032c5a753a37b920ba9bc54df8bebb7d89d19367b934515492", kill_on_drop: false }` [INFO] [stdout] 2f2d55d29a21c2032c5a753a37b920ba9bc54df8bebb7d89d19367b934515492 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e8d38ded3db01c0a6aff37d0d5543591602cce549a77d3a3c9f9f60c95892a59 [INFO] running `Command { std: "docker" "start" "-a" "e8d38ded3db01c0a6aff37d0d5543591602cce549a77d3a3c9f9f60c95892a59", kill_on_drop: false }` [INFO] [stderr] warning: An explicit [[example]] section is specified in Cargo.toml which currently [INFO] [stderr] disables Cargo from automatically inferring other example targets. [INFO] [stderr] This inference behavior will change in the Rust 2018 edition and the following [INFO] [stderr] files will be included as a example target: [INFO] [stderr] [INFO] [stderr] * examples/raw-window-handle-with-wgpu/main.rs [INFO] [stderr] [INFO] [stderr] This is likely to break cargo build or cargo test as these files may not be [INFO] [stderr] ready to be compiled as a example target today. You can future-proof yourself [INFO] [stderr] and disable this warning by adding `autoexamples = false` to your [package] [INFO] [stderr] section. You may also move the files to a location where Cargo would not [INFO] [stderr] automatically infer them to be a target, such as in subfolders. [INFO] [stderr] [INFO] [stderr] For more information on this warning you can consult [INFO] [stderr] https://github.com/rust-lang/cargo/issues/5330 [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Checking bitflags v2.5.0 [INFO] [stderr] Compiling proc-macro2 v1.0.85 [INFO] [stderr] Checking zerocopy v0.7.34 [INFO] [stderr] Compiling cfg_aliases v0.1.1 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Compiling thiserror v1.0.61 [INFO] [stderr] Checking memchr v2.7.2 [INFO] [stderr] Compiling khronos-egl v6.0.0 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Checking unicode-width v0.1.13 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Checking bit-vec v0.6.3 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling ash v0.37.3+1.3.251 [INFO] [stderr] Compiling version-compare v0.1.1 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking codespan-reporting v0.11.1 [INFO] [stderr] Checking bit-set v0.5.3 [INFO] [stderr] Compiling wgpu-hal v0.21.0 [INFO] [stderr] Checking gpu-alloc-types v0.3.0 [INFO] [stderr] Checking spirv v0.3.0+sdk-1.3.268.0 [INFO] [stderr] Checking gpu-descriptor-types v0.2.0 [INFO] [stderr] Checking libloading v0.8.3 [INFO] [stderr] Checking libloading v0.7.4 [INFO] [stderr] Checking unicode-xid v0.2.4 [INFO] [stderr] Checking arrayvec v0.7.4 [INFO] [stderr] Compiling sdl2-sys v0.37.0 [INFO] [stderr] Checking hexf-parse v0.2.1 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Checking gpu-alloc v0.6.0 [INFO] [stderr] Checking wgpu-types v0.20.0 [INFO] [stderr] Compiling wgpu-core v0.21.0 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling litrs v0.4.1 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking raw-window-handle v0.6.2 [INFO] [stderr] Checking profiling v1.0.15 [INFO] [stderr] Checking renderdoc-sys v1.1.0 [INFO] [stderr] Checking glow v0.13.1 [INFO] [stderr] Checking anstyle-parse v0.2.4 [INFO] [stderr] Compiling wgpu v0.20.1 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking bytemuck v1.16.0 [INFO] [stderr] Checking colorchoice v1.0.1 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking anstyle v1.0.7 [INFO] [stderr] Compiling sdl2 v0.37.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking anstyle-query v1.1.0 [INFO] [stderr] Compiling syn v2.0.66 [INFO] [stderr] Compiling document-features v0.2.8 [INFO] [stderr] Checking is_terminal_polyfill v1.70.0 [INFO] [stderr] Checking pollster v0.2.5 [INFO] [stderr] Checking anstream v0.6.14 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Checking gpu-descriptor v0.3.0 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking petgraph v0.6.5 [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/sdl2/audio.rs:777:53 [INFO] [stdout] | [INFO] [stdout] 777 | let device = device.into().map(|device| CString::new(device).unwrap()); [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] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/sdl2/audio.rs:918:53 [INFO] [stdout] | [INFO] [stdout] 918 | let device = device.into().map(|device| CString::new(device).unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/sdl2/messagebox.rs:218:18 [INFO] [stdout] | [INFO] [stdout] 218 | .map(|b| CString::new(b.text).map_err(|e| (e, b.button_id))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/sdl2/surface.rs:109:22 [INFO] [stdout] | [INFO] [stdout] 104 | let context = SurfaceContext { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 109 | context: Rc::new(context), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/sdl2/timer.rs:105:10 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn into_inner(mut self) -> TimerCallback<'a> { [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 105 | *self.callback.take().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/sdl2/video.rs:577:24 [INFO] [stdout] | [INFO] [stdout] 572 | subsystem: VideoSubsystem, [INFO] [stdout] | ------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 577 | subsystem: subsystem.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/sdl2/video.rs:701:22 [INFO] [stdout] | [INFO] [stdout] 699 | fn from(context: WindowContext) -> Window { [INFO] [stdout] | ---------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 700 | Window { [INFO] [stdout] 701 | context: Rc::new(context), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `sdl2` (lib) due to 8 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "e8d38ded3db01c0a6aff37d0d5543591602cce549a77d3a3c9f9f60c95892a59", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e8d38ded3db01c0a6aff37d0d5543591602cce549a77d3a3c9f9f60c95892a59", kill_on_drop: false }` [INFO] [stdout] e8d38ded3db01c0a6aff37d0d5543591602cce549a77d3a3c9f9f60c95892a59