[INFO] cloning repository https://github.com/benjamin-schultz/Egg [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/benjamin-schultz/Egg" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbenjamin-schultz%2FEgg", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbenjamin-schultz%2FEgg'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1fb453a1c1650612b295427c96b7b85033365363 [INFO] checking benjamin-schultz/Egg/1fb453a1c1650612b295427c96b7b85033365363 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbenjamin-schultz%2FEgg" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/benjamin-schultz/Egg on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/benjamin-schultz/Egg [INFO] finished tweaking git repo https://github.com/benjamin-schultz/Egg [INFO] tweaked toml for git repo https://github.com/benjamin-schultz/Egg written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/benjamin-schultz/Egg 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7c015067bdecd4855b91fd9ffe78f87b43a1f749104103e6950cbf5307effb49 [INFO] running `Command { std: "docker" "start" "-a" "7c015067bdecd4855b91fd9ffe78f87b43a1f749104103e6950cbf5307effb49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7c015067bdecd4855b91fd9ffe78f87b43a1f749104103e6950cbf5307effb49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7c015067bdecd4855b91fd9ffe78f87b43a1f749104103e6950cbf5307effb49", kill_on_drop: false }` [INFO] [stdout] 7c015067bdecd4855b91fd9ffe78f87b43a1f749104103e6950cbf5307effb49 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1eb1e3aed19ab052a7ebe3363b3f35494f09d21ddc6d0ca7ab3131f7330a1ffb [INFO] running `Command { std: "docker" "start" "-a" "1eb1e3aed19ab052a7ebe3363b3f35494f09d21ddc6d0ca7ab3131f7330a1ffb", kill_on_drop: false }` [INFO] [stderr] Checking egg v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0425]: cannot find function `load_animals` in this scope [INFO] [stdout] --> src/lib.rs:77:23 [INFO] [stdout] | [INFO] [stdout] 10 | fn find_animals(names: &[String], animals: &str) -> Vec<(String, usize)> { [INFO] [stdout] | ------------------------------------------------------------------------ similarly named function `find_animals` defined here [INFO] [stdout] ... [INFO] [stdout] 77 | let animals = load_animals().expect("load file error"); [INFO] [stdout] | ^^^^^^^^^^^^ help: a function with a similar name exists: `find_animals` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: found module declaration for lib.rs [INFO] [stdout] --> src/main.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | mod lib; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lib.rs is the root of this crate's library target [INFO] [stdout] = help: to refer to it from other targets, use the library's name as the path [INFO] [stdout] = note: `#[warn(special_module_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `load_animals` in this scope [INFO] [stdout] --> src/lib.rs:77:23 [INFO] [stdout] | [INFO] [stdout] 10 | fn find_animals(names: &[String], animals: &str) -> Vec<(String, usize)> { [INFO] [stdout] | ------------------------------------------------------------------------ similarly named function `find_animals` defined here [INFO] [stdout] ... [INFO] [stdout] 77 | let animals = load_animals().expect("load file error"); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 77 | let animals = find_animals().expect("load file error"); [INFO] [stdout] | ~~~~~~~~~~~~ [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 71 + use crate::load_animals; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `load_animals` in this scope [INFO] [stdout] --> src/lib.rs:89:23 [INFO] [stdout] | [INFO] [stdout] 10 | fn find_animals(names: &[String], animals: &str) -> Vec<(String, usize)> { [INFO] [stdout] | ------------------------------------------------------------------------ similarly named function `find_animals` defined here [INFO] [stdout] ... [INFO] [stdout] 89 | let animals = load_animals().expect("load file error"); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 89 | let animals = find_animals().expect("load file error"); [INFO] [stdout] | ~~~~~~~~~~~~ [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 71 + use crate::load_animals; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `load_animals` in this scope [INFO] [stdout] --> src/lib.rs:101:23 [INFO] [stdout] | [INFO] [stdout] 10 | fn find_animals(names: &[String], animals: &str) -> Vec<(String, usize)> { [INFO] [stdout] | ------------------------------------------------------------------------ similarly named function `find_animals` defined here [INFO] [stdout] ... [INFO] [stdout] 101 | let animals = load_animals().expect("load file error"); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 101 | let animals = find_animals().expect("load file error"); [INFO] [stdout] | ~~~~~~~~~~~~ [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 71 + use crate::load_animals; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `load_animals` in this scope [INFO] [stdout] --> src/lib.rs:128:23 [INFO] [stdout] | [INFO] [stdout] 10 | fn find_animals(names: &[String], animals: &str) -> Vec<(String, usize)> { [INFO] [stdout] | ------------------------------------------------------------------------ similarly named function `find_animals` defined here [INFO] [stdout] ... [INFO] [stdout] 128 | let animals = load_animals().expect("load file error"); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 128 | let animals = find_animals().expect("load file error"); [INFO] [stdout] | ~~~~~~~~~~~~ [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 71 + use crate::load_animals; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `load_animals` in this scope [INFO] [stdout] --> src/lib.rs:140:23 [INFO] [stdout] | [INFO] [stdout] 10 | fn find_animals(names: &[String], animals: &str) -> Vec<(String, usize)> { [INFO] [stdout] | ------------------------------------------------------------------------ similarly named function `find_animals` defined here [INFO] [stdout] ... [INFO] [stdout] 140 | let animals = load_animals().expect("Load file error"); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 140 | let animals = find_animals().expect("Load file error"); [INFO] [stdout] | ~~~~~~~~~~~~ [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 71 + use crate::load_animals; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: found module declaration for lib.rs [INFO] [stdout] --> src/main.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | mod lib; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lib.rs is the root of this crate's library target [INFO] [stdout] = help: to refer to it from other targets, use the library's name as the path [INFO] [stdout] = note: `#[warn(special_module_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:83:34 [INFO] [stdout] | [INFO] [stdout] 83 | assert!(matches.contains(&"CATTLE".to_string())); [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^^^^^ expected `&(String, usize)`, found `&String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&(String, usize)` [INFO] [stdout] found reference `&String` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/slice/mod.rs:2504:12 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `load_animals` in this scope [INFO] [stdout] --> src/lib.rs:89:23 [INFO] [stdout] | [INFO] [stdout] 10 | fn find_animals(names: &[String], animals: &str) -> Vec<(String, usize)> { [INFO] [stdout] | ------------------------------------------------------------------------ similarly named function `find_animals` defined here [INFO] [stdout] ... [INFO] [stdout] 89 | let animals = load_animals().expect("load file error"); [INFO] [stdout] | ^^^^^^^^^^^^ help: a function with a similar name exists: `find_animals` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:95:34 [INFO] [stdout] | [INFO] [stdout] 95 | assert!(matches.contains(&"CAT".to_string())); [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^^ expected `&(String, usize)`, found `&String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&(String, usize)` [INFO] [stdout] found reference `&String` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/slice/mod.rs:2504:12 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `load_animals` in this scope [INFO] [stdout] --> src/lib.rs:101:23 [INFO] [stdout] | [INFO] [stdout] 10 | fn find_animals(names: &[String], animals: &str) -> Vec<(String, usize)> { [INFO] [stdout] | ------------------------------------------------------------------------ similarly named function `find_animals` defined here [INFO] [stdout] ... [INFO] [stdout] 101 | let animals = load_animals().expect("load file error"); [INFO] [stdout] | ^^^^^^^^^^^^ help: a function with a similar name exists: `find_animals` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_lowercase` found for tuple `(String, usize)` in the current scope [INFO] [stdout] --> src/lib.rs:117:36 [INFO] [stdout] | [INFO] [stdout] 117 | matches_comp.push(word.to_lowercase()); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `(String, usize)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `load_animals` in this scope [INFO] [stdout] --> src/lib.rs:128:23 [INFO] [stdout] | [INFO] [stdout] 10 | fn find_animals(names: &[String], animals: &str) -> Vec<(String, usize)> { [INFO] [stdout] | ------------------------------------------------------------------------ similarly named function `find_animals` defined here [INFO] [stdout] ... [INFO] [stdout] 128 | let animals = load_animals().expect("load file error"); [INFO] [stdout] | ^^^^^^^^^^^^ help: a function with a similar name exists: `find_animals` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:134:34 [INFO] [stdout] | [INFO] [stdout] 134 | assert!(matches.contains(&"WomBAT".to_string())); [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^^^^^ expected `&(String, usize)`, found `&String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&(String, usize)` [INFO] [stdout] found reference `&String` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/slice/mod.rs:2504:12 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `load_animals` in this scope [INFO] [stdout] --> src/lib.rs:140:23 [INFO] [stdout] | [INFO] [stdout] 10 | fn find_animals(names: &[String], animals: &str) -> Vec<(String, usize)> { [INFO] [stdout] | ------------------------------------------------------------------------ similarly named function `find_animals` defined here [INFO] [stdout] ... [INFO] [stdout] 140 | let animals = load_animals().expect("Load file error"); [INFO] [stdout] | ^^^^^^^^^^^^ help: a function with a similar name exists: `find_animals` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:83:34 [INFO] [stdout] | [INFO] [stdout] 83 | assert!(matches.contains(&"CATTLE".to_string())); [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^^^^^ expected `&(String, usize)`, found `&String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&(String, usize)` [INFO] [stdout] found reference `&String` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/slice/mod.rs:2504:12 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:143:37 [INFO] [stdout] | [INFO] [stdout] 143 | assert!(has_unique_elements(matches)); [INFO] [stdout] | ------------------- ^^^^^^^ expected `Vec`, found `Vec<(String, usize)>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found struct `Vec<(String, usize)>` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/lib.rs:146:8 [INFO] [stdout] | [INFO] [stdout] 146 | fn has_unique_elements(iter: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ----------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:95:34 [INFO] [stdout] | [INFO] [stdout] 95 | assert!(matches.contains(&"CAT".to_string())); [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^^ expected `&(String, usize)`, found `&String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&(String, usize)` [INFO] [stdout] found reference `&String` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/slice/mod.rs:2504:12 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_lowercase` found for tuple `(String, usize)` in the current scope [INFO] [stdout] --> src/lib.rs:117:36 [INFO] [stdout] | [INFO] [stdout] 117 | matches_comp.push(word.to_lowercase()); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `(String, usize)` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `egg` (lib test) due to 11 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:134:34 [INFO] [stdout] | [INFO] [stdout] 134 | assert!(matches.contains(&"WomBAT".to_string())); [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^^^^^ expected `&(String, usize)`, found `&String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&(String, usize)` [INFO] [stdout] found reference `&String` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/slice/mod.rs:2504:12 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:143:37 [INFO] [stdout] | [INFO] [stdout] 143 | assert!(has_unique_elements(matches)); [INFO] [stdout] | ------------------- ^^^^^^^ expected `Vec`, found `Vec<(String, usize)>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found struct `Vec<(String, usize)>` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/lib.rs:146:8 [INFO] [stdout] | [INFO] [stdout] 146 | fn has_unique_elements(iter: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ----------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `egg` (bin "egg" test) due to 11 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "1eb1e3aed19ab052a7ebe3363b3f35494f09d21ddc6d0ca7ab3131f7330a1ffb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1eb1e3aed19ab052a7ebe3363b3f35494f09d21ddc6d0ca7ab3131f7330a1ffb", kill_on_drop: false }` [INFO] [stdout] 1eb1e3aed19ab052a7ebe3363b3f35494f09d21ddc6d0ca7ab3131f7330a1ffb