[INFO] fetching crate qiniu-download 1.0.15... [INFO] checking qiniu-download-1.0.15 against master#94b72d6bebbddb5d17860914c4544f37365e988c for pr-122789 [INFO] extracting crate qiniu-download 1.0.15 into /workspace/builds/worker-2-tc1/source [INFO] validating manifest of crates.io crate qiniu-download 1.0.15 on toolchain 94b72d6bebbddb5d17860914c4544f37365e988c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+94b72d6bebbddb5d17860914c4544f37365e988c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate qiniu-download 1.0.15 [INFO] finished tweaking crates.io crate qiniu-download 1.0.15 [INFO] tweaked toml for crates.io crate qiniu-download 1.0.15 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+94b72d6bebbddb5d17860914c4544f37365e988c" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+94b72d6bebbddb5d17860914c4544f37365e988c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded fd-lock v2.0.0 [INFO] [stderr] Downloaded directories v3.0.2 [INFO] [stderr] Downloaded positioned-io v0.2.2 [INFO] [stderr] Downloaded qiniu-multipart v0.17.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+94b72d6bebbddb5d17860914c4544f37365e988c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0bc42de97615fef0c05d81188a54207e4fedf47c731714c7f9981e00a7e4bd99 [INFO] running `Command { std: "docker" "start" "-a" "0bc42de97615fef0c05d81188a54207e4fedf47c731714c7f9981e00a7e4bd99", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0bc42de97615fef0c05d81188a54207e4fedf47c731714c7f9981e00a7e4bd99", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0bc42de97615fef0c05d81188a54207e4fedf47c731714c7f9981e00a7e4bd99", kill_on_drop: false }` [INFO] [stdout] 0bc42de97615fef0c05d81188a54207e4fedf47c731714c7f9981e00a7e4bd99 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+94b72d6bebbddb5d17860914c4544f37365e988c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 94583b22fe346f54ae3340d881102e6623b90cc549b5c1fd4193c3b298361c36 [INFO] running `Command { std: "docker" "start" "-a" "94583b22fe346f54ae3340d881102e6623b90cc549b5c1fd4193c3b298361c36", kill_on_drop: false }` [INFO] [stderr] Checking memchr v2.7.2 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Checking serde v1.0.197 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking inotify-sys v0.1.5 [INFO] [stderr] Checking safemem v0.3.3 [INFO] [stderr] Compiling crc32fast v1.4.0 [INFO] [stderr] Checking lazycell v1.3.0 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Checking rand_chacha v0.1.1 [INFO] [stderr] Checking inotify v0.7.1 [INFO] [stderr] Checking crypto-mac v0.11.1 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking headers-core v0.2.0 [INFO] [stderr] Checking dirs-sys v0.3.7 [INFO] [stderr] Checking filetime v0.2.23 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking byteorder v0.5.3 [INFO] [stderr] Checking sha-1 v0.9.8 [INFO] [stderr] Checking hmac v0.11.0 [INFO] [stderr] Checking rand v0.6.5 [INFO] [stderr] Checking headers v0.3.9 [INFO] [stderr] Checking directories v3.0.2 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking fd-lock v2.0.0 [INFO] [stderr] Checking positioned-io v0.2.2 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Checking text_io v0.1.12 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking buf_redux v0.8.4 [INFO] [stderr] Checking twoway v0.1.8 [INFO] [stderr] Checking mio-extras v2.0.6 [INFO] [stderr] Checking notify v4.0.17 [INFO] [stderr] Checking openssl v0.10.64 [INFO] [stderr] Checking tokio v1.37.0 [INFO] [stderr] Checking qiniu-multipart v0.17.3 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking regex-automata v0.4.6 [INFO] [stderr] Checking serde_json v1.0.115 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking toml v0.5.11 [INFO] [stderr] Checking dashmap v4.0.2 [INFO] [stderr] Checking regex v1.10.4 [INFO] [stderr] Checking env_logger v0.8.4 [INFO] [stderr] Checking native-tls v0.2.11 [INFO] [stderr] Checking multer v2.1.0 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tokio-stream v0.1.15 [INFO] [stderr] Checking h2 v0.3.25 [INFO] [stderr] Checking hyper v0.14.28 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking warp v0.3.6 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking qiniu-download v1.0.15 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `Result` is imported redundantly [INFO] [stdout] --> src/download.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | result::Result, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/94b72d6bebbddb5d17860914c4544f37365e988c/library/std/src/prelude/mod.rs:115:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Result` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Box` is imported redundantly [INFO] [stdout] --> src/base/credential.rs:50:15 [INFO] [stdout] | [INFO] [stdout] 50 | use std::{boxed::Box, error::Error, result::Result, sync::Arc, thread}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] --> /rustc/94b72d6bebbddb5d17860914c4544f37365e988c/library/std/src/prelude/mod.rs:115:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Box` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Result` is imported redundantly [INFO] [stdout] --> src/base/credential.rs:50:41 [INFO] [stdout] | [INFO] [stdout] 50 | use std::{boxed::Box, error::Error, result::Result, sync::Arc, thread}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/94b72d6bebbddb5d17860914c4544f37365e988c/library/std/src/prelude/mod.rs:115:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Result` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Result` is imported redundantly [INFO] [stdout] --> src/download.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | result::Result, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/94b72d6bebbddb5d17860914c4544f37365e988c/library/std/src/prelude/mod.rs:115:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Result` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Box` is imported redundantly [INFO] [stdout] --> src/download.rs:1239:9 [INFO] [stdout] | [INFO] [stdout] 1239 | boxed::Box, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] --> /rustc/94b72d6bebbddb5d17860914c4544f37365e988c/library/std/src/prelude/mod.rs:115:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Box` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Read` is imported redundantly [INFO] [stdout] --> src/download.rs:1241:9 [INFO] [stdout] | [INFO] [stdout] 1233 | *, [INFO] [stdout] | - the item `Read` is already imported here [INFO] [stdout] ... [INFO] [stdout] 1241 | io::Read, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Result` is imported redundantly [INFO] [stdout] --> src/download.rs:1242:9 [INFO] [stdout] | [INFO] [stdout] 1233 | *, [INFO] [stdout] | - the item `Result` is already imported here [INFO] [stdout] ... [INFO] [stdout] 1242 | result::Result, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Arc` is imported redundantly [INFO] [stdout] --> src/download.rs:1245:13 [INFO] [stdout] | [INFO] [stdout] 1233 | *, [INFO] [stdout] | - the item `Arc` is already imported here [INFO] [stdout] ... [INFO] [stdout] 1245 | Arc, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `HeaderValue` is imported redundantly [INFO] [stdout] --> src/download.rs:1254:39 [INFO] [stdout] | [INFO] [stdout] 1233 | *, [INFO] [stdout] | - the item `HeaderValue` is already imported here [INFO] [stdout] ... [INFO] [stdout] 1254 | http::{header::AUTHORIZATION, HeaderValue, StatusCode}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `StatusCode` is imported redundantly [INFO] [stdout] --> src/download.rs:1254:52 [INFO] [stdout] | [INFO] [stdout] 1233 | *, [INFO] [stdout] | - the item `StatusCode` is already imported here [INFO] [stdout] ... [INFO] [stdout] 1254 | http::{header::AUTHORIZATION, HeaderValue, StatusCode}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Mutex` is imported redundantly [INFO] [stdout] --> src/host_selector.rs:705:9 [INFO] [stdout] | [INFO] [stdout] 700 | use super::*; [INFO] [stdout] | -------- the item `Mutex` is already imported here [INFO] [stdout] ... [INFO] [stdout] 705 | sync::Mutex, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Box` is imported redundantly [INFO] [stdout] --> src/query.rs:493:9 [INFO] [stdout] | [INFO] [stdout] 493 | boxed::Box, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] --> /rustc/94b72d6bebbddb5d17860914c4544f37365e988c/library/std/src/prelude/mod.rs:115:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Box` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Result` is imported redundantly [INFO] [stdout] --> src/query.rs:495:9 [INFO] [stdout] | [INFO] [stdout] 495 | result::Result, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/94b72d6bebbddb5d17860914c4544f37365e988c/library/std/src/prelude/mod.rs:115:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Result` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Arc` is imported redundantly [INFO] [stdout] --> src/query.rs:498:13 [INFO] [stdout] | [INFO] [stdout] 487 | *, [INFO] [stdout] | - the item `Arc` is already imported here [INFO] [stdout] ... [INFO] [stdout] 498 | Arc, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/config/static_vars.rs:30:18 [INFO] [stdout] | [INFO] [stdout] 30 | unsafe { &mut QINIU_CONFIG }.get_or_init(init_config) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 30 | unsafe { addr_of_mut!(QINIU_CONFIG) }.get_or_init(init_config) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/config/static_vars.rs:34:18 [INFO] [stdout] | [INFO] [stdout] 34 | unsafe { &mut QINIU_CONFIG }.take(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 34 | unsafe { addr_of_mut!(QINIU_CONFIG) }.take(); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.25s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: buf_redux v0.8.4, qiniu-multipart v0.17.3 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "94583b22fe346f54ae3340d881102e6623b90cc549b5c1fd4193c3b298361c36", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "94583b22fe346f54ae3340d881102e6623b90cc549b5c1fd4193c3b298361c36", kill_on_drop: false }` [INFO] [stdout] 94583b22fe346f54ae3340d881102e6623b90cc549b5c1fd4193c3b298361c36