[INFO] fetching crate cmsis-cffi 0.7.0... [INFO] checking cmsis-cffi-0.7.0 against try#7014e13d5becc920d4bea3cd87942c8a13d359bf+rustflags=-Dtail_expr_drop_order for pr-129864 [INFO] extracting crate cmsis-cffi 0.7.0 into /workspace/builds/worker-1-tc2/source [INFO] validating manifest of crates.io crate cmsis-cffi 0.7.0 on toolchain 7014e13d5becc920d4bea3cd87942c8a13d359bf [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "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-1-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 143 packages to latest compatible versions [INFO] [stderr] Adding core-foundation v0.9.4 (available: v0.10.0) [INFO] [stderr] Adding hermit-abi v0.3.9 (available: v0.4.0) [INFO] [stderr] Adding idna v0.5.0 (available: v1.0.2) [INFO] [stderr] Adding minidom v0.12.0 (available: v0.16.0) [INFO] [stderr] Adding quick-xml v0.17.2 (available: v0.36.2) [INFO] [stderr] Adding rustls-native-certs v0.7.3 (available: v0.8.0) [INFO] [stderr] Adding security-framework v2.11.1 (available: v3.0.0) [INFO] [stderr] Adding wasi v0.11.0+wasi-snapshot-preview1 (available: v0.13.2+wasi-0.2.1) [INFO] [stderr] Adding windows-registry v0.2.0 (available: v0.3.0) [INFO] [stderr] Adding windows-strings v0.1.0 (available: v0.2.0) [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" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "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-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8152dc14e60d73b8519c0d85f11001c876e8354643d1f0e8259c10ab55545972 [INFO] running `Command { std: "docker" "start" "-a" "8152dc14e60d73b8519c0d85f11001c876e8354643d1f0e8259c10ab55545972", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8152dc14e60d73b8519c0d85f11001c876e8354643d1f0e8259c10ab55545972", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8152dc14e60d73b8519c0d85f11001c876e8354643d1f0e8259c10ab55545972", kill_on_drop: false }` [INFO] [stdout] 8152dc14e60d73b8519c0d85f11001c876e8354643d1f0e8259c10ab55545972 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 300909591e163e4b801ca2fc9d6c9287a5d4317737435b4d61222b221351c7d2 [INFO] running `Command { std: "docker" "start" "-a" "300909591e163e4b801ca2fc9d6c9287a5d4317737435b4d61222b221351c7d2", kill_on_drop: false }` [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Checking rustls-pki-types v1.8.0 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking untrusted v0.9.0 [INFO] [stderr] Compiling rustls v0.23.13 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Checking tinyvec v1.8.0 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking gimli v0.31.0 [INFO] [stderr] Checking adler2 v2.0.0 [INFO] [stderr] Checking unicode-bidi v0.3.15 [INFO] [stderr] Checking object v0.36.4 [INFO] [stderr] Checking miniz_oxide v0.8.0 [INFO] [stderr] Compiling anyhow v1.0.89 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking rustls-pemfile v2.1.3 [INFO] [stderr] Checking rustc-demangle v0.1.24 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Checking quick-xml v0.17.2 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Checking rustls-native-certs v0.8.0 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Checking rustls-native-certs v0.7.3 [INFO] [stderr] Checking sync_wrapper v1.0.1 [INFO] [stderr] Checking ipnet v2.10.0 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Compiling ctor v0.2.8 [INFO] [stderr] Checking tokio v1.40.0 [INFO] [stderr] Checking minidom v0.12.0 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking unicode-normalization v0.1.24 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Checking url v2.5.2 [INFO] [stderr] Checking addr2line v0.24.1 [INFO] [stderr] Checking simplelog v0.12.2 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking backtrace v0.3.74 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking http-body-util v0.1.2 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking hyper v1.4.1 [INFO] [stderr] Checking tokio-util v0.7.12 [INFO] [stderr] Checking rustls-webpki v0.102.8 [INFO] [stderr] Checking hyper-util v0.1.9 [INFO] [stderr] Checking tokio-rustls v0.26.0 [INFO] [stderr] Checking hyper-rustls v0.27.3 [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: this value of type `Box` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/lib.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | let $boxed = unsafe { Box::from_raw($ptr) }; [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] | | ------------------------------------------ [INFO] [stdout] | | | [INFO] [stdout] | | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] 93 | | Ok(CString::new(dumped_components).unwrap().into_raw()) [INFO] [stdout] 94 | | }) [INFO] [stdout] | |__________- in this macro invocation [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] = note: this error originates in the macro `with_from_raw` (in Nightly builds, run with -Z macro-backtrace for more info) [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] 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] 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] 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 1 previous error; 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this value of type `Box` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/lib.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | let $boxed = unsafe { Box::from_raw($ptr) }; [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] | | ------------------------------------------ [INFO] [stdout] | | | [INFO] [stdout] | | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] | | these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] 93 | | Ok(CString::new(dumped_components).unwrap().into_raw()) [INFO] [stdout] 94 | | }) [INFO] [stdout] | |__________- in this macro invocation [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] = note: this error originates in the macro `with_from_raw` (in Nightly builds, run with -Z macro-backtrace for more info) [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] 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] 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] 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] [stderr] error: could not compile `cmsis-cffi` (lib) due to 2 previous errors; 9 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 1 previous error; 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `cmsis-cffi` (lib test) due to 2 previous errors; 9 warnings emitted [INFO] running `Command { std: "docker" "inspect" "300909591e163e4b801ca2fc9d6c9287a5d4317737435b4d61222b221351c7d2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "300909591e163e4b801ca2fc9d6c9287a5d4317737435b4d61222b221351c7d2", kill_on_drop: false }` [INFO] [stdout] 300909591e163e4b801ca2fc9d6c9287a5d4317737435b4d61222b221351c7d2