[INFO] fetching crate aiot 0.10.0... [INFO] checking aiot-0.10.0 against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] extracting crate aiot 0.10.0 into /workspace/builds/worker-5-tc2/source [INFO] started tweaking crates.io crate aiot 0.10.0 [INFO] finished tweaking crates.io crate aiot 0.10.0 [INFO] tweaked toml for crates.io crate aiot 0.10.0 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate aiot 0.10.0 on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate aiot 0.10.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e70586259a5717ce78303f3e5be7f503ad234f4c397d00941b18a7dbc7abc327 [INFO] running `Command { std: "docker" "start" "-a" "e70586259a5717ce78303f3e5be7f503ad234f4c397d00941b18a7dbc7abc327", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e70586259a5717ce78303f3e5be7f503ad234f4c397d00941b18a7dbc7abc327", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e70586259a5717ce78303f3e5be7f503ad234f4c397d00941b18a7dbc7abc327", kill_on_drop: false }` [INFO] [stdout] e70586259a5717ce78303f3e5be7f503ad234f4c397d00941b18a7dbc7abc327 [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 -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 84d7edeec5f433d8c70204922c57f8d3390f9c205376697130ea4930656f6637 [INFO] running `Command { std: "docker" "start" "-a" "84d7edeec5f433d8c70204922c57f8d3390f9c205376697130ea4930656f6637", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.39 [INFO] [stderr] Compiling unicode-ident v1.0.1 [INFO] [stderr] Compiling syn v1.0.96 [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Checking once_cell v1.12.0 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Checking http v0.2.8 [INFO] [stderr] Compiling openssl-sys v0.9.74 [INFO] [stderr] Checking futures-io v0.3.21 [INFO] [stderr] Compiling rustls v0.20.6 [INFO] [stderr] Compiling indexmap v1.9.0 [INFO] [stderr] Checking hashbrown v0.12.1 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Checking cpufeatures v0.2.2 [INFO] [stderr] Checking rustls-pemfile v1.0.0 [INFO] [stderr] Checking concurrent-queue v1.2.2 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Checking tracing-core v0.1.27 [INFO] [stderr] Compiling async-trait v0.1.56 [INFO] [stderr] Checking regex-syntax v0.6.26 [INFO] [stderr] Checking event-listener v2.5.2 [INFO] [stderr] Checking rustls-native-certs v0.6.2 [INFO] [stderr] Checking rustls-pemfile v0.3.0 [INFO] [stderr] Checking crc-catalog v2.1.0 [INFO] [stderr] Checking pollster v0.2.5 [INFO] [stderr] Compiling anyhow v1.0.57 [INFO] [stderr] Checking async-channel v1.6.1 [INFO] [stderr] Checking tracing v0.1.35 [INFO] [stderr] Checking remove_dir_all v0.5.3 [INFO] [stderr] Checking spin v0.9.3 [INFO] [stderr] Checking http-body v0.4.5 [INFO] [stderr] Checking crc v3.0.0 [INFO] [stderr] Checking mio v0.8.3 [INFO] [stderr] Checking socket2 v0.4.4 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking getrandom v0.2.7 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Compiling openssl v0.10.40 [INFO] [stderr] Compiling native-tls v0.2.10 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Checking tempdir v0.3.7 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking regex v1.5.6 [INFO] [stderr] Checking crypto-common v0.1.3 [INFO] [stderr] Checking block-buffer v0.10.2 [INFO] [stderr] Checking digest v0.10.3 [INFO] [stderr] Checking sha-1 v0.10.0 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking md-5 v0.10.1 [INFO] [stderr] Checking sha2 v0.10.2 [INFO] [stderr] Checking env_logger v0.9.0 [INFO] [stderr] Checking webpki v0.22.0 [INFO] [stderr] Checking sct v0.7.0 [INFO] [stderr] Checking webpki-roots v0.22.3 [INFO] [stderr] Compiling darling_core v0.13.4 [INFO] [stderr] Compiling tokio-macros v1.8.0 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling openssl-macros v0.1.0 [INFO] [stderr] Compiling serde_derive v1.0.137 [INFO] [stderr] Compiling thiserror-impl v1.0.31 [INFO] [stderr] Compiling enum-iterator-derive v0.7.0 [INFO] [stderr] Compiling enum-kinds v0.5.1 [INFO] [stderr] Compiling serde_repr v0.1.8 [INFO] [stderr] Checking enum-iterator v0.7.0 [INFO] [stderr] Checking tokio v1.19.2 [INFO] [stderr] Checking futures-util v0.3.21 [INFO] [stderr] Checking thiserror v1.0.31 [INFO] [stderr] Checking tungstenite v0.17.2 [INFO] [stderr] Compiling darling_macro v0.13.4 [INFO] [stderr] Compiling darling v0.13.4 [INFO] [stderr] Compiling serde_with_macros v1.5.2 [INFO] [stderr] Checking futures-executor v0.3.21 [INFO] [stderr] Checking futures v0.3.21 [INFO] [stderr] Checking tokio-util v0.7.3 [INFO] [stderr] Checking tokio-rustls v0.23.4 [INFO] [stderr] Checking tokio-native-tls v0.3.0 [INFO] [stderr] Checking serde v1.0.137 [INFO] [stderr] Checking tokio-tungstenite v0.17.1 [INFO] [stderr] Checking rumqttc v0.12.0 [INFO] [stderr] Checking h2 v0.3.13 [INFO] [stderr] Checking hyper v0.14.19 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde_json v1.0.81 [INFO] [stderr] Checking serde_with v1.14.0 [INFO] [stderr] Checking hyper-rustls v0.23.0 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.11 [INFO] [stderr] Checking aiot v0.10.0 (/opt/rustwide/workdir) [INFO] [stdout] error: this type will no longer be must used: std::result::Result<&[u8], Infallible> [INFO] [stdout] --> src/tunnel/protocol.rs:189:22 [INFO] [stdout] | [INFO] [stdout] 189 | let header = bytes[2..(2 + len)].try_into().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/tunnel/session.rs:83:60 [INFO] [stdout] | [INFO] [stdout] 83 | .ok_or(Error::SessionNotFound(id.to_string()))? [INFO] [stdout] | ____________________________________________________________^ [INFO] [stdout] 84 | | .clone(); [INFO] [stdout] | |____________________^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Session` does not implement `Clone`, so calling `clone` on `&Session` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 83 - .ok_or(Error::SessionNotFound(id.to_string()))? [INFO] [stdout] 84 - .clone(); [INFO] [stdout] 83 + .ok_or(Error::SessionNotFound(id.to_string()))?; [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `Session`, implement `Clone` for it [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub struct Session { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/tunnel/session.rs:96:60 [INFO] [stdout] | [INFO] [stdout] 96 | .ok_or(Error::SessionNotFound(id.to_string()))? [INFO] [stdout] | ____________________________________________________________^ [INFO] [stdout] 97 | | .clone(); [INFO] [stdout] | |____________________^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Session` does not implement `Clone`, so calling `clone` on `&Session` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 96 - .ok_or(Error::SessionNotFound(id.to_string()))? [INFO] [stdout] 97 - .clone(); [INFO] [stdout] 96 + .ok_or(Error::SessionNotFound(id.to_string()))?; [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `Session`, implement `Clone` for it [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub struct Session { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/util/auth.rs:122:31 [INFO] [stdout] | [INFO] [stdout] 122 | let mut cred = ALI_CA_CERT.clone().as_bytes(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result<&[u8], Infallible> [INFO] [stdout] --> src/tunnel/protocol.rs:189:22 [INFO] [stdout] | [INFO] [stdout] 189 | let header = bytes[2..(2 + len)].try_into().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/tunnel/session.rs:83:60 [INFO] [stdout] | [INFO] [stdout] 83 | .ok_or(Error::SessionNotFound(id.to_string()))? [INFO] [stdout] | ____________________________________________________________^ [INFO] [stdout] 84 | | .clone(); [INFO] [stdout] | |____________________^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Session` does not implement `Clone`, so calling `clone` on `&Session` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 83 - .ok_or(Error::SessionNotFound(id.to_string()))? [INFO] [stdout] 84 - .clone(); [INFO] [stdout] 83 + .ok_or(Error::SessionNotFound(id.to_string()))?; [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `Session`, implement `Clone` for it [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub struct Session { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/tunnel/session.rs:96:60 [INFO] [stdout] | [INFO] [stdout] 96 | .ok_or(Error::SessionNotFound(id.to_string()))? [INFO] [stdout] | ____________________________________________________________^ [INFO] [stdout] 97 | | .clone(); [INFO] [stdout] | |____________________^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Session` does not implement `Clone`, so calling `clone` on `&Session` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 96 - .ok_or(Error::SessionNotFound(id.to_string()))? [INFO] [stdout] 97 - .clone(); [INFO] [stdout] 96 + .ok_or(Error::SessionNotFound(id.to_string()))?; [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `Session`, implement `Clone` for it [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Clone)] [INFO] [stdout] 12 | pub struct Session { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/util/auth.rs:122:31 [INFO] [stdout] | [INFO] [stdout] 122 | let mut cred = ALI_CA_CERT.clone().as_bytes(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `aiot` (lib) due to 1 previous error; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `aiot` (lib test) due to 1 previous error; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "84d7edeec5f433d8c70204922c57f8d3390f9c205376697130ea4930656f6637", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "84d7edeec5f433d8c70204922c57f8d3390f9c205376697130ea4930656f6637", kill_on_drop: false }` [INFO] [stdout] 84d7edeec5f433d8c70204922c57f8d3390f9c205376697130ea4930656f6637