[INFO] fetching crate fpsdk 1.0.3... [INFO] checking fpsdk-1.0.3 against master#5518eaa946291f00471af8b254b2a1715f234882 for pr-120393 [INFO] extracting crate fpsdk 1.0.3 into /workspace/builds/worker-2-tc1/source [INFO] validating manifest of crates.io crate fpsdk 1.0.3 on toolchain 5518eaa946291f00471af8b254b2a1715f234882 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate fpsdk 1.0.3 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate fpsdk 1.0.3 [INFO] tweaked toml for crates.io crate fpsdk 1.0.3 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate crates.io crate fpsdk 1.0.3 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" "+5518eaa946291f00471af8b254b2a1715f234882" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cc v1.0.54 [INFO] [stderr] Downloaded serde_derive v1.0.110 [INFO] [stderr] Downloaded serde v1.0.110 [INFO] [stderr] Downloaded bincode v1.2.1 [INFO] [stderr] Downloaded simplelog v0.7.6 [INFO] [stderr] Downloaded chrono v0.4.11 [INFO] [stderr] Downloaded syn v1.0.24 [INFO] [stderr] Downloaded libc v0.2.70 [INFO] [stderr] Downloaded proc-macro2 v1.0.17 [INFO] [stderr] Downloaded hresult v0.0.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f764e0233009089e6dc2f0775a7878bb784f392cdf73416a802e75f063470d97 [INFO] running `Command { std: "docker" "start" "-a" "f764e0233009089e6dc2f0775a7878bb784f392cdf73416a802e75f063470d97", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f764e0233009089e6dc2f0775a7878bb784f392cdf73416a802e75f063470d97", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f764e0233009089e6dc2f0775a7878bb784f392cdf73416a802e75f063470d97", kill_on_drop: false }` [INFO] [stdout] f764e0233009089e6dc2f0775a7878bb784f392cdf73416a802e75f063470d97 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a7f83c47cfae09cdb1d97ca9f0f3748bec065025da84e1182bb2239f9dc1d5ab [INFO] running `Command { std: "docker" "start" "-a" "a7f83c47cfae09cdb1d97ca9f0f3748bec065025da84e1182bb2239f9dc1d5ab", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.70 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.17 [INFO] [stderr] Compiling syn v1.0.24 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling serde v1.0.110 [INFO] [stderr] Checking hresult v0.0.1 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling quote v1.0.6 [INFO] [stderr] Checking dirs-sys v0.3.4 [INFO] [stderr] Checking time v0.1.43 [INFO] [stderr] Checking thread-id v3.3.0 [INFO] [stderr] Compiling jobserver v0.1.21 [INFO] [stderr] Checking simple-logging v2.0.2 [INFO] [stderr] Checking dirs v2.0.2 [INFO] [stderr] Checking term v0.6.1 [INFO] [stderr] Compiling cc v1.0.54 [INFO] [stderr] Checking chrono v0.4.11 [INFO] [stderr] Compiling fpsdk v1.0.3 (/opt/rustwide/workdir) [INFO] [stderr] Checking simplelog v0.7.6 [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lib.rs:162:1 [INFO] [stdout] | [INFO] [stdout] 162 | / /// FFI to make C string (`char *`) managed by C side. Because `char *` produced by [INFO] [stdout] 163 | | /// `CString::into_raw` leads to memory leak: [INFO] [stdout] 164 | | /// [INFO] [stdout] 165 | | /// > The pointer which this function returns must be returned to Rust and reconstituted using [INFO] [stdout] 166 | | /// > from_raw to be properly deallocated. Specifically, one should not use the standard C free() [INFO] [stdout] 167 | | /// > function to deallocate this string. [INFO] [stdout] | |_________________________________________^ [INFO] [stdout] 168 | #[no_mangle] [INFO] [stdout] 169 | / extern "C" { [INFO] [stdout] 170 | | fn alloc_real_cstr(raw_str: *mut c_char) -> *mut c_char; [INFO] [stdout] 171 | | } [INFO] [stdout] | |_- rustdoc does not generate documentation for extern blocks [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: attribute should be applied to a free function, impl method or static [INFO] [stdout] --> src/lib.rs:168:1 [INFO] [stdout] | [INFO] [stdout] 168 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 169 | / extern "C" { [INFO] [stdout] 170 | | fn alloc_real_cstr(raw_str: *mut c_char) -> *mut c_char; [INFO] [stdout] 171 | | } [INFO] [stdout] | |_- not a free function, impl method or static [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: attribute should be applied to a free function, impl method or static [INFO] [stdout] --> src/host.rs:315:1 [INFO] [stdout] | [INFO] [stdout] 315 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 316 | / extern "C" { [INFO] [stdout] 317 | | fn host_on_parameter(host: *mut c_void, tag: intptr_t, index: c_int, value: c_int); [INFO] [stdout] 318 | | fn host_on_controller(host: *mut c_void, tag: intptr_t, index: intptr_t, value: intptr_t); [INFO] [stdout] 319 | | fn host_on_hint(host: *mut c_void, tag: intptr_t, text: *mut c_char); [INFO] [stdout] ... | [INFO] [stdout] 348 | | fn host_get_send_buf(host: *mut c_void, offset: intptr_t) -> *mut c_void; [INFO] [stdout] 349 | | } [INFO] [stdout] | |_- not a free function, impl method or static [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: attribute should be applied to a free function, impl method or static [INFO] [stdout] --> src/host.rs:432:1 [INFO] [stdout] | [INFO] [stdout] 432 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 433 | / extern "C" { [INFO] [stdout] 434 | | fn host_release_voice(host: *mut c_void, tag: intptr_t); [INFO] [stdout] 435 | | fn host_kill_voice(host: *mut c_void, tag: intptr_t); [INFO] [stdout] 436 | | fn host_on_voice_event(host: *mut c_void, tag: intptr_t, message: FlMessage) -> intptr_t; [INFO] [stdout] 437 | | } [INFO] [stdout] | |_- not a free function, impl method or static [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/host.rs:471:22 [INFO] [stdout] | [INFO] [stdout] 471 | unsafe { Box::from_raw(params_ptr) }; // free the memory [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 471 | unsafe { let _ = Box::from_raw(params_ptr); }; // free the memory [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/host.rs:494:17 [INFO] [stdout] | [INFO] [stdout] 494 | Box::from_raw(*voice.params_ptr.get_mut()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 494 | let _ = Box::from_raw(*voice.params_ptr.get_mut()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `CString::from_raw` that must be used [INFO] [stdout] --> src/host/prompt.rs:74:22 [INFO] [stdout] | [INFO] [stdout] 74 | unsafe { CString::from_raw(value) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(from_raw(ptr))` if you intend to drop the `CString` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 74 | unsafe { let _ = CString::from_raw(value); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling serde_derive v1.0.110 [INFO] [stderr] Checking bincode v1.2.1 [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lib.rs:162:1 [INFO] [stdout] | [INFO] [stdout] 162 | / /// FFI to make C string (`char *`) managed by C side. Because `char *` produced by [INFO] [stdout] 163 | | /// `CString::into_raw` leads to memory leak: [INFO] [stdout] 164 | | /// [INFO] [stdout] 165 | | /// > The pointer which this function returns must be returned to Rust and reconstituted using [INFO] [stdout] 166 | | /// > from_raw to be properly deallocated. Specifically, one should not use the standard C free() [INFO] [stdout] 167 | | /// > function to deallocate this string. [INFO] [stdout] | |_________________________________________^ [INFO] [stdout] 168 | #[no_mangle] [INFO] [stdout] 169 | / extern "C" { [INFO] [stdout] 170 | | fn alloc_real_cstr(raw_str: *mut c_char) -> *mut c_char; [INFO] [stdout] 171 | | } [INFO] [stdout] | |_- rustdoc does not generate documentation for extern blocks [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: attribute should be applied to a free function, impl method or static [INFO] [stdout] --> src/lib.rs:168:1 [INFO] [stdout] | [INFO] [stdout] 168 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 169 | / extern "C" { [INFO] [stdout] 170 | | fn alloc_real_cstr(raw_str: *mut c_char) -> *mut c_char; [INFO] [stdout] 171 | | } [INFO] [stdout] | |_- not a free function, impl method or static [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: attribute should be applied to a free function, impl method or static [INFO] [stdout] --> src/host.rs:315:1 [INFO] [stdout] | [INFO] [stdout] 315 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 316 | / extern "C" { [INFO] [stdout] 317 | | fn host_on_parameter(host: *mut c_void, tag: intptr_t, index: c_int, value: c_int); [INFO] [stdout] 318 | | fn host_on_controller(host: *mut c_void, tag: intptr_t, index: intptr_t, value: intptr_t); [INFO] [stdout] 319 | | fn host_on_hint(host: *mut c_void, tag: intptr_t, text: *mut c_char); [INFO] [stdout] ... | [INFO] [stdout] 348 | | fn host_get_send_buf(host: *mut c_void, offset: intptr_t) -> *mut c_void; [INFO] [stdout] 349 | | } [INFO] [stdout] | |_- not a free function, impl method or static [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: attribute should be applied to a free function, impl method or static [INFO] [stdout] --> src/host.rs:432:1 [INFO] [stdout] | [INFO] [stdout] 432 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 433 | / extern "C" { [INFO] [stdout] 434 | | fn host_release_voice(host: *mut c_void, tag: intptr_t); [INFO] [stdout] 435 | | fn host_kill_voice(host: *mut c_void, tag: intptr_t); [INFO] [stdout] 436 | | fn host_on_voice_event(host: *mut c_void, tag: intptr_t, message: FlMessage) -> intptr_t; [INFO] [stdout] 437 | | } [INFO] [stdout] | |_- not a free function, impl method or static [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `params` is never read [INFO] [stdout] --> examples/simple.rs:391:5 [INFO] [stdout] | [INFO] [stdout] 389 | struct SimpleVoice { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 390 | tag: voice::Tag, [INFO] [stdout] 391 | params: voice::Params, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SimpleVoice` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/host.rs:471:22 [INFO] [stdout] | [INFO] [stdout] 471 | unsafe { Box::from_raw(params_ptr) }; // free the memory [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 471 | unsafe { let _ = Box::from_raw(params_ptr); }; // free the memory [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/host.rs:494:17 [INFO] [stdout] | [INFO] [stdout] 494 | Box::from_raw(*voice.params_ptr.get_mut()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 494 | let _ = Box::from_raw(*voice.params_ptr.get_mut()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `CString::from_raw` that must be used [INFO] [stdout] --> src/host/prompt.rs:74:22 [INFO] [stdout] | [INFO] [stdout] 74 | unsafe { CString::from_raw(value) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(from_raw(ptr))` if you intend to drop the `CString` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 74 | unsafe { let _ = CString::from_raw(value); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 9.44s [INFO] running `Command { std: "docker" "inspect" "a7f83c47cfae09cdb1d97ca9f0f3748bec065025da84e1182bb2239f9dc1d5ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a7f83c47cfae09cdb1d97ca9f0f3748bec065025da84e1182bb2239f9dc1d5ab", kill_on_drop: false }` [INFO] [stdout] a7f83c47cfae09cdb1d97ca9f0f3748bec065025da84e1182bb2239f9dc1d5ab [INFO] checking fpsdk-1.0.3 against try#7622c0f807a4e13c4db886a1681bf343795692df+rustflags=-Dnon_local_definitions for pr-120393 [INFO] extracting crate fpsdk 1.0.3 into /workspace/builds/worker-2-tc2/source [INFO] validating manifest of crates.io crate fpsdk 1.0.3 on toolchain 7622c0f807a4e13c4db886a1681bf343795692df [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate fpsdk 1.0.3 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate fpsdk 1.0.3 [INFO] tweaked toml for crates.io crate fpsdk 1.0.3 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate crates.io crate fpsdk 1.0.3 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" "+7622c0f807a4e13c4db886a1681bf343795692df" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0545d5655da6632f8aad41fc18aad62ddd935abb06f5f932655f54ad3ded2e7b [INFO] running `Command { std: "docker" "start" "-a" "0545d5655da6632f8aad41fc18aad62ddd935abb06f5f932655f54ad3ded2e7b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0545d5655da6632f8aad41fc18aad62ddd935abb06f5f932655f54ad3ded2e7b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0545d5655da6632f8aad41fc18aad62ddd935abb06f5f932655f54ad3ded2e7b", kill_on_drop: false }` [INFO] [stdout] 0545d5655da6632f8aad41fc18aad62ddd935abb06f5f932655f54ad3ded2e7b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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 -Dnon_local_definitions" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8ac1c130883301c544e627c08fcf15e700a3728265b6a69dc97a0a24c07e5134 [INFO] running `Command { std: "docker" "start" "-a" "8ac1c130883301c544e627c08fcf15e700a3728265b6a69dc97a0a24c07e5134", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.70 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.17 [INFO] [stderr] Compiling syn v1.0.24 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling serde v1.0.110 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Checking hresult v0.0.1 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling quote v1.0.6 [INFO] [stderr] Checking dirs-sys v0.3.4 [INFO] [stderr] Checking time v0.1.43 [INFO] [stderr] Checking thread-id v3.3.0 [INFO] [stderr] Compiling jobserver v0.1.21 [INFO] [stderr] Checking simple-logging v2.0.2 [INFO] [stderr] Checking dirs v2.0.2 [INFO] [stderr] Checking term v0.6.1 [INFO] [stderr] Compiling cc v1.0.54 [INFO] [stderr] Checking chrono v0.4.11 [INFO] [stderr] Compiling fpsdk v1.0.3 (/opt/rustwide/workdir) [INFO] [stderr] Checking simplelog v0.7.6 [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lib.rs:162:1 [INFO] [stdout] | [INFO] [stdout] 162 | / /// FFI to make C string (`char *`) managed by C side. Because `char *` produced by [INFO] [stdout] 163 | | /// `CString::into_raw` leads to memory leak: [INFO] [stdout] 164 | | /// [INFO] [stdout] 165 | | /// > The pointer which this function returns must be returned to Rust and reconstituted using [INFO] [stdout] 166 | | /// > from_raw to be properly deallocated. Specifically, one should not use the standard C free() [INFO] [stdout] 167 | | /// > function to deallocate this string. [INFO] [stdout] | |_________________________________________^ [INFO] [stdout] 168 | #[no_mangle] [INFO] [stdout] 169 | / extern "C" { [INFO] [stdout] 170 | | fn alloc_real_cstr(raw_str: *mut c_char) -> *mut c_char; [INFO] [stdout] 171 | | } [INFO] [stdout] | |_- rustdoc does not generate documentation for extern blocks [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: attribute should be applied to a free function, impl method or static [INFO] [stdout] --> src/lib.rs:168:1 [INFO] [stdout] | [INFO] [stdout] 168 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 169 | / extern "C" { [INFO] [stdout] 170 | | fn alloc_real_cstr(raw_str: *mut c_char) -> *mut c_char; [INFO] [stdout] 171 | | } [INFO] [stdout] | |_- not a free function, impl method or static [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: attribute should be applied to a free function, impl method or static [INFO] [stdout] --> src/host.rs:315:1 [INFO] [stdout] | [INFO] [stdout] 315 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 316 | / extern "C" { [INFO] [stdout] 317 | | fn host_on_parameter(host: *mut c_void, tag: intptr_t, index: c_int, value: c_int); [INFO] [stdout] 318 | | fn host_on_controller(host: *mut c_void, tag: intptr_t, index: intptr_t, value: intptr_t); [INFO] [stdout] 319 | | fn host_on_hint(host: *mut c_void, tag: intptr_t, text: *mut c_char); [INFO] [stdout] ... | [INFO] [stdout] 348 | | fn host_get_send_buf(host: *mut c_void, offset: intptr_t) -> *mut c_void; [INFO] [stdout] 349 | | } [INFO] [stdout] | |_- not a free function, impl method or static [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: attribute should be applied to a free function, impl method or static [INFO] [stdout] --> src/host.rs:432:1 [INFO] [stdout] | [INFO] [stdout] 432 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 433 | / extern "C" { [INFO] [stdout] 434 | | fn host_release_voice(host: *mut c_void, tag: intptr_t); [INFO] [stdout] 435 | | fn host_kill_voice(host: *mut c_void, tag: intptr_t); [INFO] [stdout] 436 | | fn host_on_voice_event(host: *mut c_void, tag: intptr_t, message: FlMessage) -> intptr_t; [INFO] [stdout] 437 | | } [INFO] [stdout] | |_- not a free function, impl method or static [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/host.rs:471:22 [INFO] [stdout] | [INFO] [stdout] 471 | unsafe { Box::from_raw(params_ptr) }; // free the memory [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 471 | unsafe { let _ = Box::from_raw(params_ptr); }; // free the memory [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/host.rs:494:17 [INFO] [stdout] | [INFO] [stdout] 494 | Box::from_raw(*voice.params_ptr.get_mut()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 494 | let _ = Box::from_raw(*voice.params_ptr.get_mut()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `CString::from_raw` that must be used [INFO] [stdout] --> src/host/prompt.rs:74:22 [INFO] [stdout] | [INFO] [stdout] 74 | unsafe { CString::from_raw(value) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(from_raw(ptr))` if you intend to drop the `CString` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 74 | unsafe { let _ = CString::from_raw(value); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling serde_derive v1.0.110 [INFO] [stderr] Checking bincode v1.2.1 [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lib.rs:162:1 [INFO] [stdout] | [INFO] [stdout] 162 | / /// FFI to make C string (`char *`) managed by C side. Because `char *` produced by [INFO] [stdout] 163 | | /// `CString::into_raw` leads to memory leak: [INFO] [stdout] 164 | | /// [INFO] [stdout] 165 | | /// > The pointer which this function returns must be returned to Rust and reconstituted using [INFO] [stdout] 166 | | /// > from_raw to be properly deallocated. Specifically, one should not use the standard C free() [INFO] [stdout] 167 | | /// > function to deallocate this string. [INFO] [stdout] | |_________________________________________^ [INFO] [stdout] 168 | #[no_mangle] [INFO] [stdout] 169 | / extern "C" { [INFO] [stdout] 170 | | fn alloc_real_cstr(raw_str: *mut c_char) -> *mut c_char; [INFO] [stdout] 171 | | } [INFO] [stdout] | |_- rustdoc does not generate documentation for extern blocks [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: attribute should be applied to a free function, impl method or static [INFO] [stdout] --> src/lib.rs:168:1 [INFO] [stdout] | [INFO] [stdout] 168 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 169 | / extern "C" { [INFO] [stdout] 170 | | fn alloc_real_cstr(raw_str: *mut c_char) -> *mut c_char; [INFO] [stdout] 171 | | } [INFO] [stdout] | |_- not a free function, impl method or static [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: attribute should be applied to a free function, impl method or static [INFO] [stdout] --> src/host.rs:315:1 [INFO] [stdout] | [INFO] [stdout] 315 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 316 | / extern "C" { [INFO] [stdout] 317 | | fn host_on_parameter(host: *mut c_void, tag: intptr_t, index: c_int, value: c_int); [INFO] [stdout] 318 | | fn host_on_controller(host: *mut c_void, tag: intptr_t, index: intptr_t, value: intptr_t); [INFO] [stdout] 319 | | fn host_on_hint(host: *mut c_void, tag: intptr_t, text: *mut c_char); [INFO] [stdout] ... | [INFO] [stdout] 348 | | fn host_get_send_buf(host: *mut c_void, offset: intptr_t) -> *mut c_void; [INFO] [stdout] 349 | | } [INFO] [stdout] | |_- not a free function, impl method or static [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: attribute should be applied to a free function, impl method or static [INFO] [stdout] --> src/host.rs:432:1 [INFO] [stdout] | [INFO] [stdout] 432 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 433 | / extern "C" { [INFO] [stdout] 434 | | fn host_release_voice(host: *mut c_void, tag: intptr_t); [INFO] [stdout] 435 | | fn host_kill_voice(host: *mut c_void, tag: intptr_t); [INFO] [stdout] 436 | | fn host_on_voice_event(host: *mut c_void, tag: intptr_t, message: FlMessage) -> intptr_t; [INFO] [stdout] 437 | | } [INFO] [stdout] | |_- not a free function, impl method or static [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `params` is never read [INFO] [stdout] --> examples/simple.rs:391:5 [INFO] [stdout] | [INFO] [stdout] 389 | struct SimpleVoice { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 390 | tag: voice::Tag, [INFO] [stdout] 391 | params: voice::Params, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SimpleVoice` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> examples/simple.rs:37:26 [INFO] [stdout] | [INFO] [stdout] 37 | #[derive(Debug, Default, Deserialize, Serialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_DESERIALIZE_FOR_State` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: requested on the command line with `-D non-local-definitions` [INFO] [stdout] = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> examples/simple.rs:37:39 [INFO] [stdout] | [INFO] [stdout] 37 | #[derive(Debug, Default, Deserialize, Serialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current constant `_IMPL_SERIALIZE_FOR_State` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `fpsdk` (example "simple") due to 3 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/host.rs:471:22 [INFO] [stdout] | [INFO] [stdout] 471 | unsafe { Box::from_raw(params_ptr) }; // free the memory [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 471 | unsafe { let _ = Box::from_raw(params_ptr); }; // free the memory [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/host.rs:494:17 [INFO] [stdout] | [INFO] [stdout] 494 | Box::from_raw(*voice.params_ptr.get_mut()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 494 | let _ = Box::from_raw(*voice.params_ptr.get_mut()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `CString::from_raw` that must be used [INFO] [stdout] --> src/host/prompt.rs:74:22 [INFO] [stdout] | [INFO] [stdout] 74 | unsafe { CString::from_raw(value) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(from_raw(ptr))` if you intend to drop the `CString` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 74 | unsafe { let _ = CString::from_raw(value); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "8ac1c130883301c544e627c08fcf15e700a3728265b6a69dc97a0a24c07e5134", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8ac1c130883301c544e627c08fcf15e700a3728265b6a69dc97a0a24c07e5134", kill_on_drop: false }` [INFO] [stdout] 8ac1c130883301c544e627c08fcf15e700a3728265b6a69dc97a0a24c07e5134