[INFO] cloning repository https://github.com/wherkamp/adoptopenjdk-installer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/wherkamp/adoptopenjdk-installer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwherkamp%2Fadoptopenjdk-installer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwherkamp%2Fadoptopenjdk-installer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1ab67a50e308b81a0b64c904de7d6b1a658954a0 [INFO] testing wherkamp/adoptopenjdk-installer against try#ed7f3d77595b4831fdf085f2529aa13b5b51ff7d for pr-134530 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwherkamp%2Fadoptopenjdk-installer" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/wherkamp/adoptopenjdk-installer on toolchain ed7f3d77595b4831fdf085f2529aa13b5b51ff7d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ed7f3d77595b4831fdf085f2529aa13b5b51ff7d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/wherkamp/adoptopenjdk-installer [INFO] finished tweaking git repo https://github.com/wherkamp/adoptopenjdk-installer [INFO] tweaked toml for git repo https://github.com/wherkamp/adoptopenjdk-installer written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ed7f3d77595b4831fdf085f2529aa13b5b51ff7d" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 199 packages to latest compatible versions [INFO] [stderr] Adding clap v3.2.25 (available: v4.5.23) [INFO] [stderr] Adding derive_more v0.99.18 (available: v1.0.0) [INFO] [stderr] Adding indicatif v0.16.2 (available: v0.17.9) [INFO] [stderr] Adding reqwest v0.11.27 (available: v0.12.9) [INFO] [stderr] Adding serde_qs v0.9.2 (available: v0.13.0) [INFO] [stderr] Adding strum v0.24.1 (available: v0.26.3) [INFO] [stderr] Adding strum_macros v0.24.3 (available: v0.26.4) [INFO] [stderr] Adding toml v0.5.11 (available: v0.8.19) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ed7f3d77595b4831fdf085f2529aa13b5b51ff7d" "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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+ed7f3d77595b4831fdf085f2529aa13b5b51ff7d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f4b0fced67f3cbbb7cde03b3aa42833797a744c4e82a095969bc3f6dedcfeb2b [INFO] running `Command { std: "docker" "start" "-a" "f4b0fced67f3cbbb7cde03b3aa42833797a744c4e82a095969bc3f6dedcfeb2b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f4b0fced67f3cbbb7cde03b3aa42833797a744c4e82a095969bc3f6dedcfeb2b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f4b0fced67f3cbbb7cde03b3aa42833797a744c4e82a095969bc3f6dedcfeb2b", kill_on_drop: false }` [INFO] [stdout] f4b0fced67f3cbbb7cde03b3aa42833797a744c4e82a095969bc3f6dedcfeb2b [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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+ed7f3d77595b4831fdf085f2529aa13b5b51ff7d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c190f649a556121772dbd45a5ae2c6c8b59315398adec2fbcb813b6a4fb712ec [INFO] running `Command { std: "docker" "start" "-a" "c190f649a556121772dbd45a5ae2c6c8b59315398adec2fbcb813b6a4fb712ec", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Compiling cc v1.2.5 [INFO] [stderr] Compiling pin-project-lite v0.2.15 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling bytes v1.9.0 [INFO] [stderr] Compiling writeable v0.5.5 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling litemap v0.7.4 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling itoa v1.0.14 [INFO] [stderr] Compiling icu_locid_transform_data v1.5.0 [INFO] [stderr] Compiling serde v1.0.216 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling syn v2.0.90 [INFO] [stderr] Compiling openssl v0.10.68 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling icu_properties_data v1.5.0 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling utf16_iter v1.0.5 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling icu_normalizer_data v1.5.0 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling write16 v1.0.0 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling openssl-sys v0.9.104 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling indexmap v2.7.0 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling rustversion v1.0.18 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling rustix v0.38.42 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling serde_json v1.0.133 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling adler2 v2.0.0 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling os_str_bytes v6.6.1 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling clap_lex v0.2.4 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling miniz_oxide v0.8.2 [INFO] [stderr] Compiling xattr v1.3.1 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling filetime v0.2.25 [INFO] [stderr] Compiling console v0.15.10 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling number_prefix v0.4.0 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling serde_derive v1.0.216 [INFO] [stderr] Compiling tokio v1.42.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling strum_macros v0.24.3 [INFO] [stderr] Compiling textwrap v0.16.1 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling zerofrom v0.1.5 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling ipnet v2.10.1 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling clap v3.2.25 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling strum v0.24.1 [INFO] [stderr] Compiling indicatif v0.16.2 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling flate2 v1.0.35 [INFO] [stderr] Compiling tar v0.4.43 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling colored v2.2.0 [INFO] [stderr] Compiling tokio-util v0.7.13 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling whoami v1.5.2 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling toml v0.5.11 [INFO] [stderr] Compiling serde_qs v0.9.2 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling adoptopenjdk-installer v1.0.0-RC0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated unit variant `adoptopenjdk::response::Vendor::adoptopenjdk`: As far as I understand Adoptium is removing this vendor [INFO] [stdout] --> src/adoptopenjdk/response.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 112 | adoptopenjdk, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated unit variant `adoptopenjdk::response::Vendor::openjdk`: As far as I understand Adoptium is removing this vendor [INFO] [stdout] --> src/adoptopenjdk/response.rs:114:5 [INFO] [stdout] | [INFO] [stdout] 114 | openjdk, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:106:85 [INFO] [stdout] | [INFO] [stdout] 106 | let result1 = jdk.download_binary(binary.clone(), std::env::temp_dir().as_path().clone()).await; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Path` does not implement `Clone`, so calling `clone` on `&Path` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 106 - let result1 = jdk.download_binary(binary.clone(), std::env::temp_dir().as_path().clone()).await; [INFO] [stdout] 106 + let result1 = jdk.download_binary(binary.clone(), std::env::temp_dir().as_path()).await; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/utils/utils.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 17 | let x = location.clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Path` does not implement `Clone`, so calling `clone` on `&Path` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 17 - let x = location.clone(); [INFO] [stdout] 17 + let x = location; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/installer/mod.rs:72:24 [INFO] [stdout] | [INFO] [stdout] 72 | let java = path.clone().join("bin").join("java"); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Path` does not implement `Clone`, so calling `clone` on `&Path` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 72 - let java = path.clone().join("bin").join("java"); [INFO] [stdout] 72 + let java = path.join("bin").join("java"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/installer/mod.rs:73:25 [INFO] [stdout] | [INFO] [stdout] 73 | let javac = path.clone().join("bin").join("javac"); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Path` does not implement `Clone`, so calling `clone` on `&Path` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 73 - let javac = path.clone().join("bin").join("javac"); [INFO] [stdout] 73 + let javac = path.join("bin").join("javac"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/installer/mod.rs:74:27 [INFO] [stdout] | [INFO] [stdout] 74 | let javadoc = path.clone().join("bin").join("javadoc"); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Path` does not implement `Clone`, so calling `clone` on `&Path` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 74 - let javadoc = path.clone().join("bin").join("javadoc"); [INFO] [stdout] 74 + let javadoc = path.join("bin").join("javadoc"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 43s [INFO] running `Command { std: "docker" "inspect" "c190f649a556121772dbd45a5ae2c6c8b59315398adec2fbcb813b6a4fb712ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c190f649a556121772dbd45a5ae2c6c8b59315398adec2fbcb813b6a4fb712ec", kill_on_drop: false }` [INFO] [stdout] c190f649a556121772dbd45a5ae2c6c8b59315398adec2fbcb813b6a4fb712ec [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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+ed7f3d77595b4831fdf085f2529aa13b5b51ff7d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d0a214de1f1525054b3a5c55caa681b1b88c0e392e50e11687cacfcfc99973e9 [INFO] running `Command { std: "docker" "start" "-a" "d0a214de1f1525054b3a5c55caa681b1b88c0e392e50e11687cacfcfc99973e9", kill_on_drop: false }` [INFO] [stderr] Compiling adoptopenjdk-installer v1.0.0-RC0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated unit variant `adoptopenjdk::response::Vendor::adoptopenjdk`: As far as I understand Adoptium is removing this vendor [INFO] [stdout] --> src/adoptopenjdk/response.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 112 | adoptopenjdk, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated unit variant `adoptopenjdk::response::Vendor::openjdk`: As far as I understand Adoptium is removing this vendor [INFO] [stdout] --> src/adoptopenjdk/response.rs:114:5 [INFO] [stdout] | [INFO] [stdout] 114 | openjdk, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:106:85 [INFO] [stdout] | [INFO] [stdout] 106 | let result1 = jdk.download_binary(binary.clone(), std::env::temp_dir().as_path().clone()).await; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Path` does not implement `Clone`, so calling `clone` on `&Path` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 106 - let result1 = jdk.download_binary(binary.clone(), std::env::temp_dir().as_path().clone()).await; [INFO] [stdout] 106 + let result1 = jdk.download_binary(binary.clone(), std::env::temp_dir().as_path()).await; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/utils/utils.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 17 | let x = location.clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Path` does not implement `Clone`, so calling `clone` on `&Path` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 17 - let x = location.clone(); [INFO] [stdout] 17 + let x = location; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/installer/mod.rs:72:24 [INFO] [stdout] | [INFO] [stdout] 72 | let java = path.clone().join("bin").join("java"); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Path` does not implement `Clone`, so calling `clone` on `&Path` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 72 - let java = path.clone().join("bin").join("java"); [INFO] [stdout] 72 + let java = path.join("bin").join("java"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/installer/mod.rs:73:25 [INFO] [stdout] | [INFO] [stdout] 73 | let javac = path.clone().join("bin").join("javac"); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Path` does not implement `Clone`, so calling `clone` on `&Path` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 73 - let javac = path.clone().join("bin").join("javac"); [INFO] [stdout] 73 + let javac = path.join("bin").join("javac"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/installer/mod.rs:74:27 [INFO] [stdout] | [INFO] [stdout] 74 | let javadoc = path.clone().join("bin").join("javadoc"); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Path` does not implement `Clone`, so calling `clone` on `&Path` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 74 - let javadoc = path.clone().join("bin").join("javadoc"); [INFO] [stdout] 74 + let javadoc = path.join("bin").join("javadoc"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.26s [INFO] running `Command { std: "docker" "inspect" "d0a214de1f1525054b3a5c55caa681b1b88c0e392e50e11687cacfcfc99973e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d0a214de1f1525054b3a5c55caa681b1b88c0e392e50e11687cacfcfc99973e9", kill_on_drop: false }` [INFO] [stdout] d0a214de1f1525054b3a5c55caa681b1b88c0e392e50e11687cacfcfc99973e9 [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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+ed7f3d77595b4831fdf085f2529aa13b5b51ff7d" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 3ec3974b3898b3975b1c388d17f557ff0d7426236b426849492f5a545c6b09b3 [INFO] running `Command { std: "docker" "start" "-a" "3ec3974b3898b3975b1c388d17f557ff0d7426236b426849492f5a545c6b09b3", kill_on_drop: false }` [INFO] [stderr] warning: use of deprecated unit variant `adoptopenjdk::response::Vendor::adoptopenjdk`: As far as I understand Adoptium is removing this vendor [INFO] [stderr] --> src/adoptopenjdk/response.rs:112:5 [INFO] [stderr] | [INFO] [stderr] 112 | adoptopenjdk, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated unit variant `adoptopenjdk::response::Vendor::openjdk`: As far as I understand Adoptium is removing this vendor [INFO] [stderr] --> src/adoptopenjdk/response.rs:114:5 [INFO] [stderr] | [INFO] [stderr] 114 | openjdk, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/main.rs:106:85 [INFO] [stderr] | [INFO] [stderr] 106 | let result1 = jdk.download_binary(binary.clone(), std::env::temp_dir().as_path().clone()).await; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the type `Path` does not implement `Clone`, so calling `clone` on `&Path` copies the reference, which does not do anything and can be removed [INFO] [stderr] = note: `#[warn(noop_method_call)]` on by default [INFO] [stderr] help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] 106 - let result1 = jdk.download_binary(binary.clone(), std::env::temp_dir().as_path().clone()).await; [INFO] [stderr] 106 + let result1 = jdk.download_binary(binary.clone(), std::env::temp_dir().as_path()).await; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/utils/utils.rs:17:21 [INFO] [stderr] | [INFO] [stderr] 17 | let x = location.clone(); [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the type `Path` does not implement `Clone`, so calling `clone` on `&Path` copies the reference, which does not do anything and can be removed [INFO] [stderr] help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] 17 - let x = location.clone(); [INFO] [stderr] 17 + let x = location; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/installer/mod.rs:72:24 [INFO] [stderr] | [INFO] [stderr] 72 | let java = path.clone().join("bin").join("java"); [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the type `Path` does not implement `Clone`, so calling `clone` on `&Path` copies the reference, which does not do anything and can be removed [INFO] [stderr] help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] 72 - let java = path.clone().join("bin").join("java"); [INFO] [stderr] 72 + let java = path.join("bin").join("java"); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/installer/mod.rs:73:25 [INFO] [stderr] | [INFO] [stderr] 73 | let javac = path.clone().join("bin").join("javac"); [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the type `Path` does not implement `Clone`, so calling `clone` on `&Path` copies the reference, which does not do anything and can be removed [INFO] [stderr] help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] 73 - let javac = path.clone().join("bin").join("javac"); [INFO] [stderr] 73 + let javac = path.join("bin").join("javac"); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/installer/mod.rs:74:27 [INFO] [stderr] | [INFO] [stderr] 74 | let javadoc = path.clone().join("bin").join("javadoc"); [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the type `Path` does not implement `Clone`, so calling `clone` on `&Path` copies the reference, which does not do anything and can be removed [INFO] [stderr] help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] 74 - let javadoc = path.clone().join("bin").join("javadoc"); [INFO] [stderr] 74 + let javadoc = path.join("bin").join("javadoc"); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `adoptopenjdk-installer` (bin "adoptopenjdk-installer" test) generated 7 warnings (run `cargo fix --bin "adoptopenjdk-installer" --tests` to apply 5 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.22s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/adoptopenjdk_installer-5e976c087884c137) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "3ec3974b3898b3975b1c388d17f557ff0d7426236b426849492f5a545c6b09b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3ec3974b3898b3975b1c388d17f557ff0d7426236b426849492f5a545c6b09b3", kill_on_drop: false }` [INFO] [stdout] 3ec3974b3898b3975b1c388d17f557ff0d7426236b426849492f5a545c6b09b3