[INFO] fetching crate glfw 0.54.0... [INFO] checking glfw-0.54.0 against master#35936c4839dd272646394779d151e060d0f6b3ac for pr-122960-1 [INFO] extracting crate glfw 0.54.0 into /workspace/builds/worker-3-tc1/source [INFO] validating manifest of crates.io crate glfw 0.54.0 on toolchain 35936c4839dd272646394779d151e060d0f6b3ac [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+35936c4839dd272646394779d151e060d0f6b3ac" "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-3-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" "+35936c4839dd272646394779d151e060d0f6b3ac" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded fdeflate v0.3.1 [INFO] [stderr] Downloaded half v2.2.1 [INFO] [stderr] Downloaded rayon-core v1.12.0 [INFO] [stderr] Downloaded cc v1.0.84 [INFO] [stderr] Downloaded image v0.24.7 [INFO] [stderr] Downloaded gif v0.12.0 [INFO] [stderr] Downloaded exr v1.71.0 [INFO] [stderr] Downloaded glfw-sys v4.0.0+3.3.5 [INFO] [stderr] Downloaded png v0.17.10 [INFO] [stderr] Downloaded rayon v1.8.0 [INFO] [stderr] Downloaded tiff v0.9.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+35936c4839dd272646394779d151e060d0f6b3ac" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] aaaa04f6f254e120e9d3992746177643844d2de485d5c6bbc3838ec9f6cc72bf [INFO] running `Command { std: "docker" "start" "-a" "aaaa04f6f254e120e9d3992746177643844d2de485d5c6bbc3838ec9f6cc72bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "aaaa04f6f254e120e9d3992746177643844d2de485d5c6bbc3838ec9f6cc72bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aaaa04f6f254e120e9d3992746177643844d2de485d5c6bbc3838ec9f6cc72bf", kill_on_drop: false }` [INFO] [stdout] aaaa04f6f254e120e9d3992746177643844d2de485d5c6bbc3838ec9f6cc72bf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+35936c4839dd272646394779d151e060d0f6b3ac" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 64e5b5c79214641ae0127432da6836d36ef70f88eb37c7564d421f2ef67ecbfc [INFO] running `Command { std: "docker" "start" "-a" "64e5b5c79214641ae0127432da6836d36ef70f88eb37c7564d421f2ef67ecbfc", kill_on_drop: false }` [INFO] [stderr] Checking raw-window-handle v0.5.2 [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/35936c4839dd272646394779d151e060d0f6b3ac/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/35936c4839dd272646394779d151e060d0f6b3ac/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] [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" "64e5b5c79214641ae0127432da6836d36ef70f88eb37c7564d421f2ef67ecbfc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "64e5b5c79214641ae0127432da6836d36ef70f88eb37c7564d421f2ef67ecbfc", kill_on_drop: false }` [INFO] [stdout] 64e5b5c79214641ae0127432da6836d36ef70f88eb37c7564d421f2ef67ecbfc [INFO] checking glfw-0.54.0 against try#9ae1860851f3fbc1435a1698e572252c0076f413 for pr-122960-1 [INFO] extracting crate glfw 0.54.0 into /workspace/builds/worker-3-tc2/source [INFO] validating manifest of crates.io crate glfw 0.54.0 on toolchain 9ae1860851f3fbc1435a1698e572252c0076f413 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9ae1860851f3fbc1435a1698e572252c0076f413" "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-3-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" "+9ae1860851f3fbc1435a1698e572252c0076f413" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+9ae1860851f3fbc1435a1698e572252c0076f413" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fd54c84f972661d1848954a0a732afb241b38145e07ed02300fb843308f69857 [INFO] running `Command { std: "docker" "start" "-a" "fd54c84f972661d1848954a0a732afb241b38145e07ed02300fb843308f69857", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fd54c84f972661d1848954a0a732afb241b38145e07ed02300fb843308f69857", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fd54c84f972661d1848954a0a732afb241b38145e07ed02300fb843308f69857", kill_on_drop: false }` [INFO] [stdout] fd54c84f972661d1848954a0a732afb241b38145e07ed02300fb843308f69857 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+9ae1860851f3fbc1435a1698e572252c0076f413" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4559930bb7bf21029126c8a7460f0199380a9428427f14a22ab2aa73a5b2d394 [INFO] running `Command { std: "docker" "start" "-a" "4559930bb7bf21029126c8a7460f0199380a9428427f14a22ab2aa73a5b2d394", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Checking raw-window-handle v0.5.2 [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/9ae1860851f3fbc1435a1698e572252c0076f413/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: could not compile `glfw` (lib) due to 4 previous errors; 4 warnings emitted [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; 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] [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/9ae1860851f3fbc1435a1698e572252c0076f413/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" "4559930bb7bf21029126c8a7460f0199380a9428427f14a22ab2aa73a5b2d394", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4559930bb7bf21029126c8a7460f0199380a9428427f14a22ab2aa73a5b2d394", kill_on_drop: false }` [INFO] [stdout] 4559930bb7bf21029126c8a7460f0199380a9428427f14a22ab2aa73a5b2d394