[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] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbenjamin-schultz%2FEgg/refs: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 1) [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] [stderr] error: copy-fd: write returned: No space left on device [INFO] [stderr] fatal: cannot copy '/usr/share/git-core/templates/hooks/pre-rebase.sample' to '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbenjamin-schultz%2FEgg/hooks/pre-rebase.sample': No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 2) [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 against try#5de9e0e6cf775e94e0de2003f35e183f3f77bfe8 for pr-143808 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbenjamin-schultz%2FEgg" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] [stderr] error: Unable to create '/workspace/builds/worker-3-tc2/source/.git/refs/remotes/origin/HEAD.lock': No such file or directory [INFO] [stderr] fatal: unable to update refs/remotes/origin/HEAD [INFO] checking benjamin-schultz/Egg against try#5de9e0e6cf775e94e0de2003f35e183f3f77bfe8 for pr-143808 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbenjamin-schultz%2FEgg" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] error: failed to write new configuration file /workspace/builds/worker-3-tc2/source/.git/config.lock [INFO] [stderr] fatal: could not set 'remote.origin.url' to '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbenjamin-schultz%2FEgg' [INFO] checking benjamin-schultz/Egg against try#5de9e0e6cf775e94e0de2003f35e183f3f77bfe8 for pr-143808 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbenjamin-schultz%2FEgg" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] error: failed to write new configuration file /workspace/builds/worker-3-tc2/source/.git/config.lock [INFO] [stderr] fatal: could not set 'remote.origin.url' to '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbenjamin-schultz%2FEgg' [INFO] checking benjamin-schultz/Egg against try#5de9e0e6cf775e94e0de2003f35e183f3f77bfe8 for pr-143808 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbenjamin-schultz%2FEgg" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [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-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/benjamin-schultz/Egg on toolchain 5de9e0e6cf775e94e0de2003f35e183f3f77bfe8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5de9e0e6cf775e94e0de2003f35e183f3f77bfe8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+5de9e0e6cf775e94e0de2003f35e183f3f77bfe8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+5de9e0e6cf775e94e0de2003f35e183f3f77bfe8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f6d740780074dd1dcbf3f0acef805852093588c900097f0011065d7182030081 [INFO] running `Command { std: "docker" "start" "-a" "f6d740780074dd1dcbf3f0acef805852093588c900097f0011065d7182030081", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f6d740780074dd1dcbf3f0acef805852093588c900097f0011065d7182030081", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f6d740780074dd1dcbf3f0acef805852093588c900097f0011065d7182030081", kill_on_drop: false }` [INFO] [stdout] f6d740780074dd1dcbf3f0acef805852093588c900097f0011065d7182030081 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+5de9e0e6cf775e94e0de2003f35e183f3f77bfe8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 427d90c397721ca3eb0a9f170514c3997c06671a8eaad0e23066819dbe45e743 [INFO] running `Command { std: "docker" "start" "-a" "427d90c397721ca3eb0a9f170514c3997c06671a8eaad0e23066819dbe45e743", 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[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/5de9e0e6cf775e94e0de2003f35e183f3f77bfe8/library/core/src/slice/mod.rs:2658: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/5de9e0e6cf775e94e0de2003f35e183f3f77bfe8/library/core/src/slice/mod.rs:2658: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] 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 = load_animals().expect("load file error"); [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 = load_animals().expect("load file error"); [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 = load_animals().expect("load file error"); [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 = load_animals().expect("load file error"); [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 = load_animals().expect("Load file error"); [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[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/5de9e0e6cf775e94e0de2003f35e183f3f77bfe8/library/core/src/slice/mod.rs:2658: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: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: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/5de9e0e6cf775e94e0de2003f35e183f3f77bfe8/library/core/src/slice/mod.rs:2658:12 [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[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/5de9e0e6cf775e94e0de2003f35e183f3f77bfe8/library/core/src/slice/mod.rs:2658:12 [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] [stderr] error: could not compile `egg` (lib test) due to 10 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/5de9e0e6cf775e94e0de2003f35e183f3f77bfe8/library/core/src/slice/mod.rs:2658: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] 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 10 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "427d90c397721ca3eb0a9f170514c3997c06671a8eaad0e23066819dbe45e743", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "427d90c397721ca3eb0a9f170514c3997c06671a8eaad0e23066819dbe45e743", kill_on_drop: false }` [INFO] [stdout] 427d90c397721ca3eb0a9f170514c3997c06671a8eaad0e23066819dbe45e743