[INFO] fetching crate glfw 0.54.0... [INFO] checking glfw-0.54.0 against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-2 [INFO] extracting crate glfw 0.54.0 into /workspace/builds/worker-7-tc1/source [INFO] validating manifest of crates.io crate glfw 0.54.0 on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate glfw 0.54.0 [INFO] finished tweaking crates.io crate glfw 0.54.0 [INFO] tweaked toml for crates.io crate glfw 0.54.0 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate crates.io crate glfw 0.54.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rayon-core v1.12.0 [INFO] [stderr] Downloaded cmake v0.1.50 [INFO] [stderr] Downloaded bit_field v0.10.2 [INFO] [stderr] Downloaded lebe v0.5.2 [INFO] [stderr] Downloaded libloading v0.7.4 [INFO] [stderr] Downloaded smallvec v1.11.2 [INFO] [stderr] Downloaded cc v1.0.84 [INFO] [stderr] Downloaded exr v1.71.0 [INFO] [stderr] Downloaded ash v0.37.3+1.3.251 [INFO] [stderr] Downloaded gif v0.12.0 [INFO] [stderr] Downloaded glfw-sys v4.0.0+3.3.5 [INFO] [stderr] Downloaded jpeg-decoder v0.3.0 [INFO] [stderr] Downloaded libc v0.2.150 [INFO] [stderr] Downloaded tiff v0.9.0 [INFO] [stderr] Downloaded rayon v1.8.0 [INFO] [stderr] Downloaded image v0.24.7 [INFO] [stderr] Downloaded flume v0.11.0 [INFO] [stderr] Downloaded half v2.2.1 [INFO] [stderr] Downloaded png v0.17.10 [INFO] [stderr] Downloaded qoi v0.4.1 [INFO] [stderr] Downloaded zune-inflate v0.2.54 [INFO] [stderr] Downloaded fdeflate v0.3.1 [INFO] [stderr] Downloaded bytemuck v1.14.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 438747691beda86faa87aa98ceacc9eb48c76da180742cc894f8fbae6e206271 [INFO] running `Command { std: "docker" "start" "-a" "438747691beda86faa87aa98ceacc9eb48c76da180742cc894f8fbae6e206271", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "438747691beda86faa87aa98ceacc9eb48c76da180742cc894f8fbae6e206271", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "438747691beda86faa87aa98ceacc9eb48c76da180742cc894f8fbae6e206271", kill_on_drop: false }` [INFO] [stdout] 438747691beda86faa87aa98ceacc9eb48c76da180742cc894f8fbae6e206271 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2c6fde7889ff93d0e16d3dc333c053895c82392a20067bd6b8941671074182b2 [INFO] running `Command { std: "docker" "start" "-a" "2c6fde7889ff93d0e16d3dc333c053895c82392a20067bd6b8941671074182b2", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Checking raw-window-handle v0.5.2 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Compiling cc v1.0.84 [INFO] [stderr] Compiling cmake v0.1.50 [INFO] [stderr] Compiling glfw-sys v4.0.0+3.3.5 [INFO] [stderr] Checking glfw v0.54.0 (/opt/rustwide/workdir) [INFO] [stdout] error: the item `CStr` is imported redundantly [INFO] [stdout] --> src/lib.rs:240:16 [INFO] [stdout] | [INFO] [stdout] 240 | use std::ffi::{CStr, CString}; [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 257 | use std::ffi::*; [INFO] [stdout] | ----------- the item `CStr` is already imported here [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | unused, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] = note: `#[deny(unused_imports)]` implied by `#[deny(unused)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: the item `CString` is imported redundantly [INFO] [stdout] --> src/lib.rs:240:22 [INFO] [stdout] | [INFO] [stdout] 240 | use std::ffi::{CStr, CString}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 257 | use std::ffi::*; [INFO] [stdout] | ----------- the item `CString` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: the item `Send` is imported redundantly [INFO] [stdout] --> src/lib.rs:242:5 [INFO] [stdout] | [INFO] [stdout] 242 | use std::marker::Send; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/prelude/mod.rs:148:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Send` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: the item `CStr` is imported redundantly [INFO] [stdout] --> src/lib.rs:240:16 [INFO] [stdout] | [INFO] [stdout] 240 | use std::ffi::{CStr, CString}; [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 257 | use std::ffi::*; [INFO] [stdout] | ----------- the item `CStr` is already imported here [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | unused, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] = note: `#[deny(unused_imports)]` implied by `#[deny(unused)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: the item `CString` is imported redundantly [INFO] [stdout] --> src/lib.rs:240:22 [INFO] [stdout] | [INFO] [stdout] 240 | use std::ffi::{CStr, CString}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 257 | use std::ffi::*; [INFO] [stdout] | ----------- the item `CString` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: the item `Send` is imported redundantly [INFO] [stdout] --> src/lib.rs:242:5 [INFO] [stdout] | [INFO] [stdout] 242 | use std::marker::Send; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/prelude/mod.rs:148:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Send` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `glfw` (lib) due to 4 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `glfw` (lib test) due to 4 previous errors [INFO] running `Command { std: "docker" "inspect" "2c6fde7889ff93d0e16d3dc333c053895c82392a20067bd6b8941671074182b2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2c6fde7889ff93d0e16d3dc333c053895c82392a20067bd6b8941671074182b2", kill_on_drop: false }` [INFO] [stdout] 2c6fde7889ff93d0e16d3dc333c053895c82392a20067bd6b8941671074182b2 [INFO] checking glfw-0.54.0 against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-2 [INFO] extracting crate glfw 0.54.0 into /workspace/builds/worker-7-tc2/source [INFO] validating manifest of crates.io crate glfw 0.54.0 on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate glfw 0.54.0 [INFO] finished tweaking crates.io crate glfw 0.54.0 [INFO] tweaked toml for crates.io crate glfw 0.54.0 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate crates.io crate glfw 0.54.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c907f3b27191ecc0e8012c75ea519be11cecfaf7a18c0f167943aa0995f50545 [INFO] running `Command { std: "docker" "start" "-a" "c907f3b27191ecc0e8012c75ea519be11cecfaf7a18c0f167943aa0995f50545", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c907f3b27191ecc0e8012c75ea519be11cecfaf7a18c0f167943aa0995f50545", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c907f3b27191ecc0e8012c75ea519be11cecfaf7a18c0f167943aa0995f50545", kill_on_drop: false }` [INFO] [stdout] c907f3b27191ecc0e8012c75ea519be11cecfaf7a18c0f167943aa0995f50545 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "-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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9f350c0b3851527a52861c9ac8673f6bee78d7290629f1c280fa53148cac20f9 [INFO] running `Command { std: "docker" "start" "-a" "9f350c0b3851527a52861c9ac8673f6bee78d7290629f1c280fa53148cac20f9", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Checking raw-window-handle v0.5.2 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Compiling cc v1.0.84 [INFO] [stderr] Compiling cmake v0.1.50 [INFO] [stderr] Compiling glfw-sys v4.0.0+3.3.5 [INFO] [stderr] Checking glfw v0.54.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stdout] error: the item `CStr` is imported redundantly [INFO] [stdout] --> src/lib.rs:240:16 [INFO] [stdout] | [INFO] [stdout] 240 | use std::ffi::{CStr, CString}; [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 257 | use std::ffi::*; [INFO] [stdout] | ----------- the item `CStr` is already imported here [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | unused, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] = note: `#[deny(unused_imports)]` implied by `#[deny(unused)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: the item `CString` is imported redundantly [INFO] [stdout] --> src/lib.rs:240:22 [INFO] [stdout] | [INFO] [stdout] 240 | use std::ffi::{CStr, CString}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 257 | use std::ffi::*; [INFO] [stdout] | ----------- the item `CString` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: the item `Send` is imported redundantly [INFO] [stdout] --> src/lib.rs:242:5 [INFO] [stdout] | [INFO] [stdout] 242 | use std::marker::Send; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/36dbcaee1a55543dfc181be52a69d99ff46ff62f/library/std/src/prelude/mod.rs:148:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Send` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `ffi::glfwWindowHint` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/lib.rs:1215:13 [INFO] [stdout] | [INFO] [stdout] 1215 | ffi::glfwWindowHint(hint, unwrap_dont_care(value)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/lib.rs:1214:9 [INFO] [stdout] | [INFO] [stdout] 1214 | unsafe fn dont_care_hint(hint: c_int, value: Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = help: to override `--force-warn rust-2024-compatibility` add `#[allow(unsafe_op_in_unsafe_fn)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `ffi::glfwWindowHintString` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/lib.rs:1225:39 [INFO] [stdout] | [INFO] [stdout] 1225 | with_c_str(value, |value| ffi::glfwWindowHintString(hint, value)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/lib.rs:1219:9 [INFO] [stdout] | [INFO] [stdout] 1219 | unsafe fn string_hint(hint: c_int, value: Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/lib.rs:1884:29 [INFO] [stdout] | [INFO] [stdout] 1884 | String::from_utf8_lossy(CStr::from_ptr(c_str).to_bytes()).into_owned() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/lib.rs:1883:1 [INFO] [stdout] | [INFO] [stdout] 1883 | pub unsafe fn string_from_c_str(c_str: *const c_char) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `string_from_c_str` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/lib.rs:1892:14 [INFO] [stdout] | [INFO] [stdout] 1892 | Some(string_from_c_str(c_str)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/lib.rs:1888:1 [INFO] [stdout] | [INFO] [stdout] 1888 | pub unsafe fn string_from_nullable_c_str(c_str: *const c_char) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `glfw` (lib test) due to 4 previous errors; 4 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: the item `CStr` is imported redundantly [INFO] [stdout] --> src/lib.rs:240:16 [INFO] [stdout] | [INFO] [stdout] 240 | use std::ffi::{CStr, CString}; [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 257 | use std::ffi::*; [INFO] [stdout] | ----------- the item `CStr` is already imported here [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | unused, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] = note: `#[deny(unused_imports)]` implied by `#[deny(unused)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: the item `CString` is imported redundantly [INFO] [stdout] --> src/lib.rs:240:22 [INFO] [stdout] | [INFO] [stdout] 240 | use std::ffi::{CStr, CString}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 257 | use std::ffi::*; [INFO] [stdout] | ----------- the item `CString` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: the item `Send` is imported redundantly [INFO] [stdout] --> src/lib.rs:242:5 [INFO] [stdout] | [INFO] [stdout] 242 | use std::marker::Send; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/36dbcaee1a55543dfc181be52a69d99ff46ff62f/library/std/src/prelude/mod.rs:148:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Send` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `ffi::glfwWindowHint` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/lib.rs:1215:13 [INFO] [stdout] | [INFO] [stdout] 1215 | ffi::glfwWindowHint(hint, unwrap_dont_care(value)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/lib.rs:1214:9 [INFO] [stdout] | [INFO] [stdout] 1214 | unsafe fn dont_care_hint(hint: c_int, value: Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = help: to override `--force-warn rust-2024-compatibility` add `#[allow(unsafe_op_in_unsafe_fn)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `ffi::glfwWindowHintString` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/lib.rs:1225:39 [INFO] [stdout] | [INFO] [stdout] 1225 | with_c_str(value, |value| ffi::glfwWindowHintString(hint, value)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/lib.rs:1219:9 [INFO] [stdout] | [INFO] [stdout] 1219 | unsafe fn string_hint(hint: c_int, value: Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/lib.rs:1884:29 [INFO] [stdout] | [INFO] [stdout] 1884 | String::from_utf8_lossy(CStr::from_ptr(c_str).to_bytes()).into_owned() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/lib.rs:1883:1 [INFO] [stdout] | [INFO] [stdout] 1883 | pub unsafe fn string_from_c_str(c_str: *const c_char) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `string_from_c_str` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/lib.rs:1892:14 [INFO] [stdout] | [INFO] [stdout] 1892 | Some(string_from_c_str(c_str)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/lib.rs:1888:1 [INFO] [stdout] | [INFO] [stdout] 1888 | pub unsafe fn string_from_nullable_c_str(c_str: *const c_char) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `glfw` (lib) due to 4 previous errors; 4 warnings emitted [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "9f350c0b3851527a52861c9ac8673f6bee78d7290629f1c280fa53148cac20f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9f350c0b3851527a52861c9ac8673f6bee78d7290629f1c280fa53148cac20f9", kill_on_drop: false }` [INFO] [stdout] 9f350c0b3851527a52861c9ac8673f6bee78d7290629f1c280fa53148cac20f9