[INFO] fetching crate autoload 0.1.0... [INFO] checking autoload-0.1.0 against try#024378d9203a4009ed73d6db2681b88a8d74ce7a for pr-112160 [INFO] extracting crate autoload 0.1.0 into /workspace/builds/worker-7-tc2/source [INFO] validating manifest of crates.io crate autoload 0.1.0 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 autoload 0.1.0 [INFO] finished tweaking crates.io crate autoload 0.1.0 [INFO] tweaked toml for crates.io crate autoload 0.1.0 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 8e9c0ebd7dfe90124e61cd72968391cb6ad8baee0725193001ab825fbc5b7ad7 [INFO] running `Command { std: "docker" "start" "-a" "8e9c0ebd7dfe90124e61cd72968391cb6ad8baee0725193001ab825fbc5b7ad7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8e9c0ebd7dfe90124e61cd72968391cb6ad8baee0725193001ab825fbc5b7ad7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8e9c0ebd7dfe90124e61cd72968391cb6ad8baee0725193001ab825fbc5b7ad7", kill_on_drop: false }` [INFO] [stdout] 8e9c0ebd7dfe90124e61cd72968391cb6ad8baee0725193001ab825fbc5b7ad7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] f6c060b6e32494d44aa542d7e5e40a502dd701136519dda9f24619d132995be7 [INFO] running `Command { std: "docker" "start" "-a" "f6c060b6e32494d44aa542d7e5e40a502dd701136519dda9f24619d132995be7", kill_on_drop: false }` [INFO] [stderr] Compiling thiserror v1.0.40 [INFO] [stderr] Compiling parking_lot_core v0.9.7 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking smallvec v1.10.0 [INFO] [stderr] Compiling ucd-trie v0.1.5 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling once_cell v1.18.0 [INFO] [stderr] Checking unicode-ident v1.0.9 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Compiling libc v0.2.145 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling log v0.4.18 [INFO] [stderr] Compiling lock_api v0.4.9 [INFO] [stderr] Compiling syn v2.0.18 [INFO] [stderr] Checking autopath v0.1.0 [INFO] [stderr] Checking proc-macro2 v1.0.59 [INFO] [stderr] Checking quote v1.0.28 [INFO] [stderr] Checking dashmap v5.4.0 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking singlemap v0.1.6 [INFO] [stderr] Compiling thiserror-impl v1.0.40 [INFO] [stderr] Compiling pest v2.6.0 [INFO] [stderr] Compiling pest_meta v2.6.0 [INFO] [stderr] Compiling pest_generator v2.6.0 [INFO] [stderr] Compiling pest_derive v2.6.0 [INFO] [stderr] Checking autoload v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::com::scan_path_utils` [INFO] [stdout] --> src/com/component_scan.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::com::scan_path_utils; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `scan_path_utils` [INFO] [stdout] --> src/lib.rs:19:18 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::com::{scan_path_utils, path_utils}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::com::scan_path_utils` [INFO] [stdout] --> src/com/component_scan.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::com::scan_path_utils; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `scan_path_utils` [INFO] [stdout] --> src/lib.rs:19:18 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::com::{scan_path_utils, path_utils}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `attr_map` [INFO] [stdout] --> src/com/component_scan.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 107 | let attr_map = param_attr_split_to_map(&model.fun_param); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_attr_map` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rely_tokens` [INFO] [stdout] --> src/com/component_scan.rs:186:13 [INFO] [stdout] | [INFO] [stdout] 186 | let rely_tokens = proc_macro2::TokenStream::from_str(&run_tokens).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rely_tokens` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `unparsed_file` is never read [INFO] [stdout] --> src/com/component_scan.rs:208:17 [INFO] [stdout] | [INFO] [stdout] 208 | let mut unparsed_file = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `attr_map` [INFO] [stdout] --> src/com/component_scan.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 107 | let attr_map = param_attr_split_to_map(&model.fun_param); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_attr_map` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rely_tokens` [INFO] [stdout] --> src/com/component_scan.rs:186:13 [INFO] [stdout] | [INFO] [stdout] 186 | let rely_tokens = proc_macro2::TokenStream::from_str(&run_tokens).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rely_tokens` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `unparsed_file` is never read [INFO] [stdout] --> src/com/component_scan.rs:208:17 [INFO] [stdout] | [INFO] [stdout] 208 | let mut unparsed_file = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `macro_name` is never read [INFO] [stdout] --> src/com/component_scan.rs:193:5 [INFO] [stdout] | [INFO] [stdout] 192 | pub struct FunModel { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 193 | macro_name: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FunModel` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/com/autowired.rs:24:51 [INFO] [stdout] | [INFO] [stdout] 24 | macro_name = attr_name_char.trim().clone().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] = 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/com/autowired.rs:25:43 [INFO] [stdout] | [INFO] [stdout] 25 | type_name = attr_type_char.clone().to_string().trim().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/com/component_scan.rs:160:45 [INFO] [stdout] | [INFO] [stdout] 160 | let mut val_str = val.trim().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/com/scan_path_utils.rs:195:35 [INFO] [stdout] | [INFO] [stdout] 195 | let lib_path_split = path_list.clone().split(","); [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 4 previous errors; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `macro_name` is never read [INFO] [stdout] --> src/com/component_scan.rs:193:5 [INFO] [stdout] | [INFO] [stdout] 192 | pub struct FunModel { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 193 | macro_name: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FunModel` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/com/autowired.rs:24:51 [INFO] [stdout] | [INFO] [stdout] 24 | macro_name = attr_name_char.trim().clone().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] = 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/com/autowired.rs:25:43 [INFO] [stdout] | [INFO] [stdout] 25 | type_name = attr_type_char.clone().to_string().trim().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] [stderr] error: could not compile `autoload` (lib) due to 5 previous errors; 6 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/com/component_scan.rs:160:45 [INFO] [stdout] | [INFO] [stdout] 160 | let mut val_str = val.trim().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/com/scan_path_utils.rs:195:35 [INFO] [stdout] | [INFO] [stdout] 195 | let lib_path_split = path_list.clone().split(","); [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 4 previous errors; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `autoload` (lib test) due to 5 previous errors; 6 warnings emitted [INFO] running `Command { std: "docker" "inspect" "f6c060b6e32494d44aa542d7e5e40a502dd701136519dda9f24619d132995be7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f6c060b6e32494d44aa542d7e5e40a502dd701136519dda9f24619d132995be7", kill_on_drop: false }` [INFO] [stdout] f6c060b6e32494d44aa542d7e5e40a502dd701136519dda9f24619d132995be7