[INFO] cloning repository https://github.com/transairobot/rsmlc [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/transairobot/rsmlc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftransairobot%2Frsmlc", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftransairobot%2Frsmlc'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] be924bc965eb6a614fc6140833e3dab9bfdb64fb [INFO] building transairobot/rsmlc against try#58b1b3c5342a414c161338871f8004258ccef2a7 for pr-149937 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftransairobot%2Frsmlc" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/transairobot/rsmlc [INFO] finished tweaking git repo https://github.com/transairobot/rsmlc [INFO] tweaked toml for git repo https://github.com/transairobot/rsmlc written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/transairobot/rsmlc on toolchain 58b1b3c5342a414c161338871f8004258ccef2a7 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+58b1b3c5342a414c161338871f8004258ccef2a7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/transairobot/rsmlc 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" "+58b1b3c5342a414c161338871f8004258ccef2a7" "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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+58b1b3c5342a414c161338871f8004258ccef2a7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 16280c8010d8fccfd6f1405fe974ed01941fa24d776983ddc9dec786efa7c35e [INFO] running `Command { std: "docker" "start" "-a" "16280c8010d8fccfd6f1405fe974ed01941fa24d776983ddc9dec786efa7c35e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "16280c8010d8fccfd6f1405fe974ed01941fa24d776983ddc9dec786efa7c35e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "16280c8010d8fccfd6f1405fe974ed01941fa24d776983ddc9dec786efa7c35e", kill_on_drop: false }` [INFO] [stdout] 16280c8010d8fccfd6f1405fe974ed01941fa24d776983ddc9dec786efa7c35e [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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+58b1b3c5342a414c161338871f8004258ccef2a7" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cea728222e83a1c2b0e32c25d3978647b906ab762344c28ff5b5c468952dfc2d [INFO] running `Command { std: "docker" "start" "-a" "cea728222e83a1c2b0e32c25d3978647b906ab762344c28ff5b5c468952dfc2d", kill_on_drop: false }` [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling find-msvc-tools v0.1.3 [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling built v0.7.7 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling rustls v0.23.32 [INFO] [stderr] Compiling quick-error v2.0.1 [INFO] [stderr] Compiling cc v1.2.40 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling flate2 v1.1.4 [INFO] [stderr] Compiling half v2.6.0 [INFO] [stderr] Compiling imgref v1.12.0 [INFO] [stderr] Compiling simd_helpers v0.1.0 [INFO] [stderr] Compiling weezl v0.1.10 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling rav1e v0.7.1 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling bitstream-io v2.6.0 [INFO] [stderr] Compiling noop_proc_macro v0.3.0 [INFO] [stderr] Compiling zune-core v0.4.12 [INFO] [stderr] Compiling loop9 v0.1.5 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling avif-serialize v0.8.6 [INFO] [stderr] Compiling pxfm v0.1.24 [INFO] [stderr] Compiling zune-inflate v0.2.54 [INFO] [stderr] Compiling rgb v0.8.52 [INFO] [stderr] Compiling anstyle-query v1.1.4 [INFO] [stderr] Compiling anstyle v1.0.13 [INFO] [stderr] Compiling zune-jpeg v0.4.21 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling lebe v0.5.3 [INFO] [stderr] Compiling qoi v0.4.1 [INFO] [stderr] Compiling image-webp v0.2.4 [INFO] [stderr] Compiling exr v1.73.0 [INFO] [stderr] Compiling anstream v0.6.21 [INFO] [stderr] Compiling gif v0.13.3 [INFO] [stderr] Compiling png v0.18.0 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling winnow v0.7.13 [INFO] [stderr] Compiling iri-string v0.7.8 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling clap_builder v4.5.48 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling float-cmp v0.9.0 [INFO] [stderr] Compiling toml_writer v1.0.3 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling stl_io v0.8.5 [INFO] [stderr] Compiling maybe-rayon v0.1.1 [INFO] [stderr] Compiling toml_datetime v0.7.2 [INFO] [stderr] Compiling serde_spanned v1.0.2 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling moxcms v0.7.6 [INFO] [stderr] Compiling toml_parser v1.0.3 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [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 equator-macro v0.4.2 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling profiling-procmacros v1.0.17 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling fax_derive v0.2.0 [INFO] [stderr] Compiling profiling v1.0.17 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Compiling arg_enum_proc_macro v0.3.4 [INFO] [stderr] Compiling hyper v1.7.0 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling equator v0.4.2 [INFO] [stderr] Compiling fax v0.2.6 [INFO] [stderr] Compiling gltf-derive v1.4.1 [INFO] [stderr] Compiling aligned-vec v0.6.4 [INFO] [stderr] Compiling clap_derive v4.5.47 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling v_frame v0.3.9 [INFO] [stderr] Compiling tiff v0.10.3 [INFO] [stderr] Compiling toml v0.9.7 [INFO] [stderr] Compiling av1-grain v0.2.4 [INFO] [stderr] Compiling hyper-util v0.1.17 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling rustls-webpki v0.103.7 [INFO] [stderr] Compiling clap v4.5.48 [INFO] [stderr] Compiling thiserror v2.0.17 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling gltf-json v1.4.1 [INFO] [stderr] Compiling quick-xml v0.38.3 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling tokio-rustls v0.26.4 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling hyper-rustls v0.27.7 [INFO] [stderr] Compiling ravif v0.11.20 [INFO] [stderr] Compiling reqwest v0.12.23 [INFO] [stderr] Compiling image v0.25.8 [INFO] [stderr] Compiling gltf v1.4.1 [INFO] [stderr] Compiling rsmlc v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/style/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::dim3::Dim3` [INFO] [stdout] --> src/target/mjcf.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::dim3::Dim3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `gltf::json::accessor::ComponentType` [INFO] [stdout] --> src/target/mjcf.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use gltf::json::accessor::ComponentType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ImageBuffer` and `Rgba` [INFO] [stdout] --> src/target/mjcf.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | use image::{ImageBuffer, ImageFormat, Rgba}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/target/mjcf.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::dim3::Dim3` [INFO] [stdout] --> src/target/threejs/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::dim3::Dim3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/target/threejs/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: Renamed to `rng` [INFO] [stdout] --> src/style/mod.rs:476:37 [INFO] [stdout] | [INFO] [stdout] 476 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/target/mjcf.rs:611:38 [INFO] [stdout] | [INFO] [stdout] 611 | let image_data = base64::decode(data)?; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> src/style/mod.rs:477:36 [INFO] [stdout] | [INFO] [stdout] 477 | let rand_val = rng.gen_range(min_val..=max_val); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `child_names` [INFO] [stdout] --> src/render_tree.rs:906:9 [INFO] [stdout] | [INFO] [stdout] 906 | child_names: &[Option], [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_child_names` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/style/mod.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | if let Self::Length(self_length) = self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/style/mod.rs:261:13 [INFO] [stdout] | [INFO] [stdout] 253 | / ( [INFO] [stdout] 254 | | MarginValue::Length(x), [INFO] [stdout] 255 | | MarginValue::Length(y), [INFO] [stdout] 256 | | MarginValue::Length(z), [INFO] [stdout] ... | [INFO] [stdout] 259 | | MarginValue::Length(zr), [INFO] [stdout] 260 | | ) => Some((Dim3::new(*x, *y, *z), Dim3::new(*xr, *yr, *zr))), [INFO] [stdout] | |_____________- matches all the relevant values [INFO] [stdout] 261 | _ => None, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `percentage` [INFO] [stdout] --> src/style/mod.rs:306:39 [INFO] [stdout] | [INFO] [stdout] 306 | SizeValue::Percentage(percentage) => {} [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_percentage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `percentage` [INFO] [stdout] --> src/style/mod.rs:316:39 [INFO] [stdout] | [INFO] [stdout] 316 | SizeValue::Percentage(percentage) => {} [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_percentage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/style/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::dim3::Dim3` [INFO] [stdout] --> src/target/mjcf.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::dim3::Dim3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `gltf::json::accessor::ComponentType` [INFO] [stdout] --> src/target/mjcf.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use gltf::json::accessor::ComponentType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ImageBuffer` and `Rgba` [INFO] [stdout] --> src/target/mjcf.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | use image::{ImageBuffer, ImageFormat, Rgba}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/target/mjcf.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::dim3::Dim3` [INFO] [stdout] --> src/target/threejs/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::dim3::Dim3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/target/threejs/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: Renamed to `rng` [INFO] [stdout] --> src/style/mod.rs:476:37 [INFO] [stdout] | [INFO] [stdout] 476 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/target/mjcf.rs:611:38 [INFO] [stdout] | [INFO] [stdout] 611 | let image_data = base64::decode(data)?; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> src/style/mod.rs:477:36 [INFO] [stdout] | [INFO] [stdout] 477 | let rand_val = rng.gen_range(min_val..=max_val); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `child_names` [INFO] [stdout] --> src/render_tree.rs:906:9 [INFO] [stdout] | [INFO] [stdout] 906 | child_names: &[Option], [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_child_names` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/style/mod.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | if let Self::Length(self_length) = self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/style/mod.rs:261:13 [INFO] [stdout] | [INFO] [stdout] 253 | / ( [INFO] [stdout] 254 | | MarginValue::Length(x), [INFO] [stdout] 255 | | MarginValue::Length(y), [INFO] [stdout] 256 | | MarginValue::Length(z), [INFO] [stdout] ... | [INFO] [stdout] 259 | | MarginValue::Length(zr), [INFO] [stdout] 260 | | ) => Some((Dim3::new(*x, *y, *z), Dim3::new(*xr, *yr, *zr))), [INFO] [stdout] | |_____________- matches all the relevant values [INFO] [stdout] 261 | _ => None, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `percentage` [INFO] [stdout] --> src/style/mod.rs:306:39 [INFO] [stdout] | [INFO] [stdout] 306 | SizeValue::Percentage(percentage) => {} [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_percentage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `percentage` [INFO] [stdout] --> src/style/mod.rs:316:39 [INFO] [stdout] | [INFO] [stdout] 316 | SizeValue::Percentage(percentage) => {} [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_percentage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Robot3DAsset` is never constructed [INFO] [stdout] --> src/api.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Robot3DAsset { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PaginationListResp` is never constructed [INFO] [stdout] --> src/api.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct PaginationListResp { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Robot3DAssetCategoryRespItem` is never constructed [INFO] [stdout] --> src/api.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct Robot3DAssetCategoryRespItem { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ApiResponse` is never constructed [INFO] [stdout] --> src/api.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct ApiResponse { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `api_call` is never used [INFO] [stdout] --> src/api.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn api_call Deserialize<'de>>(path: &str, method: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fetch_dependency` is never used [INFO] [stdout] --> src/api.rs:92:8 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn fetch_dependency(name: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fetch_assets_in_category` is never used [INFO] [stdout] --> src/api.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn fetch_assets_in_category( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `download_file` is never used [INFO] [stdout] --> src/api.rs:108:8 [INFO] [stdout] | [INFO] [stdout] 108 | pub fn download_file(url: &str, path: &Path) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `x`, `y`, and `z` are never used [INFO] [stdout] --> src/dim3.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl Dim3 { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn x(&self) -> T where T: Copy { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn y(&self) -> T where T: Copy { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn z(&self) -> T where T: Copy { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_space_size` is never used [INFO] [stdout] --> src/package/mod.rs:263:12 [INFO] [stdout] | [INFO] [stdout] 222 | impl Package { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 263 | pub fn get_space_size(&self, name: &str) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_specified_style` is never used [INFO] [stdout] --> src/render_tree.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 55 | impl RenderNode { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn set_specified_style(&mut self, style: Style) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `find_node_by_class` and `find_node_by_class_recursive` are never used [INFO] [stdout] --> src/render_tree.rs:256:12 [INFO] [stdout] | [INFO] [stdout] 107 | impl<'a> RenderTree<'a> { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 256 | pub fn find_node_by_class(&self, class: &str) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 261 | fn find_node_by_class_recursive( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add` and `is_length` are never used [INFO] [stdout] --> src/style/mod.rs:156:12 [INFO] [stdout] | [INFO] [stdout] 155 | impl MarginValue { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 156 | pub fn add(&mut self, other: &Self) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 164 | pub fn is_length(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `zero`, `all_length`, `get_length`, `cal_size_by_parent`, and `assign` are never used [INFO] [stdout] --> src/style/mod.rs:223:12 [INFO] [stdout] | [INFO] [stdout] 204 | impl MarginSize { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 223 | pub fn zero() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 234 | pub fn all_length(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 244 | pub fn get_length(&self) -> Option<(Dim3, Dim3)> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 264 | pub fn cal_size_by_parent(&self, _space_size: &SpaceSize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 269 | pub fn assign(&mut self, other: &Self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `zero` is never used [INFO] [stdout] --> src/style/mod.rs:364:12 [INFO] [stdout] | [INFO] [stdout] 351 | impl SpaceSize { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 364 | pub fn zero() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AxisPos` is never used [INFO] [stdout] --> src/style/mod.rs:448:10 [INFO] [stdout] | [INFO] [stdout] 448 | pub enum AxisPos { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `absolute_pos` is never used [INFO] [stdout] --> src/style/mod.rs:468:12 [INFO] [stdout] | [INFO] [stdout] 467 | impl AxisPos { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 468 | pub fn absolute_pos(&self, min: Length, max: Length) -> Length { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/style/mod.rs:595:12 [INFO] [stdout] | [INFO] [stdout] 588 | impl Style { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 595 | pub fn size_x(&self) -> &SizeValue { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 600 | pub fn size_y(&self) -> &SizeValue { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 605 | pub fn size_z(&self) -> &SizeValue { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 610 | pub fn position_x(&self) -> &PositionValue { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 615 | pub fn position_y(&self) -> &PositionValue { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 620 | pub fn position_z(&self) -> &PositionValue { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 625 | pub fn margin_x(&self) -> &MarginValue { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 630 | pub fn margin_y(&self) -> &MarginValue { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 635 | pub fn margin_z(&self) -> &MarginValue { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 640 | pub fn margin_x_reverse(&self) -> &MarginValue { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 645 | pub fn margin_y_reverse(&self) -> &MarginValue { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 650 | pub fn margin_z_reverse(&self) -> &MarginValue { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 761 | pub fn from_style_string(style_str: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `content_size` is never used [INFO] [stdout] --> src/style/mod.rs:851:12 [INFO] [stdout] | [INFO] [stdout] 797 | impl ComputedStyle { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 851 | pub fn content_size(&self) -> &SpaceSize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `with_selector`, `from_selector_and_style_string`, `get_style_value`, `set_style_value`, and `to_style` are never used [INFO] [stdout] --> src/style/selector_style.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl SelectorStyle { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 19 | /// 创建新的SelectorStyle实例 [INFO] [stdout] 20 | pub fn new(selector: String, style_map: HashMap) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn with_selector(selector: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn from_selector_and_style_string(selector: String, style_string: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn get_style_value(&self, property: &str) -> Option<&String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn set_style_value(&mut self, property: String, value: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn to_style(&self) -> Result