[INFO] cloning repository https://github.com/seanzian2093/rust_in_action [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/seanzian2093/rust_in_action" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fseanzian2093%2Frust_in_action", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fseanzian2093%2Frust_in_action'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 74b8661c485f454ffcf0d229da72bc770ca79379 [INFO] checking seanzian2093/rust_in_action against try#6284d7b4bd27983dba388146648ab844ca7d032f for pr-152971 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fseanzian2093%2Frust_in_action" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/seanzian2093/rust_in_action [INFO] finished tweaking git repo https://github.com/seanzian2093/rust_in_action [INFO] tweaked toml for git repo https://github.com/seanzian2093/rust_in_action written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/seanzian2093/rust_in_action on toolchain 6284d7b4bd27983dba388146648ab844ca7d032f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+6284d7b4bd27983dba388146648ab844ca7d032f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/seanzian2093/rust_in_action 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" "+6284d7b4bd27983dba388146648ab844ca7d032f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+6284d7b4bd27983dba388146648ab844ca7d032f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1ce5bc9fc9ccae418145320d7db9b2535014f69d64f49362633c14d34a9c78ba [INFO] running `Command { std: "docker" "start" "-a" "1ce5bc9fc9ccae418145320d7db9b2535014f69d64f49362633c14d34a9c78ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1ce5bc9fc9ccae418145320d7db9b2535014f69d64f49362633c14d34a9c78ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1ce5bc9fc9ccae418145320d7db9b2535014f69d64f49362633c14d34a9c78ba", kill_on_drop: false }` [INFO] [stdout] 1ce5bc9fc9ccae418145320d7db9b2535014f69d64f49362633c14d34a9c78ba [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" "-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+6284d7b4bd27983dba388146648ab844ca7d032f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 744e8d40128a58ac6febed7670770205e6313bbe4da7341824d04abcdc7e4e84 [INFO] running `Command { std: "docker" "start" "-a" "744e8d40128a58ac6febed7670770205e6313bbe4da7341824d04abcdc7e4e84", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.20 [INFO] [stderr] Checking log v0.4.28 [INFO] [stderr] Compiling xml-rs v0.8.27 [INFO] [stderr] Compiling zerocopy v0.8.27 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Checking getrandom v0.3.4 [INFO] [stderr] Compiling wayland-sys v0.31.7 [INFO] [stderr] Checking hashbrown v0.16.0 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Checking flate2 v1.1.4 [INFO] [stderr] Compiling wayland-backend v0.3.11 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling quick-xml v0.37.5 [INFO] [stderr] Checking mio v1.1.0 [INFO] [stderr] Compiling wayland-client v0.31.11 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Compiling built v0.7.7 [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Checking indexmap v2.12.0 [INFO] [stderr] Checking tokio v1.48.0 [INFO] [stderr] Compiling syn v2.0.107 [INFO] [stderr] Compiling wayland-scanner v0.29.5 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling wayland-scanner v0.31.7 [INFO] [stderr] Compiling rav1e v0.7.1 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking wayland-sys v0.29.5 [INFO] [stderr] Checking nix v0.24.3 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking piston-float v1.0.1 [INFO] [stderr] Checking x11-dl v2.21.0 [INFO] [stderr] Compiling simd_helpers v0.1.0 [INFO] [stderr] Checking itertools v0.12.1 [INFO] [stderr] Compiling wayland-client v0.29.5 [INFO] [stderr] Checking wayland-commons v0.29.5 [INFO] [stderr] Checking bitstream-io v2.6.0 [INFO] [stderr] Compiling wayland-protocols v0.29.5 [INFO] [stderr] Checking piston-viewport v1.0.2 [INFO] [stderr] Compiling naga v27.0.0 [INFO] [stderr] Checking pxfm v0.1.25 [INFO] [stderr] Checking gif v0.13.3 [INFO] [stderr] Checking png v0.18.0 [INFO] [stderr] Checking nix v0.25.1 [INFO] [stderr] Compiling wgpu-hal v27.0.2 [INFO] [stderr] Checking polling v3.11.0 [INFO] [stderr] Checking gpu-alloc-types v0.3.0 [INFO] [stderr] Checking piston-graphics_api_version v1.0.1 [INFO] [stderr] Checking gpu-alloc v0.6.0 [INFO] [stderr] Checking wayland-cursor v0.29.5 [INFO] [stderr] Checking khronos-egl v6.0.0 [INFO] [stderr] Checking ash v0.38.0+1.3.281 [INFO] [stderr] Compiling glutin_glx_sys v0.4.0 [INFO] [stderr] Checking wayland-csd-frame v0.3.0 [INFO] [stderr] Compiling glutin_egl_sys v0.5.1 [INFO] [stderr] Checking png v0.17.16 [INFO] [stderr] Checking draw_state v0.8.0 [INFO] [stderr] Checking moxcms v0.7.7 [INFO] [stderr] Checking ordered-float v5.0.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Checking memmap2 v0.5.10 [INFO] [stderr] Checking memmap2 v0.9.9 [INFO] [stderr] Compiling libc v1.0.0-alpha.1 [INFO] [stderr] Checking chacha20 v0.10.0-rc.2 [INFO] [stderr] Checking gfx_core v0.9.2 [INFO] [stderr] Checking wayland-protocols v0.32.9 [INFO] [stderr] Checking wayland-cursor v0.31.11 [INFO] [stderr] Checking tokio-util v0.7.16 [INFO] [stderr] Checking gethostname v1.1.0 [INFO] [stderr] Compiling winit v0.28.7 [INFO] [stderr] Compiling gl_generator v0.13.1 [INFO] [stderr] Compiling wgpu-core v27.0.1 [INFO] [stderr] Checking epaint_default_fonts v0.33.0 [INFO] [stderr] Checking ttf-parser v0.15.2 [INFO] [stderr] Checking x11rb v0.13.2 [INFO] [stderr] Compiling gl v0.13.0 [INFO] [stderr] Compiling zerocopy-derive v0.8.27 [INFO] [stderr] Compiling bytemuck_derive v1.10.2 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking bytemuck v1.24.0 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling profiling-procmacros v1.0.17 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking half v2.7.1 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking profiling v1.0.17 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling equator-macro v0.4.2 [INFO] [stderr] Checking zerovec v0.11.4 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling arg_enum_proc_macro v0.3.4 [INFO] [stderr] Checking equator v0.4.2 [INFO] [stderr] Checking aligned-vec v0.6.4 [INFO] [stderr] Compiling fax_derive v0.2.0 [INFO] [stderr] Checking v_frame v0.3.9 [INFO] [stderr] Checking av1-grain v0.2.4 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.3 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking fax v0.2.6 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking exr v1.73.0 [INFO] [stderr] Checking tiff v0.10.3 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking thiserror v2.0.17 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking calloop v0.13.0 [INFO] [stderr] Checking qoi v0.4.1 [INFO] [stderr] Checking wgpu-types v27.0.1 [INFO] [stderr] Checking calloop-wayland-source v0.3.0 [INFO] [stderr] Checking wayland-protocols-wlr v0.3.9 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking url v2.5.7 [INFO] [stderr] Checking bincode v2.0.1 [INFO] [stderr] Checking ahash v0.8.12 [INFO] [stderr] Checking calloop v0.10.6 [INFO] [stderr] Checking emath v0.33.0 [INFO] [stderr] Checking tiny-skia-path v0.8.4 [INFO] [stderr] Checking smithay-client-toolkit v0.19.2 [INFO] [stderr] Checking ecolor v0.33.0 [INFO] [stderr] Checking pistoncore-input v1.0.1 [INFO] [stderr] Checking tiny-skia v0.8.4 [INFO] [stderr] Checking tiny-skia-path v0.11.4 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Checking pistoncore-window v1.0.0 [INFO] [stderr] Checking openssl v0.10.74 [INFO] [stderr] Checking tiny-skia v0.11.4 [INFO] [stderr] Checking smithay-client-toolkit v0.16.1 [INFO] [stderr] Checking epaint v0.33.0 [INFO] [stderr] Checking h2 v0.4.12 [INFO] [stderr] Checking ravif v0.11.20 [INFO] [stderr] Checking owned_ttf_parser v0.15.2 [INFO] [stderr] Checking image v0.25.8 [INFO] [stderr] Checking anstream v0.6.20 [INFO] [stderr] Checking sctk-adwaita v0.5.4 [INFO] [stderr] Checking rand v0.10.0-rc.0 [INFO] [stderr] Checking wayland-sys v0.30.1 [INFO] [stderr] Compiling gfx_gl v0.6.1 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Compiling wgpu v27.0.1 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking libloading v0.7.4 [INFO] [stderr] Checking instant v0.1.13 [INFO] [stderr] Checking piston-texture v0.9.0 [INFO] [stderr] Checking clap_builder v4.5.50 [INFO] [stderr] Checking egui v0.33.0 [INFO] [stderr] Checking glutin v0.30.10 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking hyper v1.7.0 [INFO] [stderr] Checking native-tls v0.2.14 [INFO] [stderr] Compiling winit v0.30.12 [INFO] [stderr] Checking rusttype v0.9.3 [INFO] [stderr] Checking sctk-adwaita v0.10.1 [INFO] [stderr] Checking wayland-protocols-plasma v0.3.9 [INFO] [stderr] Checking gfx v0.18.3 [INFO] [stderr] Checking xkbcommon-dl v0.4.2 [INFO] [stderr] Checking shader_version v0.7.0 [INFO] [stderr] Checking vecmath v1.0.0 [INFO] [stderr] Checking crossbeam-channel v0.5.15 [INFO] [stderr] Checking dpi v0.1.2 [INFO] [stderr] Checking read_color v1.0.0 [INFO] [stderr] Checking smol_str v0.2.2 [INFO] [stderr] Checking interpolation v0.3.0 [INFO] [stderr] Checking spin_sleep v1.3.3 [INFO] [stderr] Checking piston2d-graphics v0.44.0 [INFO] [stderr] Checking crossbeam v0.8.4 [INFO] [stderr] Checking pistoncore-event_loop v1.0.0 [INFO] [stderr] Checking hyper-util v0.1.17 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking type-map v0.5.1 [INFO] [stderr] Checking piston-gfx_texture v0.45.0 [INFO] [stderr] Checking arboard v3.6.1 [INFO] [stderr] Checking glutin-winit v0.3.0 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking clap v4.5.50 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking unicode-normalization v0.1.24 [INFO] [stderr] Checking smithay-clipboard v0.7.2 [INFO] [stderr] Checking ch7-actionkv v0.1.0 (/opt/rustwide/workdir/ch7/ch7-actionkv) [INFO] [stderr] Checking webbrowser v1.0.6 [INFO] [stderr] Checking svg v0.18.0 [INFO] [stderr] Checking piston-shaders_graphics2d v0.4.0 [INFO] [stderr] Checking unicode-bidi v0.3.18 [INFO] [stderr] Checking piston2d-gfx_graphics v0.81.0 [INFO] [stderr] Compiling enum-as-inner v0.6.1 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking pistoncore-glutin_window v0.72.0 [INFO] [stderr] Checking tower-http v0.6.6 [INFO] [stderr] Checking idna v0.4.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking gfx_device_gl v0.16.2 [INFO] [stderr] Checking piston v1.0.0 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Checking lin_alg v1.3.9 [INFO] [stderr] Checking obj v0.10.2 [INFO] [stderr] Checking pollster v0.4.0 [INFO] [stderr] Checking half v1.8.3 [INFO] [stderr] Checking reqwest v0.12.24 [INFO] [stderr] Checking piston_window v0.132.0 [INFO] [stderr] Checking serde_cbor v0.11.2 [INFO] [stderr] Checking chrono v0.4.42 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Checking serde_json v1.0.145 [INFO] [stderr] Checking ch5_q v0.1.0 (/opt/rustwide/workdir/ch5/ch5_q) [INFO] [stderr] Checking ch5 v0.1.0 (/opt/rustwide/workdir/ch5) [INFO] [stderr] Checking trust-dns-proto v0.23.2 [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> ch5/src/ch5_2_f32_as_u32.rs:4:38 [INFO] [stdout] | [INFO] [stdout] 4 | let franken_type: u32 = unsafe { std::mem::transmute(a) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 4 - let franken_type: u32 = unsafe { std::mem::transmute(a) }; [INFO] [stdout] 4 + let franken_type: u32 = unsafe { f32::to_bits(a) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> ch5/src/ch5_2_f32_as_u32.rs:13:27 [INFO] [stdout] | [INFO] [stdout] 13 | let b: f32 = unsafe { std::mem::transmute(franken_type) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 13 - let b: f32 = unsafe { std::mem::transmute(franken_type) }; [INFO] [stdout] 13 + let b: f32 = unsafe { f32::from_bits(franken_type) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> ch5/src/ch5_6_endianess.rs:6:27 [INFO] [stdout] | [INFO] [stdout] 6 | let a: i32 = unsafe { transmute(big_endian) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 6 - let a: i32 = unsafe { transmute(big_endian) }; [INFO] [stdout] 6 + let a: i32 = unsafe { i32::from_ne_bytes(big_endian) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> ch5/src/ch5_6_endianess.rs:7:27 [INFO] [stdout] | [INFO] [stdout] 7 | let b: i32 = unsafe { transmute(little_endian) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 7 - let b: i32 = unsafe { transmute(little_endian) }; [INFO] [stdout] 7 + let b: i32 = unsafe { i32::from_ne_bytes(little_endian) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ch10-render-hex-functional v0.1.0 (/opt/rustwide/workdir/ch10/ch10-render-hex-functional) [INFO] [stderr] Checking ch8-simple v0.1.0 (/opt/rustwide/workdir/ch8/ch8-simple) [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> ch5/src/ch5_2_f32_as_u32.rs:4:38 [INFO] [stdout] | [INFO] [stdout] 4 | let franken_type: u32 = unsafe { std::mem::transmute(a) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 4 - let franken_type: u32 = unsafe { std::mem::transmute(a) }; [INFO] [stdout] 4 + let franken_type: u32 = unsafe { f32::to_bits(a) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> ch5/src/ch5_2_f32_as_u32.rs:13:27 [INFO] [stdout] | [INFO] [stdout] 13 | let b: f32 = unsafe { std::mem::transmute(franken_type) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 13 - let b: f32 = unsafe { std::mem::transmute(franken_type) }; [INFO] [stdout] 13 + let b: f32 = unsafe { f32::from_bits(franken_type) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> ch5/src/ch5_6_endianess.rs:6:27 [INFO] [stdout] | [INFO] [stdout] 6 | let a: i32 = unsafe { transmute(big_endian) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 6 - let a: i32 = unsafe { transmute(big_endian) }; [INFO] [stdout] 6 + let a: i32 = unsafe { i32::from_ne_bytes(big_endian) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> ch5/src/ch5_6_endianess.rs:7:27 [INFO] [stdout] | [INFO] [stdout] 7 | let b: i32 = unsafe { transmute(little_endian) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: there's also `from_le_bytes` and `from_be_bytes` if you expect a particular byte order [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 7 - let b: i32 = unsafe { transmute(little_endian) }; [INFO] [stdout] 7 + let b: i32 = unsafe { i32::from_ne_bytes(little_endian) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ch10-render-hex v0.1.0 (/opt/rustwide/workdir/ch10/ch10-render-hex) [INFO] [stderr] Checking ch10-channels-complex v0.1.0 (/opt/rustwide/workdir/ch10/ch10-channels-complex) [INFO] [stderr] Checking ch10-channels-intro v0.1.0 (/opt/rustwide/workdir/ch10/ch10-channels-intro) [INFO] [stderr] Checking ch12-basic-handler v0.1.0 (/opt/rustwide/workdir/ch12/ch12-basic-handler) [INFO] [stderr] Checking ch12-ignore v0.1.0 (/opt/rustwide/workdir/ch12/ch12-ignore) [INFO] [stdout] warning: direct cast of function item into an integer [INFO] [stdout] --> ch12/ch12-basic-handler/src/main.rs:42:46 [INFO] [stdout] | [INFO] [stdout] 42 | libc::signal(SIGTERM, handle_sigterm as usize); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(function_casts_as_integer)]` on by default [INFO] [stdout] help: first cast to a pointer `as *const ()` [INFO] [stdout] | [INFO] [stdout] 42 | libc::signal(SIGTERM, handle_sigterm as *const () as usize); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: direct cast of function item into an integer [INFO] [stdout] --> ch12/ch12-basic-handler/src/main.rs:43:46 [INFO] [stdout] | [INFO] [stdout] 43 | libc::signal(SIGUSR1, handle_sigusr1 as usize); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: first cast to a pointer `as *const ()` [INFO] [stdout] | [INFO] [stdout] 43 | libc::signal(SIGUSR1, handle_sigusr1 as *const () as usize); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ch8-macgen v0.1.0 (/opt/rustwide/workdir/ch8/ch8-mac) [INFO] [stderr] Checking ch12-toy-global v0.1.0 (/opt/rustwide/workdir/ch12/ch12-toy-global) [INFO] [stdout] warning: direct cast of function item into an integer [INFO] [stdout] --> ch12/ch12-basic-handler/src/main.rs:42:46 [INFO] [stdout] | [INFO] [stdout] 42 | libc::signal(SIGTERM, handle_sigterm as usize); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(function_casts_as_integer)]` on by default [INFO] [stdout] help: first cast to a pointer `as *const ()` [INFO] [stdout] | [INFO] [stdout] 42 | libc::signal(SIGTERM, handle_sigterm as *const () as usize); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: direct cast of function item into an integer [INFO] [stdout] --> ch12/ch12-basic-handler/src/main.rs:43:46 [INFO] [stdout] | [INFO] [stdout] 43 | libc::signal(SIGUSR1, handle_sigusr1 as usize); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: first cast to a pointer `as *const ()` [INFO] [stdout] | [INFO] [stdout] 43 | libc::signal(SIGUSR1, handle_sigusr1 as *const () as usize); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ch7-write123 v0.1.0 (/opt/rustwide/workdir/ch7/ch7-write123) [INFO] [stderr] Checking ch10 v0.1.0 (/opt/rustwide/workdir/ch10) [INFO] [stderr] Checking misc v0.1.0 (/opt/rustwide/workdir/ch8/misc) [INFO] [stderr] Checking ch7-serde-eg v0.1.0 (/opt/rustwide/workdir/ch7/ch7-serde-eg) [INFO] [stderr] Checking ch9-clock v0.1.0 (/opt/rustwide/workdir/ch9/ch9-clock) [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> ch8/misc/wraperror.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | IO(io::Error), [INFO] [stdout] | -- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `UpstreamError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 10 - IO(io::Error), [INFO] [stdout] 10 + IO(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> ch8/misc/wraperror.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | Parsing(net::AddrParseError), [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `UpstreamError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 11 - Parsing(net::AddrParseError), [INFO] [stdout] 11 + Parsing(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ch10-busythreads v0.1.0 (/opt/rustwide/workdir/ch10/ch10-busythreads) [INFO] [stderr] Checking wgpu-core-deps-windows-linux-android v27.0.0 [INFO] [stdout] warning: unused imports: `Datelike` and `Timelike` [INFO] [stdout] --> ch9/ch9-clock/src/main.rs:12:31 [INFO] [stdout] | [INFO] [stdout] 12 | use chrono::{Local, DateTime, Timelike, Datelike, TimeZone}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ch6 v0.1.0 (/opt/rustwide/workdir/ch6) [INFO] [stderr] Checking ch8-stdlib v0.1.0 (/opt/rustwide/workdir/ch8/ch8-stdlib) [INFO] [stdout] warning: unused imports: `Datelike` and `Timelike` [INFO] [stdout] --> ch9/ch9-clock/src/main.rs:12:31 [INFO] [stdout] | [INFO] [stdout] 12 | use chrono::{Local, DateTime, Timelike, Datelike, TimeZone}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> ch8/misc/wraperror2.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | IO(io::Error), [INFO] [stdout] | -- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `UpstreamError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 10 - IO(io::Error), [INFO] [stdout] 10 + IO(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> ch8/misc/wraperror2.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | Parsing(net::AddrParseError), [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `UpstreamError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 11 - Parsing(net::AddrParseError), [INFO] [stdout] 11 + Parsing(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ch12 v0.1.0 (/opt/rustwide/workdir/ch12) [INFO] [stderr] Checking ch9 v0.1.0 (/opt/rustwide/workdir/ch9) [INFO] [stdout] warning: function returns a dangling pointer to dropped local variable `noop_local` [INFO] [stdout] --> ch6/src/ch6_14.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | fn noop() -> *const i32 { [INFO] [stdout] | ---------- return type is `*const i32` [INFO] [stdout] 6 | let noop_local = 12345; [INFO] [stdout] | ---------- local variable `noop_local` is dropped at the end of the function [INFO] [stdout] 7 | &noop_local as *const i32 [INFO] [stdout] | -----------^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | dangling pointer created here [INFO] [stdout] | [INFO] [stdout] = note: a dangling pointer is safe, but dereferencing one is undefined behavior [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(dangling_pointers_from_locals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> ch8/misc/wraperror.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | IO(io::Error), [INFO] [stdout] | -- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `UpstreamError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 10 - IO(io::Error), [INFO] [stdout] 10 + IO(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> ch8/misc/wraperror.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | Parsing(net::AddrParseError), [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `UpstreamError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 11 - Parsing(net::AddrParseError), [INFO] [stdout] 11 + Parsing(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ch7 v0.1.0 (/opt/rustwide/workdir/ch7) [INFO] [stderr] Checking ch8 v0.1.0 (/opt/rustwide/workdir/ch8) [INFO] [stderr] Checking ch10-multijoin v0.1.0 (/opt/rustwide/workdir/ch10/ch10-multijoin) [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> ch7/src/ch7_3.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | INPUT.read_to_end(&mut buffer)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: mutable reference created due to call to this method [INFO] [stdout] --> /rustc/6284d7b4bd27983dba388146648ab844ca7d032f/library/std/src/io/mod.rs:935:4 [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> ch7/src/ch7_3.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | const INPUT: &'static [u8] = br#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(const_item_mutation)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> ch8/misc/wraperror2.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | IO(io::Error), [INFO] [stdout] | -- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `UpstreamError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 10 - IO(io::Error), [INFO] [stdout] 10 + IO(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> ch8/misc/wraperror2.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | Parsing(net::AddrParseError), [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `UpstreamError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 11 - Parsing(net::AddrParseError), [INFO] [stdout] 11 + Parsing(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function returns a dangling pointer to dropped local variable `noop_local` [INFO] [stdout] --> ch6/src/ch6_14.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | fn noop() -> *const i32 { [INFO] [stdout] | ---------- return type is `*const i32` [INFO] [stdout] 6 | let noop_local = 12345; [INFO] [stdout] | ---------- local variable `noop_local` is dropped at the end of the function [INFO] [stdout] 7 | &noop_local as *const i32 [INFO] [stdout] | -----------^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | dangling pointer created here [INFO] [stdout] | [INFO] [stdout] = note: a dangling pointer is safe, but dereferencing one is undefined behavior [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(dangling_pointers_from_locals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> ch7/src/ch7_3.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | INPUT.read_to_end(&mut buffer)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: mutable reference created due to call to this method [INFO] [stdout] --> /rustc/6284d7b4bd27983dba388146648ab844ca7d032f/library/std/src/io/mod.rs:935:4 [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> ch7/src/ch7_3.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | const INPUT: &'static [u8] = br#" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(const_item_mutation)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking egui-winit v0.33.0 [INFO] [stderr] Checking ch8-resolve v0.1.0 (/opt/rustwide/workdir/ch8/ch8-resolve) [INFO] [stderr] Checking egui-wgpu v0.33.0 [INFO] [stderr] Checking graphics v0.5.0 [INFO] [stderr] Checking ch6-particles v0.1.0 (/opt/rustwide/workdir/ch6/ch6_particles) [INFO] [stdout] warning: unused variable: `time_taken` [INFO] [stdout] --> ch6/ch6_particles/main.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | let time_taken = end - start; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_time_taken` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes_requested` [INFO] [stdout] --> ch6/ch6_particles/main.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | let bytes_requested = layout.size(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes_requested` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time_taken` [INFO] [stdout] --> ch6/ch6_particles/main.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | let time_taken = end - start; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_time_taken` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes_requested` [INFO] [stdout] --> ch6/ch6_particles/main.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | let bytes_requested = layout.size(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes_requested` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3m 28s [INFO] running `Command { std: "docker" "inspect" "744e8d40128a58ac6febed7670770205e6313bbe4da7341824d04abcdc7e4e84", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "744e8d40128a58ac6febed7670770205e6313bbe4da7341824d04abcdc7e4e84", kill_on_drop: false }` [INFO] [stdout] 744e8d40128a58ac6febed7670770205e6313bbe4da7341824d04abcdc7e4e84