[INFO] fetching crate br-web 0.0.2... [INFO] checking br-web-0.0.2 against try#024378d9203a4009ed73d6db2681b88a8d74ce7a for pr-112160 [INFO] extracting crate br-web 0.0.2 into /workspace/builds/worker-0-tc2/source [INFO] validating manifest of crates.io crate br-web 0.0.2 on toolchain 024378d9203a4009ed73d6db2681b88a8d74ce7a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate br-web 0.0.2 [INFO] finished tweaking crates.io crate br-web 0.0.2 [INFO] tweaked toml for crates.io crate br-web 0.0.2 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate crates.io crate br-web 0.0.2 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" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1dcc566ae7d8392755703368fca785caa4466b32eb695bec97229062e2500bb3 [INFO] running `Command { std: "docker" "start" "-a" "1dcc566ae7d8392755703368fca785caa4466b32eb695bec97229062e2500bb3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1dcc566ae7d8392755703368fca785caa4466b32eb695bec97229062e2500bb3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1dcc566ae7d8392755703368fca785caa4466b32eb695bec97229062e2500bb3", kill_on_drop: false }` [INFO] [stdout] 1dcc566ae7d8392755703368fca785caa4466b32eb695bec97229062e2500bb3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7e002d16ea49f66705b9a1e25ad568e260b418d6a6ade21f65c027ed9b711679 [INFO] running `Command { std: "docker" "start" "-a" "7e002d16ea49f66705b9a1e25ad568e260b418d6a6ade21f65c027ed9b711679", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.140 [INFO] [stderr] Compiling proc-macro2 v1.0.55 [INFO] [stderr] Compiling quote v1.0.26 [INFO] [stderr] Compiling unicode-ident v1.0.8 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Checking miniz_oxide v0.6.2 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Checking once_cell v1.17.1 [INFO] [stderr] Checking crossbeam-channel v0.5.7 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Checking simd-adler32 v0.3.5 [INFO] [stderr] Checking cpufeatures v0.2.6 [INFO] [stderr] Checking digest v0.10.6 [INFO] [stderr] Checking spin v0.9.7 [INFO] [stderr] Checking weezl v0.1.7 [INFO] [stderr] Checking futures-sink v0.3.28 [INFO] [stderr] Checking bytemuck v1.13.1 [INFO] [stderr] Checking block-padding v0.3.3 [INFO] [stderr] Compiling pkg-config v0.3.26 [INFO] [stderr] Checking half v2.2.1 [INFO] [stderr] Checking bit_field v0.10.2 [INFO] [stderr] Checking zune-inflate v0.2.53 [INFO] [stderr] Checking lebe v0.5.2 [INFO] [stderr] Checking color_quant v1.1.0 [INFO] [stderr] Checking qoi v0.4.1 [INFO] [stderr] Checking inout v0.1.3 [INFO] [stderr] Checking aho-corasick v0.7.20 [INFO] [stderr] Checking gif v0.12.0 [INFO] [stderr] Compiling ahash v0.8.3 [INFO] [stderr] Compiling libdeflate-sys v0.11.0 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Checking regex-syntax v0.6.29 [INFO] [stderr] Checking iana-time-zone v0.1.54 [INFO] [stderr] Compiling serde v1.0.159 [INFO] [stderr] Compiling io-lifetimes v1.0.9 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking sha2 v0.10.6 [INFO] [stderr] Checking flate2 v1.0.25 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking num-rational v0.4.1 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking json v0.12.4 [INFO] [stderr] Compiling rustix v0.37.6 [INFO] [stderr] Checking base64 v0.21.0 [INFO] [stderr] Checking thread_local v1.1.7 [INFO] [stderr] Checking sha2 v0.9.9 [INFO] [stderr] Compiling openssl-sys v0.9.84 [INFO] [stderr] Checking typed-arena v2.0.2 [INFO] [stderr] Checking funty v2.0.0 [INFO] [stderr] Compiling openssl v0.10.49 [INFO] [stderr] Checking linux-raw-sys v0.3.1 [INFO] [stderr] Checking zopfli v0.7.2 [INFO] [stderr] Checking png v0.17.7 [INFO] [stderr] Checking zip v0.6.4 [INFO] [stderr] Checking cbc v0.1.2 [INFO] [stderr] Checking sha256 v1.1.2 [INFO] [stderr] Checking aes v0.8.2 [INFO] [stderr] Checking md-5 v0.10.5 [INFO] [stderr] Checking rgb v0.8.36 [INFO] [stderr] Checking time-core v0.1.0 [INFO] [stderr] Compiling syn v2.0.13 [INFO] [stderr] Checking wild v2.1.0 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Checking thousands v0.2.0 [INFO] [stderr] Checking time v0.3.20 [INFO] [stderr] Checking bitvec v1.0.1 [INFO] [stderr] Checking getrandom v0.2.8 [INFO] [stderr] Checking num_cpus v1.15.0 [INFO] [stderr] Checking time v0.1.45 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking filetime v0.2.20 [INFO] [stderr] Checking stderrlog v0.5.4 [INFO] [stderr] Checking nanorand v0.7.0 [INFO] [stderr] Checking uuid v1.3.0 [INFO] [stderr] Checking rayon-core v1.11.0 [INFO] [stderr] Checking regex v1.7.3 [INFO] [stderr] Checking chrono v0.4.24 [INFO] [stderr] Checking hashbrown v0.13.2 [INFO] [stderr] Checking cfb v0.7.3 [INFO] [stderr] Checking rayon v1.7.0 [INFO] [stderr] Checking fancy-regex v0.11.0 [INFO] [stderr] Checking libdeflater v0.11.0 [INFO] [stderr] Checking is-terminal v0.4.6 [INFO] [stderr] Checking env_logger v0.10.0 [INFO] [stderr] Checking br-crypto v0.0.3 [INFO] [stderr] Checking quick-xml v0.27.1 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Checking jpeg-decoder v0.3.0 [INFO] [stderr] Compiling pin-project-internal v1.0.12 [INFO] [stderr] Checking clap v3.2.23 [INFO] [stderr] Checking tiff v0.8.1 [INFO] [stderr] Checking pin-project v1.0.12 [INFO] [stderr] Checking flume v0.10.14 [INFO] [stderr] Checking exr v1.6.3 [INFO] [stderr] Checking br-web v0.0.2 (/opt/rustwide/workdir) [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/lib.rs:137:56 [INFO] [stdout] | [INFO] [stdout] 137 | match TcpListener::bind(config.url.as_str().clone()) { [INFO] [stdout] | ^^^^^^^^ unnecessary method 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] = note: `#[deny(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/request.rs:53:76 [INFO] [stdout] | [INFO] [stdout] 53 | let data = self._write(code.clone(), contents.clone(), content_type.clone()); [INFO] [stdout] | ^^^^^^^^ unnecessary method 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: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/header.rs:26:35 [INFO] [stdout] | [INFO] [stdout] 26 | header["method"] = list[0].clone().into(); [INFO] [stdout] | ^^^^^^^^ unnecessary method 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: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/header.rs:27:39 [INFO] [stdout] | [INFO] [stdout] 27 | header["uri"] = decode(list[1].clone()).unwrap().to_string().into(); [INFO] [stdout] | ^^^^^^^^ unnecessary method 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: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/header.rs:28:36 [INFO] [stdout] | [INFO] [stdout] 28 | header["version"] = list[2].clone().into(); [INFO] [stdout] | ^^^^^^^^ unnecessary method 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: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/header.rs:32:76 [INFO] [stdout] | [INFO] [stdout] 32 | header[row[0].to_string().to_lowercase().as_str()] = row[1].clone().into(); [INFO] [stdout] | ^^^^^^^^ unnecessary method 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: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/header.rs:80:58 [INFO] [stdout] | [INFO] [stdout] 80 | headers["boundary"] = boundary[1].clone().into(); [INFO] [stdout] | ^^^^^^^^ unnecessary method 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: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/body.rs:31:70 [INFO] [stdout] | [INFO] [stdout] 31 | body_list["post"][row[0].clone()] = decode(row[1].clone()).unwrap().to_string().into(); [INFO] [stdout] | ^^^^^^^^ unnecessary method 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: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/body.rs:31:45 [INFO] [stdout] | [INFO] [stdout] 31 | body_list["post"][row[0].clone()] = decode(row[1].clone()).unwrap().to_string().into(); [INFO] [stdout] | ^^^^^^^^ unnecessary method 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: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/body.rs:80:76 [INFO] [stdout] | [INFO] [stdout] 80 | let text = text.trim_end_matches(format!("\r\n--{}--\r\n", boundary.clone()).as_str()).to_string(); [INFO] [stdout] | ^^^^^^^^ unnecessary method 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: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/body.rs:81:46 [INFO] [stdout] | [INFO] [stdout] 81 | let fg = format!("--{}\r\n", boundary.clone()); [INFO] [stdout] | ^^^^^^^^ unnecessary method 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: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/body.rs:82:53 [INFO] [stdout] | [INFO] [stdout] 82 | let list: Vec<&str> = text.split(fg.as_str().clone()).collect(); [INFO] [stdout] | ^^^^^^^^ unnecessary method 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: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/body.rs:87:56 [INFO] [stdout] | [INFO] [stdout] 87 | let item = item.trim_start_matches(boundary.clone()); [INFO] [stdout] | ^^^^^^^^ unnecessary method 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: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/body.rs:100:55 [INFO] [stdout] | [INFO] [stdout] 100 | body_list["post"][name] = value[0].clone().into(); [INFO] [stdout] | ^^^^^^^^ unnecessary method 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: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/body.rs:130:83 [INFO] [stdout] | [INFO] [stdout] 130 | file_data["mode"] = JsonValue::String(_content_type_mode(types.clone()).clone()); [INFO] [stdout] | ^^^^^^^^ unnecessary method 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: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/body.rs:135:60 [INFO] [stdout] | [INFO] [stdout] 135 | let temp = format!("{}/../temp", public.clone()); [INFO] [stdout] | ^^^^^^^^ unnecessary method 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: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/body.rs:136:67 [INFO] [stdout] | [INFO] [stdout] 136 | let filename = format!("{}/../temp/{}", public.clone(), temp_file); [INFO] [stdout] | ^^^^^^^^ unnecessary method 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: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/body.rs:144:72 [INFO] [stdout] | [INFO] [stdout] 144 | match fs::write(file_data["temp"].as_str().unwrap().clone(), file.clone()) { [INFO] [stdout] | ^^^^^^^^ unnecessary method 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: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/body.rs:144:86 [INFO] [stdout] | [INFO] [stdout] 144 | match fs::write(file_data["temp"].as_str().unwrap().clone(), file.clone()) { [INFO] [stdout] | ^^^^^^^^ unnecessary method 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: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/body.rs:172:29 [INFO] [stdout] | [INFO] [stdout] 172 | let query = query[1].clone(); [INFO] [stdout] | ^^^^^^^^ unnecessary method 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: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/body.rs:180:29 [INFO] [stdout] | [INFO] [stdout] 180 | let key = row[0].clone(); [INFO] [stdout] | ^^^^^^^^ unnecessary method 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: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/body.rs:181:38 [INFO] [stdout] | [INFO] [stdout] 181 | let value = decode(row[1].clone()).unwrap().to_string(); [INFO] [stdout] | ^^^^^^^^ unnecessary method 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: aborting due to 22 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `br-web` (lib) due to 23 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "7e002d16ea49f66705b9a1e25ad568e260b418d6a6ade21f65c027ed9b711679", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7e002d16ea49f66705b9a1e25ad568e260b418d6a6ade21f65c027ed9b711679", kill_on_drop: false }` [INFO] [stdout] 7e002d16ea49f66705b9a1e25ad568e260b418d6a6ade21f65c027ed9b711679