[INFO] fetching crate glfw 0.54.0... [INFO] checking glfw-0.54.0 against master#020bbe46bdf613c0b8211984eaa8e5fe97d6c92d for pr-122960 [INFO] extracting crate glfw 0.54.0 into /workspace/builds/worker-6-tc1/source [INFO] validating manifest of crates.io crate glfw 0.54.0 on toolchain 020bbe46bdf613c0b8211984eaa8e5fe97d6c92d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+020bbe46bdf613c0b8211984eaa8e5fe97d6c92d" "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-6-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" "+020bbe46bdf613c0b8211984eaa8e5fe97d6c92d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded malloc_buf v0.0.6 [INFO] [stderr] Downloaded color_quant v1.1.0 [INFO] [stderr] Downloaded simd-adler32 v0.3.7 [INFO] [stderr] Downloaded bit_field v0.10.2 [INFO] [stderr] Downloaded objc v0.2.7 [INFO] [stderr] Downloaded libloading v0.7.4 [INFO] [stderr] Downloaded cmake v0.1.50 [INFO] [stderr] Downloaded flume v0.11.0 [INFO] [stderr] Downloaded half v2.2.1 [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 png v0.17.10 [INFO] [stderr] Downloaded tiff v0.9.0 [INFO] [stderr] Downloaded bytemuck v1.14.0 [INFO] [stderr] Downloaded qoi v0.4.1 [INFO] [stderr] Downloaded weezl v0.1.7 [INFO] [stderr] Downloaded image v0.24.7 [INFO] [stderr] Downloaded zune-inflate v0.2.54 [INFO] [stderr] Downloaded fdeflate v0.3.1 [INFO] [stderr] Downloaded spin v0.9.8 [INFO] [stderr] Downloaded lebe v0.5.2 [INFO] [stderr] Downloaded raw-window-handle v0.5.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+020bbe46bdf613c0b8211984eaa8e5fe97d6c92d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fa2747c53d8f94417da66a23f2d022ed272784607528138c4b0b77746270ed6e [INFO] running `Command { std: "docker" "start" "-a" "fa2747c53d8f94417da66a23f2d022ed272784607528138c4b0b77746270ed6e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fa2747c53d8f94417da66a23f2d022ed272784607528138c4b0b77746270ed6e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fa2747c53d8f94417da66a23f2d022ed272784607528138c4b0b77746270ed6e", kill_on_drop: false }` [INFO] [stdout] fa2747c53d8f94417da66a23f2d022ed272784607528138c4b0b77746270ed6e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+020bbe46bdf613c0b8211984eaa8e5fe97d6c92d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 93e3cc1a16f2673338bd77b6929ae69fbc75a4dcb4900d86e0e6a0b9698d354b [INFO] running `Command { std: "docker" "start" "-a" "93e3cc1a16f2673338bd77b6929ae69fbc75a4dcb4900d86e0e6a0b9698d354b", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking raw-window-handle v0.5.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/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:129: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/020bbe46bdf613c0b8211984eaa8e5fe97d6c92d/library/std/src/prelude/mod.rs:129: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] [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] [stderr] error: could not compile `glfw` (lib test) due to 4 previous errors [INFO] running `Command { std: "docker" "inspect" "93e3cc1a16f2673338bd77b6929ae69fbc75a4dcb4900d86e0e6a0b9698d354b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "93e3cc1a16f2673338bd77b6929ae69fbc75a4dcb4900d86e0e6a0b9698d354b", kill_on_drop: false }` [INFO] [stdout] 93e3cc1a16f2673338bd77b6929ae69fbc75a4dcb4900d86e0e6a0b9698d354b [INFO] checking glfw-0.54.0 against try#8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde for pr-122960 [INFO] extracting crate glfw 0.54.0 into /workspace/builds/worker-6-tc2/source [INFO] validating manifest of crates.io crate glfw 0.54.0 on toolchain 8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde" "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-6-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" "+8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9bb815dc75230533ec698b2431c55f746942a290e0a5327495bc1dba82c536ae [INFO] running `Command { std: "docker" "start" "-a" "9bb815dc75230533ec698b2431c55f746942a290e0a5327495bc1dba82c536ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9bb815dc75230533ec698b2431c55f746942a290e0a5327495bc1dba82c536ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9bb815dc75230533ec698b2431c55f746942a290e0a5327495bc1dba82c536ae", kill_on_drop: false }` [INFO] [stdout] 9bb815dc75230533ec698b2431c55f746942a290e0a5327495bc1dba82c536ae [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1b4742dc95c42fbcd5ae5aa350e38e2839efbfcace4d50fe27a9d30005232c6f [INFO] running `Command { std: "docker" "start" "-a" "1b4742dc95c42fbcd5ae5aa350e38e2839efbfcace4d50fe27a9d30005232c6f", 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] [stderr] error: could not compile `glfw` (lib) due to 4 previous errors; 4 warnings emitted [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] [stderr] warning: build failed, waiting for other jobs to finish... [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/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:129: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] [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] [stderr] error: could not compile `glfw` (lib test) due to 4 previous errors; 4 warnings emitted [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/8e5ca945edcf8a11e3cd7ac6d9fda930a8832cde/library/std/src/prelude/mod.rs:129: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: 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" "1b4742dc95c42fbcd5ae5aa350e38e2839efbfcace4d50fe27a9d30005232c6f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1b4742dc95c42fbcd5ae5aa350e38e2839efbfcace4d50fe27a9d30005232c6f", kill_on_drop: false }` [INFO] [stdout] 1b4742dc95c42fbcd5ae5aa350e38e2839efbfcace4d50fe27a9d30005232c6f