[INFO] fetching crate cmsis-cffi 0.7.0... [INFO] checking cmsis-cffi-0.7.0 against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] extracting crate cmsis-cffi 0.7.0 into /workspace/builds/worker-0-tc2/source [INFO] validating manifest of crates.io crate cmsis-cffi 0.7.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 cmsis-cffi 0.7.0 [INFO] finished tweaking crates.io crate cmsis-cffi 0.7.0 [INFO] tweaked toml for crates.io crate cmsis-cffi 0.7.0 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 147 packages to latest compatible versions [INFO] [stderr] Adding addr2line v0.22.0 (latest: v0.24.1) [INFO] [stderr] Adding core-foundation v0.9.4 (latest: v0.10.0) [INFO] [stderr] Adding gimli v0.29.0 (latest: v0.31.0) [INFO] [stderr] Adding hermit-abi v0.3.9 (latest: v0.4.0) [INFO] [stderr] Adding idna v0.5.0 (latest: v1.0.2) [INFO] [stderr] Adding minidom v0.12.0 (latest: v0.16.0) [INFO] [stderr] Adding miniz_oxide v0.7.4 (latest: v0.8.0) [INFO] [stderr] Adding quick-xml v0.17.2 (latest: v0.36.1) [INFO] [stderr] Adding rustls-native-certs v0.7.3 (latest: v0.8.0) [INFO] [stderr] Adding tower v0.4.13 (latest: v0.5.0) [INFO] [stderr] Adding wasi v0.11.0+wasi-snapshot-preview1 (latest: v0.13.2+wasi-0.2.1) [INFO] [stderr] Adding windows-sys v0.52.0 (latest: v0.59.0) [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] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 9b267e58813ade19989a0fa43555369f2e6770fbc711ab42bff578db3400d3d3 [INFO] running `Command { std: "docker" "start" "-a" "9b267e58813ade19989a0fa43555369f2e6770fbc711ab42bff578db3400d3d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9b267e58813ade19989a0fa43555369f2e6770fbc711ab42bff578db3400d3d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9b267e58813ade19989a0fa43555369f2e6770fbc711ab42bff578db3400d3d3", kill_on_drop: false }` [INFO] [stdout] 9b267e58813ade19989a0fa43555369f2e6770fbc711ab42bff578db3400d3d3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] bcca3e6f80b646cc9f37a71c17429106ae68a0e8cd4933c24b0bf48297869d57 [INFO] running `Command { std: "docker" "start" "-a" "bcca3e6f80b646cc9f37a71c17429106ae68a0e8cd4933c24b0bf48297869d57", kill_on_drop: false }` [INFO] [stderr] Checking rustls-pki-types v1.8.0 [INFO] [stderr] Compiling rustls v0.23.12 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking object v0.36.4 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Checking quick-xml v0.17.2 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Checking minidom v0.12.0 [INFO] [stderr] Checking rustls-webpki v0.102.7 [INFO] [stderr] Checking rustls-pemfile v2.1.3 [INFO] [stderr] Checking rustls-native-certs v0.7.3 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Checking simplelog v0.12.2 [INFO] [stderr] Checking backtrace v0.3.73 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling serde_derive v1.0.209 [INFO] [stderr] Compiling ctor v0.2.8 [INFO] [stderr] Checking tokio v1.40.0 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Checking serde v1.0.209 [INFO] [stderr] Checking http-body-util v0.1.2 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking hyper v1.4.1 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking tokio-rustls v0.26.0 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Checking hyper-util v0.1.7 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde_json v1.0.127 [INFO] [stderr] Checking hyper-rustls v0.27.2 [INFO] [stderr] Checking reqwest v0.12.7 [INFO] [stderr] Checking cmsis-pack v0.7.0 [INFO] [stderr] Checking cmsis-cffi v0.7.0 (/opt/rustwide/workdir) [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/utils.rs:75:11 [INFO] [stdout] | [INFO] [stdout] 71 | pub unsafe fn landingpad(f: F) -> T [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 75 | match panic::catch_unwind(f) { [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/config.rs:57:11 [INFO] [stdout] | [INFO] [stdout] 56 | let fd = OpenOptions::new().read(true).open(vidx_list); [INFO] [stdout] | -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 57 | match fd.map_err(Error::from) { [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] warning: unused return value of `Box::::into_raw` that must be used [INFO] [stdout] --> src/lib.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | Box::into_raw($boxed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/pack.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | / with_from_raw!(let mut packs = parsed_packs, { [INFO] [stdout] 32 | | let size = packs.0.len(); [INFO] [stdout] 33 | | let packs: Vec<_> = packs.0.drain(0..size).collect(); [INFO] [stdout] 34 | | let thread = thread::Builder::new() [INFO] [stdout] ... | [INFO] [stdout] 49 | | })))) [INFO] [stdout] 50 | | }) [INFO] [stdout] | |______________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: losing the pointer will leak memory [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `with_from_raw` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 28 | let _ = Box::into_raw($boxed); [INFO] [stdout] | +++++++ [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/pack_index.rs:117:26 [INFO] [stdout] | [INFO] [stdout] 103 | let (send, recv) = channel(); [INFO] [stdout] | ---- ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 104 | let done_flag = Arc::new(AtomicBool::new(false)); [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 105 | let threads_done_flag = done_flag.clone(); [INFO] [stdout] | ----------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 106 | let thread = thread::Builder::new() [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 117 | Ok(Box::into_raw(Box::new(UpdatePoll::Running(RunningUpdateContext{ [INFO] [stdout] | __________________________^ [INFO] [stdout] 118 | | thread_handle: thread, [INFO] [stdout] 119 | | done_flag, [INFO] [stdout] 120 | | result_stream: recv, [INFO] [stdout] 121 | | })))) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |___________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [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] warning: unused return value of `Box::::into_raw` that must be used [INFO] [stdout] --> src/lib.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | Box::into_raw($boxed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/pack_index.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | / with_from_raw!(let mut boxed = ptr,{ [INFO] [stdout] 129 | | let (ret, next_state) = match mem::replace(boxed.borrow_mut(), UpdatePoll::Drained) { [INFO] [stdout] 130 | | UpdatePoll::Complete(inner) => (true, UpdatePoll::Complete(inner)), [INFO] [stdout] 131 | | UpdatePoll::Drained => (true, UpdatePoll::Drained), [INFO] [stdout] ... | [INFO] [stdout] 146 | | ret [INFO] [stdout] 147 | | }) [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: losing the pointer will leak memory [INFO] [stdout] = note: this warning originates in the macro `with_from_raw` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 28 | let _ = Box::into_raw($boxed); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::into_raw` that must be used [INFO] [stdout] --> src/lib.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | Box::into_raw($boxed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/pack_index.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 156 | / with_from_raw!(let boxed = ptr,{ [INFO] [stdout] 157 | | match boxed.borrow() { [INFO] [stdout] 158 | | UpdatePoll::Complete(_) => null_mut(), [INFO] [stdout] 159 | | UpdatePoll::Drained => null_mut(), [INFO] [stdout] ... | [INFO] [stdout] 167 | | } [INFO] [stdout] 168 | | }) [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: losing the pointer will leak memory [INFO] [stdout] = note: this warning originates in the macro `with_from_raw` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 21 | let _ = Box::into_raw($boxed); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::into_raw` that must be used [INFO] [stdout] --> src/lib.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | Box::into_raw($boxed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/pack_index.rs:185:9 [INFO] [stdout] | [INFO] [stdout] 185 | / with_from_raw!(let mut boxed = ptr,{ [INFO] [stdout] 186 | | let (ret, next_state) = match mem::replace(boxed.borrow_mut(), UpdatePoll::Drained) { [INFO] [stdout] 187 | | UpdatePoll::Complete(inner) => (Some(inner), UpdatePoll::Drained), [INFO] [stdout] 188 | | UpdatePoll::Drained => (None, UpdatePoll::Drained), [INFO] [stdout] ... | [INFO] [stdout] 200 | | } [INFO] [stdout] 201 | | }) [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: losing the pointer will leak memory [INFO] [stdout] = note: this warning originates in the macro `with_from_raw` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 28 | let _ = Box::into_raw($boxed); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::into_raw` that must be used [INFO] [stdout] --> src/lib.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | Box::into_raw($boxed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/pack_index.rs:215:13 [INFO] [stdout] | [INFO] [stdout] 215 | / with_from_raw!(let mut boxed = ptr, { [INFO] [stdout] 216 | | if let Some(osstr) = boxed.0.pop().map(|p| p.into_os_string()){ [INFO] [stdout] 217 | | match osstr.to_str() { [INFO] [stdout] 218 | | Some(osstr) => { [INFO] [stdout] ... | [INFO] [stdout] 225 | | } [INFO] [stdout] 226 | | }) [INFO] [stdout] | |______________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: losing the pointer will leak memory [INFO] [stdout] = note: this warning originates in the macro `with_from_raw` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 28 | let _ = Box::into_raw($boxed); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::into_raw` that must be used [INFO] [stdout] --> src/lib.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | Box::into_raw($boxed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/pack_index.rs:236:13 [INFO] [stdout] | [INFO] [stdout] 236 | / with_from_raw!(let mut boxed = ptr, { [INFO] [stdout] 237 | | let pstore = unsafe { CStr::from_ptr(cstr) }.to_string_lossy(); [INFO] [stdout] 238 | | boxed.0.push(pstore.into_owned().into()); [INFO] [stdout] 239 | | Ok(()) [INFO] [stdout] 240 | | }) [INFO] [stdout] | |______________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: losing the pointer will leak memory [INFO] [stdout] = note: this warning originates in the macro `with_from_raw` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 28 | let _ = Box::into_raw($boxed); [INFO] [stdout] | +++++++ [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/utils.rs:75:11 [INFO] [stdout] | [INFO] [stdout] 71 | pub unsafe fn landingpad(f: F) -> T [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 75 | match panic::catch_unwind(f) { [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 return value of `Box::::into_raw` that must be used [INFO] [stdout] --> src/lib.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | Box::into_raw($boxed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/pdsc.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | / with_from_raw!(let filenames = packs, { [INFO] [stdout] 31 | | dump_devices(&filenames.0, [INFO] [stdout] 32 | | dev_dest.map(|d| d.to_string()), [INFO] [stdout] 33 | | brd_dest.map(|d| d.to_string()), [INFO] [stdout] 34 | | ) [INFO] [stdout] 35 | | }) [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: losing the pointer will leak memory [INFO] [stdout] = note: this warning originates in the macro `with_from_raw` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 21 | let _ = Box::into_raw($boxed); [INFO] [stdout] | +++++++ [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/config.rs:57:11 [INFO] [stdout] | [INFO] [stdout] 56 | let fd = OpenOptions::new().read(true).open(vidx_list); [INFO] [stdout] | -- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 57 | match fd.map_err(Error::from) { [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/pdsc.rs:71:45 [INFO] [stdout] | [INFO] [stdout] 71 | .filter_map(|input| Package::from_path(Path::new(input)).ok_warn()) [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] warning: unused return value of `Box::::into_raw` that must be used [INFO] [stdout] --> src/lib.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | Box::into_raw($boxed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/pdsc.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | / with_from_raw!(let boxed = ptr,{ [INFO] [stdout] 68 | | let pdsc_files = boxed.iter(); [INFO] [stdout] 69 | | Ok(Box::into_raw(Box::new(ParsedPacks( [INFO] [stdout] 70 | | pdsc_files [INFO] [stdout] 71 | | .filter_map(|input| Package::from_path(Path::new(input)).ok_warn()) [INFO] [stdout] 72 | | .collect())))) [INFO] [stdout] 73 | | }) [INFO] [stdout] | |______________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: losing the pointer will leak memory [INFO] [stdout] = note: this warning originates in the macro `with_from_raw` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 21 | let _ = Box::into_raw($boxed); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::into_raw` that must be used [INFO] [stdout] --> src/lib.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | Box::into_raw($boxed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/pdsc.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | / with_from_raw!(let boxed = ptr, { [INFO] [stdout] 91 | | let pdscs = boxed.iter(); [INFO] [stdout] 92 | | let dumped_components = cmsis_pack::pdsc::dumps_components(pdscs)?; [INFO] [stdout] 93 | | Ok(CString::new(dumped_components).unwrap().into_raw()) [INFO] [stdout] 94 | | }) [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: losing the pointer will leak memory [INFO] [stdout] = note: this warning originates in the macro `with_from_raw` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 21 | let _ = Box::into_raw($boxed); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::into_raw` that must be used [INFO] [stdout] --> src/lib.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | Box::into_raw($boxed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/pack.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | / with_from_raw!(let mut packs = parsed_packs, { [INFO] [stdout] 32 | | let size = packs.0.len(); [INFO] [stdout] 33 | | let packs: Vec<_> = packs.0.drain(0..size).collect(); [INFO] [stdout] 34 | | let thread = thread::Builder::new() [INFO] [stdout] ... | [INFO] [stdout] 49 | | })))) [INFO] [stdout] 50 | | }) [INFO] [stdout] | |______________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: losing the pointer will leak memory [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `with_from_raw` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 28 | let _ = Box::into_raw($boxed); [INFO] [stdout] | +++++++ [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/pack_index.rs:117:26 [INFO] [stdout] | [INFO] [stdout] 103 | let (send, recv) = channel(); [INFO] [stdout] | ---- ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 104 | let done_flag = Arc::new(AtomicBool::new(false)); [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 105 | let threads_done_flag = done_flag.clone(); [INFO] [stdout] | ----------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 106 | let thread = thread::Builder::new() [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 117 | Ok(Box::into_raw(Box::new(UpdatePoll::Running(RunningUpdateContext{ [INFO] [stdout] | __________________________^ [INFO] [stdout] 118 | | thread_handle: thread, [INFO] [stdout] 119 | | done_flag, [INFO] [stdout] 120 | | result_stream: recv, [INFO] [stdout] 121 | | })))) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |___________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [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] warning: unused return value of `Box::::into_raw` that must be used [INFO] [stdout] --> src/lib.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | Box::into_raw($boxed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/pack_index.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | / with_from_raw!(let mut boxed = ptr,{ [INFO] [stdout] 129 | | let (ret, next_state) = match mem::replace(boxed.borrow_mut(), UpdatePoll::Drained) { [INFO] [stdout] 130 | | UpdatePoll::Complete(inner) => (true, UpdatePoll::Complete(inner)), [INFO] [stdout] 131 | | UpdatePoll::Drained => (true, UpdatePoll::Drained), [INFO] [stdout] ... | [INFO] [stdout] 146 | | ret [INFO] [stdout] 147 | | }) [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: losing the pointer will leak memory [INFO] [stdout] = note: this warning originates in the macro `with_from_raw` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 28 | let _ = Box::into_raw($boxed); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `cmsis-cffi` (lib) due to 5 previous errors; 9 warnings emitted [INFO] [stdout] warning: unused return value of `Box::::into_raw` that must be used [INFO] [stdout] --> src/lib.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | Box::into_raw($boxed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/pack_index.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 156 | / with_from_raw!(let boxed = ptr,{ [INFO] [stdout] 157 | | match boxed.borrow() { [INFO] [stdout] 158 | | UpdatePoll::Complete(_) => null_mut(), [INFO] [stdout] 159 | | UpdatePoll::Drained => null_mut(), [INFO] [stdout] ... | [INFO] [stdout] 167 | | } [INFO] [stdout] 168 | | }) [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: losing the pointer will leak memory [INFO] [stdout] = note: this warning originates in the macro `with_from_raw` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 21 | let _ = Box::into_raw($boxed); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::into_raw` that must be used [INFO] [stdout] --> src/lib.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | Box::into_raw($boxed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/pack_index.rs:185:9 [INFO] [stdout] | [INFO] [stdout] 185 | / with_from_raw!(let mut boxed = ptr,{ [INFO] [stdout] 186 | | let (ret, next_state) = match mem::replace(boxed.borrow_mut(), UpdatePoll::Drained) { [INFO] [stdout] 187 | | UpdatePoll::Complete(inner) => (Some(inner), UpdatePoll::Drained), [INFO] [stdout] 188 | | UpdatePoll::Drained => (None, UpdatePoll::Drained), [INFO] [stdout] ... | [INFO] [stdout] 200 | | } [INFO] [stdout] 201 | | }) [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: losing the pointer will leak memory [INFO] [stdout] = note: this warning originates in the macro `with_from_raw` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 28 | let _ = Box::into_raw($boxed); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::into_raw` that must be used [INFO] [stdout] --> src/lib.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | Box::into_raw($boxed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/pack_index.rs:215:13 [INFO] [stdout] | [INFO] [stdout] 215 | / with_from_raw!(let mut boxed = ptr, { [INFO] [stdout] 216 | | if let Some(osstr) = boxed.0.pop().map(|p| p.into_os_string()){ [INFO] [stdout] 217 | | match osstr.to_str() { [INFO] [stdout] 218 | | Some(osstr) => { [INFO] [stdout] ... | [INFO] [stdout] 225 | | } [INFO] [stdout] 226 | | }) [INFO] [stdout] | |______________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: losing the pointer will leak memory [INFO] [stdout] = note: this warning originates in the macro `with_from_raw` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 28 | let _ = Box::into_raw($boxed); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::into_raw` that must be used [INFO] [stdout] --> src/lib.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | Box::into_raw($boxed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/pack_index.rs:236:13 [INFO] [stdout] | [INFO] [stdout] 236 | / with_from_raw!(let mut boxed = ptr, { [INFO] [stdout] 237 | | let pstore = unsafe { CStr::from_ptr(cstr) }.to_string_lossy(); [INFO] [stdout] 238 | | boxed.0.push(pstore.into_owned().into()); [INFO] [stdout] 239 | | Ok(()) [INFO] [stdout] 240 | | }) [INFO] [stdout] | |______________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: losing the pointer will leak memory [INFO] [stdout] = note: this warning originates in the macro `with_from_raw` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 28 | let _ = Box::into_raw($boxed); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::into_raw` that must be used [INFO] [stdout] --> src/lib.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | Box::into_raw($boxed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/pdsc.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | / with_from_raw!(let filenames = packs, { [INFO] [stdout] 31 | | dump_devices(&filenames.0, [INFO] [stdout] 32 | | dev_dest.map(|d| d.to_string()), [INFO] [stdout] 33 | | brd_dest.map(|d| d.to_string()), [INFO] [stdout] 34 | | ) [INFO] [stdout] 35 | | }) [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: losing the pointer will leak memory [INFO] [stdout] = note: this warning originates in the macro `with_from_raw` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 21 | let _ = Box::into_raw($boxed); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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/pdsc.rs:71:45 [INFO] [stdout] | [INFO] [stdout] 71 | .filter_map(|input| Package::from_path(Path::new(input)).ok_warn()) [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] warning: unused return value of `Box::::into_raw` that must be used [INFO] [stdout] --> src/lib.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | Box::into_raw($boxed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/pdsc.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | / with_from_raw!(let boxed = ptr,{ [INFO] [stdout] 68 | | let pdsc_files = boxed.iter(); [INFO] [stdout] 69 | | Ok(Box::into_raw(Box::new(ParsedPacks( [INFO] [stdout] 70 | | pdsc_files [INFO] [stdout] 71 | | .filter_map(|input| Package::from_path(Path::new(input)).ok_warn()) [INFO] [stdout] 72 | | .collect())))) [INFO] [stdout] 73 | | }) [INFO] [stdout] | |______________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: losing the pointer will leak memory [INFO] [stdout] = note: this warning originates in the macro `with_from_raw` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 21 | let _ = Box::into_raw($boxed); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::into_raw` that must be used [INFO] [stdout] --> src/lib.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | Box::into_raw($boxed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/pdsc.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | / with_from_raw!(let boxed = ptr, { [INFO] [stdout] 91 | | let pdscs = boxed.iter(); [INFO] [stdout] 92 | | let dumped_components = cmsis_pack::pdsc::dumps_components(pdscs)?; [INFO] [stdout] 93 | | Ok(CString::new(dumped_components).unwrap().into_raw()) [INFO] [stdout] 94 | | }) [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: losing the pointer will leak memory [INFO] [stdout] = note: this warning originates in the macro `with_from_raw` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 21 | let _ = Box::into_raw($boxed); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `cmsis-cffi` (lib test) due to 5 previous errors; 9 warnings emitted [INFO] running `Command { std: "docker" "inspect" "bcca3e6f80b646cc9f37a71c17429106ae68a0e8cd4933c24b0bf48297869d57", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bcca3e6f80b646cc9f37a71c17429106ae68a0e8cd4933c24b0bf48297869d57", kill_on_drop: false }` [INFO] [stdout] bcca3e6f80b646cc9f37a71c17429106ae68a0e8cd4933c24b0bf48297869d57