[INFO] fetching crate qiniu-http-client 0.2.4... [INFO] checking qiniu-http-client-0.2.4 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate qiniu-http-client 0.2.4 into /workspace/builds/worker-5-tc2/source [INFO] validating manifest of crates.io crate qiniu-http-client 0.2.4 on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate qiniu-http-client 0.2.4 [INFO] finished tweaking crates.io crate qiniu-http-client 0.2.4 [INFO] tweaked toml for crates.io crate qiniu-http-client 0.2.4 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 360 packages to latest compatible versions [INFO] [stderr] Adding async-channel v1.9.0 (available: v2.3.1) [INFO] [stderr] Adding async-once-cell v0.3.1 (available: v0.5.3) [INFO] [stderr] Adding async-std-resolver v0.22.0 (available: v0.24.1) [INFO] [stderr] Adding base64 v0.13.1 (available: v0.22.1) [INFO] [stderr] Adding base64 v0.21.7 (available: v0.22.1) [INFO] [stderr] Adding bitflags v1.3.2 (available: v2.6.0) [INFO] [stderr] Adding block-buffer v0.9.0 (available: v0.10.4) [INFO] [stderr] Adding bytes v0.5.6 (available: v1.7.2) [INFO] [stderr] Adding c-ares v7.8.0 (available: v11.0.0) [INFO] [stderr] Adding c-ares-resolver v7.6.0 (available: v10.0.0) [INFO] [stderr] Adding c-ares-sys v7.0.0 (available: v10.0.1) [INFO] [stderr] Adding c-types v3.0.1 (available: v4.0.0) [INFO] [stderr] Adding castaway v0.1.2 (available: v0.2.3) [INFO] [stderr] Adding cfg-expr v0.15.8 (available: v0.17.0) [INFO] [stderr] Adding convert_case v0.4.0 (available: v0.6.0) [INFO] [stderr] Adding core-foundation v0.9.4 (available: v0.10.0) [INFO] [stderr] Adding dashmap v5.5.3 (available: v6.1.0) [INFO] [stderr] Adding digest v0.9.0 (available: v0.10.7) [INFO] [stderr] Adding dirs v3.0.2 (available: v5.0.1) [INFO] [stderr] Adding dirs-sys v0.3.7 (available: v0.4.1) [INFO] [stderr] Adding dns-lookup v1.0.8 (available: v2.0.4) [INFO] [stderr] Adding duplicate v0.2.9 (available: v2.0.0) [INFO] [stderr] Adding endian-type v0.1.2 (available: v0.2.0) [INFO] [stderr] Adding enum-as-inner v0.5.1 (available: v0.6.1) [INFO] [stderr] Adding env_logger v0.10.2 (available: v0.11.5) [INFO] [stderr] Adding event-listener v2.5.3 (available: v5.3.1) [INFO] [stderr] Adding fastrand v1.9.0 (available: v2.1.1) [INFO] [stderr] Adding foreign-types v0.3.2 (available: v0.5.0) [INFO] [stderr] Adding foreign-types-shared v0.1.1 (available: v0.3.1) [INFO] [stderr] Adding fs4 v0.6.6 (available: v0.9.1) [INFO] [stderr] Adding futures-lite v1.13.0 (available: v2.3.0) [INFO] [stderr] Adding generic-array v0.14.7 (available: v1.1.0) [INFO] [stderr] Adding getrandom v0.1.16 (available: v0.2.15) [INFO] [stderr] Adding h2 v0.3.26 (available: v0.4.6) [INFO] [stderr] Adding headers v0.3.9 (available: v0.4.0) [INFO] [stderr] Adding headers-core v0.2.0 (available: v0.3.0) [INFO] [stderr] Adding heck v0.4.1 (available: v0.5.0) [INFO] [stderr] Adding hermit-abi v0.3.9 (available: v0.4.0) [INFO] [stderr] Adding hmac v0.11.0 (available: v0.12.1) [INFO] [stderr] Adding hostname v0.3.1 (available: v0.4.0) [INFO] [stderr] Adding http v0.2.12 (available: v1.1.0) [INFO] [stderr] Adding http-body v0.4.6 (available: v1.0.1) [INFO] [stderr] Adding hyper v0.14.30 (available: v1.4.1) [INFO] [stderr] Adding hyper-tls v0.5.0 (available: v0.6.0) [INFO] [stderr] Adding idna v0.2.3 (available: v1.0.2) [INFO] [stderr] Adding idna v0.4.0 (available: v1.0.2) [INFO] [stderr] Adding idna v0.5.0 (available: v1.0.2) [INFO] [stderr] Adding itertools v0.11.0 (available: v0.13.0) [INFO] [stderr] Adding linux-raw-sys v0.4.14 (available: v0.6.5) [INFO] [stderr] Adding md-5 v0.9.1 (available: v0.10.6) [INFO] [stderr] Adding multer v2.1.0 (available: v3.1.0) [INFO] [stderr] Adding num-rational v0.3.2 (available: v0.4.2) [INFO] [stderr] Adding pin-project-lite v0.1.12 (available: v0.2.14) [INFO] [stderr] Adding polling v2.8.0 (available: v3.7.3) [INFO] [stderr] Adding quick-error v1.2.3 (available: v2.0.1) [INFO] [stderr] Adding rand v0.7.3 (available: v0.8.5) [INFO] [stderr] Adding rand_chacha v0.2.2 (available: v0.3.1) [INFO] [stderr] Adding rand_core v0.5.1 (available: v0.6.4) [INFO] [stderr] Adding rand_hc v0.2.0 (available: v0.3.2) [INFO] [stderr] Adding reqwest v0.11.27 (available: v0.12.7) [INFO] [stderr] Adding ring v0.16.20 (available: v0.17.8) [INFO] [stderr] Adding rustls v0.20.9 (available: v0.23.13) [INFO] [stderr] Adding rustls v0.21.12 (available: v0.23.13) [INFO] [stderr] Adding rustls-pemfile v1.0.4 (available: v2.1.3) [INFO] [stderr] Adding rustls-webpki v0.101.7 (available: v0.102.8) [INFO] [stderr] Adding security-framework v2.11.1 (available: v3.0.0) [INFO] [stderr] Adding sha-1 v0.9.8 (available: v0.10.1) [INFO] [stderr] Adding socket2 v0.4.10 (available: v0.5.7) [INFO] [stderr] Adding spin v0.5.2 (available: v0.9.8) [INFO] [stderr] Adding subtle v2.4.1 (available: v2.6.1) [INFO] [stderr] Adding syn v1.0.109 (available: v2.0.77) [INFO] [stderr] Adding sync_wrapper v0.1.2 (available: v1.0.1) [INFO] [stderr] Adding system-configuration v0.5.1 (available: v0.6.1) [INFO] [stderr] Adding system-configuration-sys v0.5.0 (available: v0.6.0) [INFO] [stderr] Adding system-deps v6.2.2 (available: v7.0.3) [INFO] [stderr] Adding tokio v0.2.25 (available: v1.40.0) [INFO] [stderr] Adding tokio v0.3.7 (available: v1.40.0) [INFO] [stderr] Adding tokio-rustls v0.23.4 (available: v0.26.0) [INFO] [stderr] Adding tokio-tungstenite v0.21.0 (available: v0.24.0) [INFO] [stderr] Adding toml v0.5.11 (available: v0.8.19) [INFO] [stderr] Adding trust-dns-client v0.22.0 (available: v0.23.2) [INFO] [stderr] Adding trust-dns-proto v0.22.0 (available: v0.23.2) [INFO] [stderr] Adding trust-dns-resolver v0.22.0 (available: v0.23.2) [INFO] [stderr] Adding trust-dns-server v0.22.1 (available: v0.23.2) [INFO] [stderr] Adding tungstenite v0.21.0 (available: v0.24.0) [INFO] [stderr] Adding untrusted v0.7.1 (available: v0.9.0) [INFO] [stderr] Adding ureq v2.9.1 (available: v2.10.1) [INFO] [stderr] Adding wasi v0.9.0+wasi-snapshot-preview1 (available: v0.13.2+wasi-0.2.1) [INFO] [stderr] Adding wasi v0.11.0+wasi-snapshot-preview1 (available: v0.13.2+wasi-0.2.1) [INFO] [stderr] Adding webpki-roots v0.22.6 (available: v0.26.6) [INFO] [stderr] Adding webpki-roots v0.25.4 (available: v0.26.6) [INFO] [stderr] Adding windows-core v0.52.0 (available: v0.58.0) [INFO] [stderr] Adding windows-sys v0.48.0 (available: v0.59.0) [INFO] [stderr] Adding windows-sys v0.52.0 (available: v0.59.0) [INFO] [stderr] Adding windows-targets v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_aarch64_gnullvm v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_aarch64_msvc v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_i686_gnu v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_i686_msvc v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_x86_64_gnu v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_x86_64_gnullvm v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_x86_64_msvc v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding winreg v0.50.0 (available: v0.52.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5756b4f17b0eda37018c6dd2594b1758ec60deb9db7f5f3fa35f2fb0c11badc7 [INFO] running `Command { std: "docker" "start" "-a" "5756b4f17b0eda37018c6dd2594b1758ec60deb9db7f5f3fa35f2fb0c11badc7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5756b4f17b0eda37018c6dd2594b1758ec60deb9db7f5f3fa35f2fb0c11badc7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5756b4f17b0eda37018c6dd2594b1758ec60deb9db7f5f3fa35f2fb0c11badc7", kill_on_drop: false }` [INFO] [stdout] 5756b4f17b0eda37018c6dd2594b1758ec60deb9db7f5f3fa35f2fb0c11badc7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1e59caae852925a8cf4b90c4f50efb2fd00c00e076f3977545e953c71448bb4e [INFO] running `Command { std: "docker" "start" "-a" "1e59caae852925a8cf4b90c4f50efb2fd00c00e076f3977545e953c71448bb4e", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Fixed Cargo.toml (22 fixes) [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Checking value-bag v1.9.0 [INFO] [stderr] Checking bytes v1.7.2 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking unicode-bidi v0.3.15 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking tinyvec v1.8.0 [INFO] [stderr] Checking concurrent-queue v2.5.0 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking parking v2.2.1 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Compiling cc v1.1.21 [INFO] [stderr] Checking mio v1.0.2 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking cpufeatures v0.2.14 [INFO] [stderr] Compiling rustix v0.38.37 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking linux-raw-sys v0.4.14 [INFO] [stderr] Checking fastrand v2.1.1 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling semver v1.0.23 [INFO] [stderr] Checking event-listener v5.3.1 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking untrusted v0.9.0 [INFO] [stderr] Compiling httparse v1.9.4 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking smallstr v0.3.0 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking data-encoding v2.6.0 [INFO] [stderr] Checking event-listener-strategy v0.5.2 [INFO] [stderr] Compiling anyhow v1.0.89 [INFO] [stderr] Checking base64 v0.13.1 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Checking futures-lite v2.3.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking subtle v2.4.1 [INFO] [stderr] Checking unicode-normalization v0.1.24 [INFO] [stderr] Checking adler2 v2.0.0 [INFO] [stderr] Checking assert-impl v0.1.3 [INFO] [stderr] Checking opaque-debug v0.3.1 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Checking crypto-mac v0.11.1 [INFO] [stderr] Checking miniz_oxide v0.8.0 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking crc32fast v1.4.2 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Compiling qiniu-http v0.2.4 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Checking async-task v4.7.1 [INFO] [stderr] Checking ipnet v2.10.0 [INFO] [stderr] Checking matches v0.1.10 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking dyn-clone v1.0.17 [INFO] [stderr] Checking regex-syntax v0.8.4 [INFO] [stderr] Checking atomic-waker v1.1.2 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking flate2 v1.0.33 [INFO] [stderr] Checking piper v0.2.4 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking indexmap v2.5.0 [INFO] [stderr] Checking hmac v0.11.0 [INFO] [stderr] Checking sha-1 v0.9.8 [INFO] [stderr] Checking async-lock v3.4.0 [INFO] [stderr] Checking async-channel v2.3.1 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Checking url v2.5.2 [INFO] [stderr] Compiling multer v2.1.0 [INFO] [stderr] Checking nibble_vec v0.1.0 [INFO] [stderr] Checking endian-type v0.1.2 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Checking time-core v0.1.2 [INFO] [stderr] Checking webpki-roots v0.25.4 [INFO] [stderr] Checking num-conv v0.1.0 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking radix_trie v0.2.1 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Checking blocking v1.6.1 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking async-executor v1.13.1 [INFO] [stderr] Checking headers-core v0.2.0 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking socket2 v0.4.10 [INFO] [stderr] Checking dirs-sys v0.3.7 [INFO] [stderr] Checking encoding_rs v0.8.34 [INFO] [stderr] Checking event-listener v2.5.3 [INFO] [stderr] Checking iana-time-zone v0.1.61 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Checking dirs v3.0.2 [INFO] [stderr] Checking async-channel v1.9.0 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking headers v0.3.9 [INFO] [stderr] Checking dashmap v5.5.3 [INFO] [stderr] Checking md-5 v0.9.1 [INFO] [stderr] Checking dns-lookup v1.0.8 [INFO] [stderr] Checking kv-log-macro v1.0.7 [INFO] [stderr] Checking crossbeam-queue v0.3.11 [INFO] [stderr] Checking crossbeam-channel v0.5.13 [INFO] [stderr] Checking is-terminal v0.4.13 [INFO] [stderr] Checking maybe-owned v0.3.4 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking scoped-tls v1.0.1 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Compiling dyn-clonable-impl v0.9.0 [INFO] [stderr] Compiling enum-as-inner v0.5.1 [INFO] [stderr] Compiling duplicate v0.2.9 [INFO] [stderr] Compiling async-attributes v1.1.2 [INFO] [stderr] Checking dyn-clonable v0.9.0 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Compiling auto_impl v1.2.0 [INFO] [stderr] Compiling async-trait v0.1.83 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Checking regex v1.10.6 [INFO] [stderr] Checking fs4 v0.6.6 [INFO] [stderr] Checking tempfile v3.12.0 [INFO] [stderr] Checking tokio v1.40.0 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking env_logger v0.10.2 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking rustls-webpki v0.101.7 [INFO] [stderr] Checking sct v0.7.1 [INFO] [stderr] Checking thiserror v1.0.64 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking polling v3.7.3 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking async-io v2.3.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking async-global-executor v2.4.1 [INFO] [stderr] Checking async-std v1.13.0 [INFO] [stderr] Checking tungstenite v0.21.0 [INFO] [stderr] Checking ureq v2.9.1 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking tokio-util v0.7.12 [INFO] [stderr] Checking trust-dns-proto v0.22.0 [INFO] [stderr] Checking tokio-tungstenite v0.21.0 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking qiniu-utils v0.2.4 [INFO] [stderr] Checking serde_json v1.0.128 [INFO] [stderr] Checking toml v0.5.11 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking qiniu-credential v0.2.4 [INFO] [stderr] Checking qiniu-ureq v0.2.4 [INFO] [stderr] Checking qiniu-upload-token v0.2.4 [INFO] [stderr] Checking qiniu-http-client v0.2.4 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Checking trust-dns-client v0.22.0 [INFO] [stderr] Checking trust-dns-server v0.22.1 [INFO] [stderr] Checking hyper v0.14.30 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `qiniu_http_client` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/client/authorization.rs [INFO] [stderr] * src/client/callbacks.rs [INFO] [stderr] * src/lib.rs [INFO] [stderr] * src/regions/regions_provider/structs.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/client/callbacks.rs:404:26 [INFO] [stderr] | [INFO] [stderr] 404 | ($ctx:ident, $method_name:expr_2021, $method:ident) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/client/callbacks.rs:429:26 [INFO] [stderr] | [INFO] [stderr] 429 | ($ctx:ident, $method_name:expr_2021, $method:ident) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/regions/regions_provider/structs.rs:74:14 [INFO] [stderr] | [INFO] [stderr] 74 | ($service_name:expr_2021, $add_to_preferred_endpoint:ident, $add_to_alternative_endpoint:ident) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] warning: lint `indirect_structural_match` has been removed: converted into hard error, see RFC #3535 for more information [INFO] [stderr] --> src/lib.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 14 | indirect_structural_match, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(renamed_and_removed_lints)]` on by default [INFO] [stderr] [INFO] [stderr] error: usage of an `unsafe` block [INFO] [stderr] --> src/client/authorization.rs:167:5 [INFO] [stderr] | [INFO] [stderr] 167 | unsafe { set_var(DISABLE_QINIU_TIMESTAMP_SIGNATURE, "1") }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: the lint level is defined here [INFO] [stderr] --> src/lib.rs:17:5 [INFO] [stderr] | [INFO] [stderr] 17 | unsafe_code, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: usage of an `unsafe` block [INFO] [stderr] --> src/client/authorization.rs:173:5 [INFO] [stderr] | [INFO] [stderr] 173 | unsafe { remove_var(DISABLE_QINIU_TIMESTAMP_SIGNATURE) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 5 previous errors; 1 warning emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: lint `indirect_structural_match` has been removed: converted into hard error, see RFC #3535 for more information [INFO] [stdout] --> src/lib.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | indirect_structural_match, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(renamed_and_removed_lints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/client/callbacks.rs:404:39 [INFO] [stdout] | [INFO] [stdout] 404 | ($ctx:ident, $method_name:expr, $method:ident) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 404 | ($ctx:ident, $method_name:expr_2021, $method:ident) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/client/callbacks.rs:429:39 [INFO] [stdout] | [INFO] [stdout] 429 | ($ctx:ident, $method_name:expr, $method:ident) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 429 | ($ctx:ident, $method_name:expr_2021, $method:ident) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/regions/regions_provider/structs.rs:74:28 [INFO] [stdout] | [INFO] [stdout] 74 | ($service_name:expr, $add_to_preferred_endpoint:ident, $add_to_alternative_endpoint:ident) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 74 | ($service_name:expr_2021, $add_to_preferred_endpoint:ident, $add_to_alternative_endpoint:ident) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to deprecated safe function `std::env::set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/client/authorization.rs:166:5 [INFO] [stdout] | [INFO] [stdout] 166 | set_var(DISABLE_QINIU_TIMESTAMP_SIGNATURE, "1"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #27970 [INFO] [stdout] = note: `--force-warn deprecated-safe-2024` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: you can wrap the call in an `unsafe` block if you can guarantee that the environment access only happens in single-threaded code [INFO] [stdout] | [INFO] [stdout] 166 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 167 ~ unsafe { set_var(DISABLE_QINIU_TIMESTAMP_SIGNATURE, "1") }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to deprecated safe function `std::env::remove_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/client/authorization.rs:171:5 [INFO] [stdout] | [INFO] [stdout] 171 | remove_var(DISABLE_QINIU_TIMESTAMP_SIGNATURE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #27970 [INFO] [stdout] help: you can wrap the call in an `unsafe` block if you can guarantee that the environment access only happens in single-threaded code [INFO] [stdout] | [INFO] [stdout] 171 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 172 ~ unsafe { remove_var(DISABLE_QINIU_TIMESTAMP_SIGNATURE) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CacheController` is never used [INFO] [stdout] --> src/cache/traits.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 20 | pub(crate) trait CacheController { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ClearAll` is never constructed [INFO] [stdout] --> src/cache/traits.rs:136:5 [INFO] [stdout] | [INFO] [stdout] 134 | pub(super) enum PersistentCacheCommand { [INFO] [stdout] | ---------------------- variant in this enum [INFO] [stdout] 135 | Append(PersistentCacheEntry), [INFO] [stdout] 136 | ClearAll, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/cache/sync_cache.rs:215:12 [INFO] [stdout] | [INFO] [stdout] 215 | if let Ok(mut locked_data) = self.locked_data.lock() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^----------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/cache/sync_cache.rs:217:9 [INFO] [stdout] | [INFO] [stdout] 217 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 215 ~ match self.locked_data.lock() { Ok(mut locked_data) => { [INFO] [stdout] 216 | do_some_work_with_locked_data(self, &mut locked_data); [INFO] [stdout] 217 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/cache/sync_cache.rs:228:16 [INFO] [stdout] | [INFO] [stdout] 228 | if let Some(persistent) = &self.persistent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^--------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/cache/sync_cache.rs:230:13 [INFO] [stdout] | [INFO] [stdout] 230 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 228 ~ match &self.persistent { Some(persistent) => { [INFO] [stdout] 229 | load_cache_from_persistent_file(persistent.path(), self.cache_lifetime).unwrap_or_default() [INFO] [stdout] 230 ~ } _ => { [INFO] [stdout] 231 | Default::default() [INFO] [stdout] 232 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/cache/sync_cache.rs:249:20 [INFO] [stdout] | [INFO] [stdout] 249 | if let Some(value) = value { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^----- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/cache/sync_cache.rs:253:17 [INFO] [stdout] | [INFO] [stdout] 253 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 249 ~ match value { Some(value) => { [INFO] [stdout] 250 | if value.is_cache_valid(cache_lifetime) { [INFO] [stdout] 251 | cache.insert(key, value); [INFO] [stdout] 252 | } [INFO] [stdout] 253 ~ } _ => { [INFO] [stdout] 254 | cache.remove(&key); [INFO] [stdout] 255 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/cache/sync_cache.rs:270:12 [INFO] [stdout] | [INFO] [stdout] 270 | if let Some(persistent) = self.persistent.as_ref() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^---------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/cache/sync_cache.rs:274:9 [INFO] [stdout] | [INFO] [stdout] 274 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 270 ~ match self.persistent.as_ref() { Some(persistent) => { [INFO] [stdout] 271 | if persistent.auto_persistent() { [INFO] [stdout] 272 | persistent.commands().push(get_cmd()); [INFO] [stdout] 273 | } [INFO] [stdout] 274 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/cache/sync_cache.rs:286:29 [INFO] [stdout] | [INFO] [stdout] 286 | let need_to_shrink = if let Ok(mut locked_data) = inner.locked_data.try_lock() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^---------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/cache/sync_cache.rs:288:5 [INFO] [stdout] | [INFO] [stdout] 288 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 286 ~ let need_to_shrink = match inner.locked_data.try_lock() { Ok(mut locked_data) => { [INFO] [stdout] 287 | is_time_to_shrink(&inner, &mut locked_data, false) [INFO] [stdout] 288 ~ } _ => { [INFO] [stdout] 289 | // Looks like some work is being done, we don't want to spawn another thread [INFO] [stdout] 290 | info!("Cache has hired someone to do the housework, so we don't hire another now"); [INFO] [stdout] 291 | return; [INFO] [stdout] 292 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/cache/sync_cache.rs:299:12 [INFO] [stdout] | [INFO] [stdout] 299 | if let Err(err) = spawn("qiniu.rust-sdk.http-client.cache.Cache".into(), move || { [INFO] [stdout] | ____________^ - [INFO] [stdout] | |___________________________| [INFO] [stdout] 300 | || if let Ok(mut locked_data) = inner.locked_data.try_lock() { [INFO] [stdout] 301 | || info!("Cache spawns thread to do some housework"); [INFO] [stdout] 302 | || do_some_work_with_locked_data(&inner, &mut locked_data); [INFO] [stdout] 303 | || } [INFO] [stdout] 304 | || }) { [INFO] [stdout] | ||__________^ this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | |__________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/cache/sync_cache.rs:309:9 [INFO] [stdout] | [INFO] [stdout] 309 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 299 ~ match spawn("qiniu.rust-sdk.http-client.cache.Cache".into(), move || { [INFO] [stdout] 300 | if let Ok(mut locked_data) = inner.locked_data.try_lock() { [INFO] [stdout] ... [INFO] [stdout] 303 | } [INFO] [stdout] 304 ~ }) { Err(err) => { [INFO] [stdout] 305 | warn!( [INFO] [stdout] ... [INFO] [stdout] 308 | ); [INFO] [stdout] 309 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/cache/sync_cache.rs:300:16 [INFO] [stdout] | [INFO] [stdout] 300 | if let Ok(mut locked_data) = inner.locked_data.try_lock() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^---------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/cache/sync_cache.rs:303:13 [INFO] [stdout] | [INFO] [stdout] 303 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 300 ~ match inner.locked_data.try_lock() { Ok(mut locked_data) => { [INFO] [stdout] 301 | info!("Cache spawns thread to do some housework"); [INFO] [stdout] 302 | do_some_work_with_locked_data(&inner, &mut locked_data); [INFO] [stdout] 303 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/cache/sync_cache.rs:354:12 [INFO] [stdout] | [INFO] [stdout] 354 | if let Some(persistent) = &inner.persistent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^---------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/cache/sync_cache.rs:362:9 [INFO] [stdout] | [INFO] [stdout] 362 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 354 ~ match &inner.persistent { Some(persistent) => { [INFO] [stdout] 355 | if let Err(err) = _persistent_to_file(persistent.commands(), persistent.path(), inner.cache_lifetime) { [INFO] [stdout] ... [INFO] [stdout] 361 | } [INFO] [stdout] 362 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/cache/sync_cache.rs:355:16 [INFO] [stdout] | [INFO] [stdout] 355 | if let Err(err) = _persistent_to_file(persistent.commands(), persistent.path(), inner.cache_lifetime) { [INFO] [stdout] | ^^^^^^^^^^^^^^^----------------------------------------------------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/cache/sync_cache.rs:361:13 [INFO] [stdout] | [INFO] [stdout] 361 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 355 ~ match _persistent_to_file(persistent.commands(), persistent.path(), inner.cache_lifetime) { Err(err) => { [INFO] [stdout] 356 | warn!( [INFO] [stdout] ... [INFO] [stdout] 360 | ); [INFO] [stdout] 361 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/cache/sync_cache.rs:399:15 [INFO] [stdout] | [INFO] [stdout] 399 | while let Some(command) = commands.pop() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^-------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/cache/sync_cache.rs:410:9 [INFO] [stdout] | [INFO] [stdout] 410 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/cache/sync_cache.rs:423:12 [INFO] [stdout] | [INFO] [stdout] 423 | if let Some(value) = value { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^----- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/cache/sync_cache.rs:428:9 [INFO] [stdout] | [INFO] [stdout] 428 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 423 ~ match value { Some(value) => { [INFO] [stdout] 424 | if value.is_cache_valid(cache_lifetime) { [INFO] [stdout] ... [INFO] [stdout] 427 | } [INFO] [stdout] 428 ~ } _ => { [INFO] [stdout] 429 | let line = serde_json::to_string(&PersistentCacheEntry::<_, V>::new(key, None))?; [INFO] [stdout] 430 | writeln!(writer, "{line}")?; [INFO] [stdout] 431 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/client/chooser/ip.rs:138:12 [INFO] [stdout] | [INFO] [stdout] 138 | if let Err(err) = spawn("qiniu.rust-sdk.http-client.chooser.IpChooser".into(), move || { [INFO] [stdout] | ____________^ - [INFO] [stdout] | |___________________________| [INFO] [stdout] 139 | || if is_time_to_shrink_mut(&cloned) { [INFO] [stdout] 140 | || info!("Ip Chooser spawns thread to do some housework"); [INFO] [stdout] 141 | || shrink_cache(&cloned.blacklist, cloned.block_duration); [INFO] [stdout] 142 | || } [INFO] [stdout] 143 | || }) { [INFO] [stdout] | ||__________^ this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | |__________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/client/chooser/ip.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 138 ~ match spawn("qiniu.rust-sdk.http-client.chooser.IpChooser".into(), move || { [INFO] [stdout] 139 | if is_time_to_shrink_mut(&cloned) { [INFO] [stdout] ... [INFO] [stdout] 142 | } [INFO] [stdout] 143 ~ }) { Err(err) => { [INFO] [stdout] 144 | warn!("Ip Chooser was failed to spawn thread to do some housework: {}", err); [INFO] [stdout] 145 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/client/chooser/ip.rs:151:12 [INFO] [stdout] | [INFO] [stdout] 151 | if let Ok(locked_data) = inner.lock.try_lock() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^--------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/client/chooser/ip.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 153 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 151 ~ match inner.lock.try_lock() { Ok(locked_data) => { [INFO] [stdout] 152 | _is_time_to_shrink(inner.shrink_interval, &locked_data) [INFO] [stdout] 153 ~ } _ => { [INFO] [stdout] 154 | false [INFO] [stdout] 155 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/client/chooser/subnet.rs:194:12 [INFO] [stdout] | [INFO] [stdout] 194 | if let Err(err) = spawn("qiniu.rust-sdk.http-client.chooser.SubnetChooser".into(), move || { [INFO] [stdout] | ____________^ - [INFO] [stdout] | |___________________________| [INFO] [stdout] 195 | || if is_time_to_shrink_mut(&cloned) { [INFO] [stdout] 196 | || info!("Subnet Chooser spawns thread to do some housework"); [INFO] [stdout] 197 | || shrink_cache(&cloned.blacklist, cloned.block_duration); [INFO] [stdout] 198 | || } [INFO] [stdout] 199 | || }) { [INFO] [stdout] | ||__________^ this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | |__________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/client/chooser/subnet.rs:204:9 [INFO] [stdout] | [INFO] [stdout] 204 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 194 ~ match spawn("qiniu.rust-sdk.http-client.chooser.SubnetChooser".into(), move || { [INFO] [stdout] 195 | if is_time_to_shrink_mut(&cloned) { [INFO] [stdout] ... [INFO] [stdout] 198 | } [INFO] [stdout] 199 ~ }) { Err(err) => { [INFO] [stdout] 200 | warn!( [INFO] [stdout] ... [INFO] [stdout] 203 | ); [INFO] [stdout] 204 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/client/chooser/subnet.rs:210:12 [INFO] [stdout] | [INFO] [stdout] 210 | if let Ok(locked_data) = inner.lock.try_lock() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^--------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/client/chooser/subnet.rs:212:9 [INFO] [stdout] | [INFO] [stdout] 212 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 210 ~ match inner.lock.try_lock() { Ok(locked_data) => { [INFO] [stdout] 211 | _is_time_to_shrink(inner.shrink_interval, &locked_data) [INFO] [stdout] 212 ~ } _ => { [INFO] [stdout] 213 | false [INFO] [stdout] 214 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl std::io::Read + 'a` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/client/request/multipart.rs:322:66 [INFO] [stdout] | [INFO] [stdout] 322 | fn part_stream(&self, name: &str, part: SyncPart<'a>) -> impl Read + 'a { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, these lifetimes are in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/client/request/multipart.rs:322:24 [INFO] [stdout] | [INFO] [stdout] 322 | fn part_stream(&self, name: &str, part: SyncPart<'a>) -> impl Read + 'a { [INFO] [stdout] | ^ ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 322 | fn part_stream(&self, name: &str, part: SyncPart<'a>) -> impl Read + 'a + use<'a> { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/client/resolver/timeout.rs:68:20 [INFO] [stdout] | [INFO] [stdout] 68 | if let Err(err) = spawn( [INFO] [stdout] | ____________________^ - [INFO] [stdout] | |___________________________________| [INFO] [stdout] 69 | || "qiniu.rust-sdk.http-client.resolver.TimeoutResolver.resolve".into(), [INFO] [stdout] 70 | || move || { [INFO] [stdout] 71 | || let opts = ResolveOptions::from(&opts); [INFO] [stdout] 72 | || sender.send(inner.resolver.resolve(&domain, opts)).ok(); [INFO] [stdout] 73 | || }, [INFO] [stdout] 74 | || ) { [INFO] [stdout] | ||_________________^ this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | |_________________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/client/resolver/timeout.rs:76:17 [INFO] [stdout] | [INFO] [stdout] 76 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 68 ~ match spawn( [INFO] [stdout] 69 | "qiniu.rust-sdk.http-client.resolver.TimeoutResolver.resolve".into(), [INFO] [stdout] ... [INFO] [stdout] 73 | }, [INFO] [stdout] 74 ~ ) { Err(err) => { [INFO] [stdout] 75 | warn!("Timeout Resolver was failed to spawn thread to resolve domain: {}", err); [INFO] [stdout] 76 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/regions/cache_key.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | if let Some(ak_and_bucket) = &self.ak_and_bucket { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/regions/cache_key.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 58 ~ match &self.ak_and_bucket { Some(ak_and_bucket) => { [INFO] [stdout] 59 | s.collect_str(&format!( [INFO] [stdout] ... [INFO] [stdout] 62 | )) [INFO] [stdout] 63 ~ } _ => { [INFO] [stdout] 64 | s.collect_str(&format!("qiniu-cache-key-v1:{}", self.uc_md5_hex)) [INFO] [stdout] 65 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/regions/regions_provider/mod.rs:366:12 [INFO] [stdout] | [INFO] [stdout] 366 | if let Some(region) = value.regions.into_iter().next() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^-------------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/regions/regions_provider/mod.rs:372:9 [INFO] [stdout] | [INFO] [stdout] 372 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 366 ~ match value.regions.into_iter().next() { Some(region) => { [INFO] [stdout] 367 | Ok(Self { [INFO] [stdout] ... [INFO] [stdout] 371 | }) [INFO] [stdout] 372 ~ } _ => { [INFO] [stdout] 373 | Err(EmptyRegionError) [INFO] [stdout] 374 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/regions/regions_provider/all_regions_provider.rs:208:16 [INFO] [stdout] | [INFO] [stdout] 208 | if let Some(uc_endpoints) = self.uc_endpoints.as_ref() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^-----------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/regions/regions_provider/all_regions_provider.rs:210:13 [INFO] [stdout] | [INFO] [stdout] 210 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 208 ~ match self.uc_endpoints.as_ref() { Some(uc_endpoints) => { [INFO] [stdout] 209 | uc_endpoints [INFO] [stdout] 210 ~ } _ => { [INFO] [stdout] 211 | Endpoints::public_uc_endpoints() [INFO] [stdout] 212 ~ }}, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/spawn.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | if let Some(dequeue) = threads_map.get_mut(&task_name) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^-----------^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/spawn.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 16 ~ match threads_map.get_mut(&task_name) { Some(dequeue) => { [INFO] [stdout] 17 | dequeue.push_back(Box::new(f)); [INFO] [stdout] 18 | return Ok(()); [INFO] [stdout] 19 ~ } _ => { [INFO] [stdout] 20 | let mut dequeue = TasksDequeue::with_capacity(1); [INFO] [stdout] ... [INFO] [stdout] 23 | return spawn_inner(task_name); [INFO] [stdout] 24 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/spawn.rs:28:19 [INFO] [stdout] | [INFO] [stdout] 28 | while let Some(task) = get_task(&task_name) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^-------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/spawn.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking warp v0.3.7 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `qiniu_http_client` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/client/authorization.rs [INFO] [stderr] * src/client/callbacks.rs [INFO] [stderr] * src/lib.rs [INFO] [stderr] * src/regions/regions_provider/structs.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/client/callbacks.rs:404:26 [INFO] [stderr] | [INFO] [stderr] 404 | ($ctx:ident, $method_name:expr_2021, $method:ident) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/client/callbacks.rs:429:26 [INFO] [stderr] | [INFO] [stderr] 429 | ($ctx:ident, $method_name:expr_2021, $method:ident) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/regions/regions_provider/structs.rs:74:14 [INFO] [stderr] | [INFO] [stderr] 74 | ($service_name:expr_2021, $add_to_preferred_endpoint:ident, $add_to_alternative_endpoint:ident) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] warning: lint `indirect_structural_match` has been removed: converted into hard error, see RFC #3535 for more information [INFO] [stderr] --> src/lib.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 14 | indirect_structural_match, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(renamed_and_removed_lints)]` on by default [INFO] [stderr] [INFO] [stderr] error: usage of an `unsafe` block [INFO] [stderr] --> src/client/authorization.rs:167:5 [INFO] [stderr] | [INFO] [stderr] 167 | unsafe { set_var(DISABLE_QINIU_TIMESTAMP_SIGNATURE, "1") }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: the lint level is defined here [INFO] [stderr] --> src/lib.rs:17:5 [INFO] [stderr] | [INFO] [stderr] 17 | unsafe_code, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: usage of an `unsafe` block [INFO] [stderr] --> src/client/authorization.rs:173:5 [INFO] [stderr] | [INFO] [stderr] 173 | unsafe { remove_var(DISABLE_QINIU_TIMESTAMP_SIGNATURE) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 5 previous errors; 1 warning emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/test_utils/resolver.rs:40:67 [INFO] [stdout] | [INFO] [stdout] 40 | let ips = vec![IpAddr::V4(Ipv4Addr::from(thread_rng().gen::()))]; [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] = note: `--force-warn keyword-idents-2024` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lint `indirect_structural_match` has been removed: converted into hard error, see RFC #3535 for more information [INFO] [stdout] --> src/lib.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | indirect_structural_match, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(renamed_and_removed_lints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/client/callbacks.rs:404:39 [INFO] [stdout] | [INFO] [stdout] 404 | ($ctx:ident, $method_name:expr, $method:ident) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 404 | ($ctx:ident, $method_name:expr_2021, $method:ident) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/client/callbacks.rs:429:39 [INFO] [stdout] | [INFO] [stdout] 429 | ($ctx:ident, $method_name:expr, $method:ident) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 429 | ($ctx:ident, $method_name:expr_2021, $method:ident) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/regions/regions_provider/structs.rs:74:28 [INFO] [stdout] | [INFO] [stdout] 74 | ($service_name:expr, $add_to_preferred_endpoint:ident, $add_to_alternative_endpoint:ident) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 74 | ($service_name:expr_2021, $add_to_preferred_endpoint:ident, $add_to_alternative_endpoint:ident) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to deprecated safe function `std::env::set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/client/authorization.rs:166:5 [INFO] [stdout] | [INFO] [stdout] 166 | set_var(DISABLE_QINIU_TIMESTAMP_SIGNATURE, "1"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #27970 [INFO] [stdout] = note: `--force-warn deprecated-safe-2024` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: you can wrap the call in an `unsafe` block if you can guarantee that the environment access only happens in single-threaded code [INFO] [stdout] | [INFO] [stdout] 166 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 167 ~ unsafe { set_var(DISABLE_QINIU_TIMESTAMP_SIGNATURE, "1") }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to deprecated safe function `std::env::remove_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/client/authorization.rs:171:5 [INFO] [stdout] | [INFO] [stdout] 171 | remove_var(DISABLE_QINIU_TIMESTAMP_SIGNATURE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #27970 [INFO] [stdout] help: you can wrap the call in an `unsafe` block if you can guarantee that the environment access only happens in single-threaded code [INFO] [stdout] | [INFO] [stdout] 171 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 172 ~ unsafe { remove_var(DISABLE_QINIU_TIMESTAMP_SIGNATURE) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/cache/sync_cache.rs:215:12 [INFO] [stdout] | [INFO] [stdout] 215 | if let Ok(mut locked_data) = self.locked_data.lock() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^----------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/cache/sync_cache.rs:217:9 [INFO] [stdout] | [INFO] [stdout] 217 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 215 ~ match self.locked_data.lock() { Ok(mut locked_data) => { [INFO] [stdout] 216 | do_some_work_with_locked_data(self, &mut locked_data); [INFO] [stdout] 217 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/cache/sync_cache.rs:228:16 [INFO] [stdout] | [INFO] [stdout] 228 | if let Some(persistent) = &self.persistent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^--------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/cache/sync_cache.rs:230:13 [INFO] [stdout] | [INFO] [stdout] 230 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 228 ~ match &self.persistent { Some(persistent) => { [INFO] [stdout] 229 | load_cache_from_persistent_file(persistent.path(), self.cache_lifetime).unwrap_or_default() [INFO] [stdout] 230 ~ } _ => { [INFO] [stdout] 231 | Default::default() [INFO] [stdout] 232 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/cache/sync_cache.rs:249:20 [INFO] [stdout] | [INFO] [stdout] 249 | if let Some(value) = value { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^----- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/cache/sync_cache.rs:253:17 [INFO] [stdout] | [INFO] [stdout] 253 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 249 ~ match value { Some(value) => { [INFO] [stdout] 250 | if value.is_cache_valid(cache_lifetime) { [INFO] [stdout] 251 | cache.insert(key, value); [INFO] [stdout] 252 | } [INFO] [stdout] 253 ~ } _ => { [INFO] [stdout] 254 | cache.remove(&key); [INFO] [stdout] 255 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/cache/sync_cache.rs:270:12 [INFO] [stdout] | [INFO] [stdout] 270 | if let Some(persistent) = self.persistent.as_ref() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^---------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/cache/sync_cache.rs:274:9 [INFO] [stdout] | [INFO] [stdout] 274 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 270 ~ match self.persistent.as_ref() { Some(persistent) => { [INFO] [stdout] 271 | if persistent.auto_persistent() { [INFO] [stdout] 272 | persistent.commands().push(get_cmd()); [INFO] [stdout] 273 | } [INFO] [stdout] 274 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/cache/sync_cache.rs:286:29 [INFO] [stdout] | [INFO] [stdout] 286 | let need_to_shrink = if let Ok(mut locked_data) = inner.locked_data.try_lock() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^---------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/cache/sync_cache.rs:288:5 [INFO] [stdout] | [INFO] [stdout] 288 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 286 ~ let need_to_shrink = match inner.locked_data.try_lock() { Ok(mut locked_data) => { [INFO] [stdout] 287 | is_time_to_shrink(&inner, &mut locked_data, false) [INFO] [stdout] 288 ~ } _ => { [INFO] [stdout] 289 | // Looks like some work is being done, we don't want to spawn another thread [INFO] [stdout] 290 | info!("Cache has hired someone to do the housework, so we don't hire another now"); [INFO] [stdout] 291 | return; [INFO] [stdout] 292 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/cache/sync_cache.rs:299:12 [INFO] [stdout] | [INFO] [stdout] 299 | if let Err(err) = spawn("qiniu.rust-sdk.http-client.cache.Cache".into(), move || { [INFO] [stdout] | ____________^ - [INFO] [stdout] | |___________________________| [INFO] [stdout] 300 | || if let Ok(mut locked_data) = inner.locked_data.try_lock() { [INFO] [stdout] 301 | || info!("Cache spawns thread to do some housework"); [INFO] [stdout] 302 | || do_some_work_with_locked_data(&inner, &mut locked_data); [INFO] [stdout] 303 | || } [INFO] [stdout] 304 | || }) { [INFO] [stdout] | ||__________^ this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | |__________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/cache/sync_cache.rs:309:9 [INFO] [stdout] | [INFO] [stdout] 309 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 299 ~ match spawn("qiniu.rust-sdk.http-client.cache.Cache".into(), move || { [INFO] [stdout] 300 | if let Ok(mut locked_data) = inner.locked_data.try_lock() { [INFO] [stdout] ... [INFO] [stdout] 303 | } [INFO] [stdout] 304 ~ }) { Err(err) => { [INFO] [stdout] 305 | warn!( [INFO] [stdout] ... [INFO] [stdout] 308 | ); [INFO] [stdout] 309 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/cache/sync_cache.rs:300:16 [INFO] [stdout] | [INFO] [stdout] 300 | if let Ok(mut locked_data) = inner.locked_data.try_lock() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^---------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/cache/sync_cache.rs:303:13 [INFO] [stdout] | [INFO] [stdout] 303 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 300 ~ match inner.locked_data.try_lock() { Ok(mut locked_data) => { [INFO] [stdout] 301 | info!("Cache spawns thread to do some housework"); [INFO] [stdout] 302 | do_some_work_with_locked_data(&inner, &mut locked_data); [INFO] [stdout] 303 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/cache/sync_cache.rs:354:12 [INFO] [stdout] | [INFO] [stdout] 354 | if let Some(persistent) = &inner.persistent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^---------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/cache/sync_cache.rs:362:9 [INFO] [stdout] | [INFO] [stdout] 362 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 354 ~ match &inner.persistent { Some(persistent) => { [INFO] [stdout] 355 | if let Err(err) = _persistent_to_file(persistent.commands(), persistent.path(), inner.cache_lifetime) { [INFO] [stdout] ... [INFO] [stdout] 361 | } [INFO] [stdout] 362 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/cache/sync_cache.rs:355:16 [INFO] [stdout] | [INFO] [stdout] 355 | if let Err(err) = _persistent_to_file(persistent.commands(), persistent.path(), inner.cache_lifetime) { [INFO] [stdout] | ^^^^^^^^^^^^^^^----------------------------------------------------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/cache/sync_cache.rs:361:13 [INFO] [stdout] | [INFO] [stdout] 361 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 355 ~ match _persistent_to_file(persistent.commands(), persistent.path(), inner.cache_lifetime) { Err(err) => { [INFO] [stdout] 356 | warn!( [INFO] [stdout] ... [INFO] [stdout] 360 | ); [INFO] [stdout] 361 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/cache/sync_cache.rs:399:15 [INFO] [stdout] | [INFO] [stdout] 399 | while let Some(command) = commands.pop() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^-------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/cache/sync_cache.rs:410:9 [INFO] [stdout] | [INFO] [stdout] 410 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/cache/sync_cache.rs:423:12 [INFO] [stdout] | [INFO] [stdout] 423 | if let Some(value) = value { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^----- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/cache/sync_cache.rs:428:9 [INFO] [stdout] | [INFO] [stdout] 428 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 423 ~ match value { Some(value) => { [INFO] [stdout] 424 | if value.is_cache_valid(cache_lifetime) { [INFO] [stdout] ... [INFO] [stdout] 427 | } [INFO] [stdout] 428 ~ } _ => { [INFO] [stdout] 429 | let line = serde_json::to_string(&PersistentCacheEntry::<_, V>::new(key, None))?; [INFO] [stdout] 430 | writeln!(writer, "{line}")?; [INFO] [stdout] 431 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/client/chooser/ip.rs:138:12 [INFO] [stdout] | [INFO] [stdout] 138 | if let Err(err) = spawn("qiniu.rust-sdk.http-client.chooser.IpChooser".into(), move || { [INFO] [stdout] | ____________^ - [INFO] [stdout] | |___________________________| [INFO] [stdout] 139 | || if is_time_to_shrink_mut(&cloned) { [INFO] [stdout] 140 | || info!("Ip Chooser spawns thread to do some housework"); [INFO] [stdout] 141 | || shrink_cache(&cloned.blacklist, cloned.block_duration); [INFO] [stdout] 142 | || } [INFO] [stdout] 143 | || }) { [INFO] [stdout] | ||__________^ this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | |__________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/client/chooser/ip.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 138 ~ match spawn("qiniu.rust-sdk.http-client.chooser.IpChooser".into(), move || { [INFO] [stdout] 139 | if is_time_to_shrink_mut(&cloned) { [INFO] [stdout] ... [INFO] [stdout] 142 | } [INFO] [stdout] 143 ~ }) { Err(err) => { [INFO] [stdout] 144 | warn!("Ip Chooser was failed to spawn thread to do some housework: {}", err); [INFO] [stdout] 145 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/client/chooser/ip.rs:151:12 [INFO] [stdout] | [INFO] [stdout] 151 | if let Ok(locked_data) = inner.lock.try_lock() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^--------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/client/chooser/ip.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 153 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 151 ~ match inner.lock.try_lock() { Ok(locked_data) => { [INFO] [stdout] 152 | _is_time_to_shrink(inner.shrink_interval, &locked_data) [INFO] [stdout] 153 ~ } _ => { [INFO] [stdout] 154 | false [INFO] [stdout] 155 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/client/chooser/subnet.rs:194:12 [INFO] [stdout] | [INFO] [stdout] 194 | if let Err(err) = spawn("qiniu.rust-sdk.http-client.chooser.SubnetChooser".into(), move || { [INFO] [stdout] | ____________^ - [INFO] [stdout] | |___________________________| [INFO] [stdout] 195 | || if is_time_to_shrink_mut(&cloned) { [INFO] [stdout] 196 | || info!("Subnet Chooser spawns thread to do some housework"); [INFO] [stdout] 197 | || shrink_cache(&cloned.blacklist, cloned.block_duration); [INFO] [stdout] 198 | || } [INFO] [stdout] 199 | || }) { [INFO] [stdout] | ||__________^ this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | |__________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/client/chooser/subnet.rs:204:9 [INFO] [stdout] | [INFO] [stdout] 204 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 194 ~ match spawn("qiniu.rust-sdk.http-client.chooser.SubnetChooser".into(), move || { [INFO] [stdout] 195 | if is_time_to_shrink_mut(&cloned) { [INFO] [stdout] ... [INFO] [stdout] 198 | } [INFO] [stdout] 199 ~ }) { Err(err) => { [INFO] [stdout] 200 | warn!( [INFO] [stdout] ... [INFO] [stdout] 203 | ); [INFO] [stdout] 204 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/client/chooser/subnet.rs:210:12 [INFO] [stdout] | [INFO] [stdout] 210 | if let Ok(locked_data) = inner.lock.try_lock() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^--------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/client/chooser/subnet.rs:212:9 [INFO] [stdout] | [INFO] [stdout] 212 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 210 ~ match inner.lock.try_lock() { Ok(locked_data) => { [INFO] [stdout] 211 | _is_time_to_shrink(inner.shrink_interval, &locked_data) [INFO] [stdout] 212 ~ } _ => { [INFO] [stdout] 213 | false [INFO] [stdout] 214 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl std::io::Read + 'a` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/client/request/multipart.rs:322:66 [INFO] [stdout] | [INFO] [stdout] 322 | fn part_stream(&self, name: &str, part: SyncPart<'a>) -> impl Read + 'a { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, these lifetimes are in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/client/request/multipart.rs:322:24 [INFO] [stdout] | [INFO] [stdout] 322 | fn part_stream(&self, name: &str, part: SyncPart<'a>) -> impl Read + 'a { [INFO] [stdout] | ^ ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 322 | fn part_stream(&self, name: &str, part: SyncPart<'a>) -> impl Read + 'a + use<'a> { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/client/resolver/timeout.rs:68:20 [INFO] [stdout] | [INFO] [stdout] 68 | if let Err(err) = spawn( [INFO] [stdout] | ____________________^ - [INFO] [stdout] | |___________________________________| [INFO] [stdout] 69 | || "qiniu.rust-sdk.http-client.resolver.TimeoutResolver.resolve".into(), [INFO] [stdout] 70 | || move || { [INFO] [stdout] 71 | || let opts = ResolveOptions::from(&opts); [INFO] [stdout] 72 | || sender.send(inner.resolver.resolve(&domain, opts)).ok(); [INFO] [stdout] 73 | || }, [INFO] [stdout] 74 | || ) { [INFO] [stdout] | ||_________________^ this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | |_________________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/client/resolver/timeout.rs:76:17 [INFO] [stdout] | [INFO] [stdout] 76 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 68 ~ match spawn( [INFO] [stdout] 69 | "qiniu.rust-sdk.http-client.resolver.TimeoutResolver.resolve".into(), [INFO] [stdout] ... [INFO] [stdout] 73 | }, [INFO] [stdout] 74 ~ ) { Err(err) => { [INFO] [stdout] 75 | warn!("Timeout Resolver was failed to spawn thread to resolve domain: {}", err); [INFO] [stdout] 76 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/regions/cache_key.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | if let Some(ak_and_bucket) = &self.ak_and_bucket { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/regions/cache_key.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 58 ~ match &self.ak_and_bucket { Some(ak_and_bucket) => { [INFO] [stdout] 59 | s.collect_str(&format!( [INFO] [stdout] ... [INFO] [stdout] 62 | )) [INFO] [stdout] 63 ~ } _ => { [INFO] [stdout] 64 | s.collect_str(&format!("qiniu-cache-key-v1:{}", self.uc_md5_hex)) [INFO] [stdout] 65 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/regions/regions_provider/mod.rs:366:12 [INFO] [stdout] | [INFO] [stdout] 366 | if let Some(region) = value.regions.into_iter().next() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^-------------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/regions/regions_provider/mod.rs:372:9 [INFO] [stdout] | [INFO] [stdout] 372 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 366 ~ match value.regions.into_iter().next() { Some(region) => { [INFO] [stdout] 367 | Ok(Self { [INFO] [stdout] ... [INFO] [stdout] 371 | }) [INFO] [stdout] 372 ~ } _ => { [INFO] [stdout] 373 | Err(EmptyRegionError) [INFO] [stdout] 374 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/regions/regions_provider/all_regions_provider.rs:208:16 [INFO] [stdout] | [INFO] [stdout] 208 | if let Some(uc_endpoints) = self.uc_endpoints.as_ref() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^-----------------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/regions/regions_provider/all_regions_provider.rs:210:13 [INFO] [stdout] | [INFO] [stdout] 210 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 208 ~ match self.uc_endpoints.as_ref() { Some(uc_endpoints) => { [INFO] [stdout] 209 | uc_endpoints [INFO] [stdout] 210 ~ } _ => { [INFO] [stdout] 211 | Endpoints::public_uc_endpoints() [INFO] [stdout] 212 ~ }}, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/spawn.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | if let Some(dequeue) = threads_map.get_mut(&task_name) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^-----------^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/spawn.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 16 ~ match threads_map.get_mut(&task_name) { Some(dequeue) => { [INFO] [stdout] 17 | dequeue.push_back(Box::new(f)); [INFO] [stdout] 18 | return Ok(()); [INFO] [stdout] 19 ~ } _ => { [INFO] [stdout] 20 | let mut dequeue = TasksDequeue::with_capacity(1); [INFO] [stdout] ... [INFO] [stdout] 23 | return spawn_inner(task_name); [INFO] [stdout] 24 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/spawn.rs:28:19 [INFO] [stdout] | [INFO] [stdout] 28 | while let Some(task) = get_task(&task_name) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^-------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/spawn.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 21.85s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking qiniu-http-client v0.2.4 (/tmp/fixit) [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/test_utils/resolver.rs:40:67 [INFO] [stdout] | [INFO] [stdout] 40 | let ips = vec![IpAddr::V4(Ipv4Addr::from(thread_rng().gen::()))]; [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 40 | let ips = vec![IpAddr::V4(Ipv4Addr::from(thread_rng().r#gen::()))]; [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lint `indirect_structural_match` has been removed: converted into hard error, see RFC #3535 for more information [INFO] [stdout] --> src/lib.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | indirect_structural_match, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(renamed_and_removed_lints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lint `indirect_structural_match` has been removed: converted into hard error, see RFC #3535 for more information [INFO] [stdout] --> src/lib.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | indirect_structural_match, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(renamed_and_removed_lints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/client/authorization.rs:166:5 [INFO] [stdout] | [INFO] [stdout] 166 | set_var(DISABLE_QINIU_TIMESTAMP_SIGNATURE, "1"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `remove_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/client/authorization.rs:171:5 [INFO] [stdout] | [INFO] [stdout] 171 | remove_var(DISABLE_QINIU_TIMESTAMP_SIGNATURE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/client/authorization.rs:166:5 [INFO] [stdout] | [INFO] [stdout] 166 | set_var(DISABLE_QINIU_TIMESTAMP_SIGNATURE, "1"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `remove_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/client/authorization.rs:171:5 [INFO] [stdout] | [INFO] [stdout] 171 | remove_var(DISABLE_QINIU_TIMESTAMP_SIGNATURE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] error: could not compile `qiniu-http-client` (lib) due to 3 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 3 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] error: could not compile `qiniu-http-client` (lib test) due to 4 previous errors; 1 warning emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "1e59caae852925a8cf4b90c4f50efb2fd00c00e076f3977545e953c71448bb4e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1e59caae852925a8cf4b90c4f50efb2fd00c00e076f3977545e953c71448bb4e", kill_on_drop: false }` [INFO] [stdout] 1e59caae852925a8cf4b90c4f50efb2fd00c00e076f3977545e953c71448bb4e