[INFO] cloning repository https://github.com/Shrekie/cqfile [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Shrekie/cqfile" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShrekie%2Fcqfile", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShrekie%2Fcqfile'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 19615d4ac31bfd93f00a57856f5950f2b4bf9dce [INFO] checking Shrekie/cqfile/19615d4ac31bfd93f00a57856f5950f2b4bf9dce against master#bca37a20bd376ce3fd138e7cdee7fe704e0f8814 for pr-150727 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShrekie%2Fcqfile" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Shrekie/cqfile [INFO] finished tweaking git repo https://github.com/Shrekie/cqfile [INFO] tweaked toml for git repo https://github.com/Shrekie/cqfile written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Shrekie/cqfile on toolchain bca37a20bd376ce3fd138e7cdee7fe704e0f8814 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Shrekie/cqfile 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" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [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-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 438a30f527d16638ee2f73ae4bcee037a48e14e43b10e04642b115edd76843c8 [INFO] running `Command { std: "docker" "start" "-a" "438a30f527d16638ee2f73ae4bcee037a48e14e43b10e04642b115edd76843c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "438a30f527d16638ee2f73ae4bcee037a48e14e43b10e04642b115edd76843c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "438a30f527d16638ee2f73ae4bcee037a48e14e43b10e04642b115edd76843c8", kill_on_drop: false }` [INFO] [stdout] 438a30f527d16638ee2f73ae4bcee037a48e14e43b10e04642b115edd76843c8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7c17be8d4ca930a65b51844550da819a6729ce8425982c53e55e4a66f54e1959 [INFO] running `Command { std: "docker" "start" "-a" "7c17be8d4ca930a65b51844550da819a6729ce8425982c53e55e4a66f54e1959", kill_on_drop: false }` [INFO] [stderr] Checking cqfile v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `terminal::expression::Command` [INFO] [stdout] --> src/lib.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use terminal::expression::Command; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `terminal::expression::CommandResult` [INFO] [stdout] --> src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use terminal::expression::CommandResult; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `terminal::expression::Count` [INFO] [stdout] --> src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use terminal::expression::Count; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `terminal::expression::Search` [INFO] [stdout] --> src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use terminal::expression::Search; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `terminal::expression::Line` [INFO] [stdout] --> src/lib.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use terminal::expression::Line; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `terminal::scanner` [INFO] [stdout] --> src/lib.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use terminal::scanner; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `terminal::Invoker` [INFO] [stdout] --> src/lib.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use terminal::Invoker; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `terminal::Query` [INFO] [stdout] --> src/lib.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use terminal::Query; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `terminal::expression::Count` [INFO] [stdout] --> src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use terminal::expression::Count; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `terminal::expression::Line` [INFO] [stdout] --> src/lib.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use terminal::expression::Line; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `terminal::Query` [INFO] [stdout] --> src/lib.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use terminal::Query; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `{integer}` with `terminal::expression::Sum` [INFO] [stdout] --> src/terminal/expression.rs:161:16 [INFO] [stdout] | [INFO] [stdout] 161 | Ok(s) => assert_eq!(2, *s), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ no implementation for `{integer} == terminal::expression::Sum` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq` is not implemented for `{integer}` [INFO] [stdout] = help: the following other types implement trait `PartialEq`: [INFO] [stdout] f128 [INFO] [stdout] f16 [INFO] [stdout] f32 [INFO] [stdout] f64 [INFO] [stdout] i128 [INFO] [stdout] i16 [INFO] [stdout] i32 [INFO] [stdout] i64 [INFO] [stdout] and 8 others [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `terminal::expression::Sum` doesn't implement `Debug` [INFO] [stdout] --> src/terminal/expression.rs:161:16 [INFO] [stdout] | [INFO] [stdout] 161 | Ok(s) => assert_eq!(2, *s), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the trait `Debug` is not implemented for `terminal::expression::Sum` [INFO] [stdout] | [INFO] [stdout] = note: add `#[derive(Debug)]` to `terminal::expression::Sum` or manually `impl Debug for terminal::expression::Sum` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `terminal::expression::Sum` with `#[derive(Debug)]` [INFO] [stdout] | [INFO] [stdout] 14 + #[derive(Debug)] [INFO] [stdout] 15 | pub struct Sum { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `parts` is never used [INFO] [stdout] --> src/terminal.rs:51:6 [INFO] [stdout] | [INFO] [stdout] 42 | impl Query { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 51 | fn parts(&self) -> (&String, &String, &String) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/terminal/expression.rs:147:7 [INFO] [stdout] | [INFO] [stdout] 147 | _ => (), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/terminal/expression.rs:147:7 [INFO] [stdout] | [INFO] [stdout] 145 | Ok(r) => assert_eq!(vec!["safe, fast, productive."], *r), [INFO] [stdout] | ----- matches some of the same values [INFO] [stdout] 146 | Err(e) => println!("{}", e), [INFO] [stdout] | ------ matches some of the same values [INFO] [stdout] 147 | _ => (), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing function parameter `l` [INFO] [stdout] --> src/terminal/expression.rs:142:21 [INFO] [stdout] | [INFO] [stdout] 142 | .and_then(|l| l.display()) [INFO] [stdout] | -^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | returns a value referencing data owned by the current function [INFO] [stdout] | `l` is borrowed here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `*r` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/terminal/expression.rs:143:21 [INFO] [stdout] | [INFO] [stdout] 143 | .and_then(|r| r.as_value()) [INFO] [stdout] | ^ `r` is a `&` reference, so it cannot be borrowed as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/lib.rs:35:7 [INFO] [stdout] | [INFO] [stdout] 35 | _ => (), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/lib.rs:35:7 [INFO] [stdout] | [INFO] [stdout] 33 | Ok(r) => assert_eq!(vec!["safe, fast, productive."], *r), [INFO] [stdout] | ----- matches some of the same values [INFO] [stdout] 34 | Err(e) => println!("{}", e), [INFO] [stdout] | ------ matches some of the same values [INFO] [stdout] 35 | _ => (), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing function parameter `l` [INFO] [stdout] --> src/lib.rs:32:73 [INFO] [stdout] | [INFO] [stdout] 32 | match command.operate(&query.argument, &file_contents).and_then(|l| l.display()).and_then(|r| r.as_value()) { [INFO] [stdout] | -^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | returns a value referencing data owned by the current function [INFO] [stdout] | `l` is borrowed here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `*r` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/lib.rs:32:99 [INFO] [stdout] | [INFO] [stdout] 32 | match command.operate(&query.argument, &file_contents).and_then(|l| l.display()).and_then(|r| r.as_value()) { [INFO] [stdout] | ^ `r` is a `&` reference, so it cannot be borrowed as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0515, E0596. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `cqfile` (lib test) due to 6 previous errors; 5 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `terminal` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use terminal::expression::Command; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `terminal` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file src/terminal.rs, use `mod terminal` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 1 + mod terminal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:18:27 [INFO] [stdout] | [INFO] [stdout] 16 | invoker.enable("search", &search); [INFO] [stdout] | ------- ------- this argument has type `&Search`... [INFO] [stdout] | | [INFO] [stdout] | ... which causes `invoker` to have type `Invoker<'_, Search>` [INFO] [stdout] 17 | let counts = Count::new(); [INFO] [stdout] 18 | invoker.enable("count", &counts); [INFO] [stdout] | ------ ^^^^^^^ expected `&Search`, found `&Count` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&Search` [INFO] [stdout] found reference `&Count` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/terminal.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn enable(&mut self, name: &'a str, command: &'a T) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `operate` found for reference `&Search` in the current scope [INFO] [stdout] --> src/main.rs:21:24 [INFO] [stdout] | [INFO] [stdout] 21 | let result = command.operate(&query.argument, &file_contents); [INFO] [stdout] | ^^^^^^^ method not found in `&Search` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Command` which provides `operate` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use cqfile::terminal::expression::Command; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:24:14 [INFO] [stdout] | [INFO] [stdout] 24 | Ok(v) => v.show(), [INFO] [stdout] | ^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `terminal` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use terminal::expression::Command; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `terminal` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file src/terminal.rs, use `mod terminal` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 1 + mod terminal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:18:27 [INFO] [stdout] | [INFO] [stdout] 16 | invoker.enable("search", &search); [INFO] [stdout] | ------- ------- this argument has type `&Search`... [INFO] [stdout] | | [INFO] [stdout] | ... which causes `invoker` to have type `Invoker<'_, Search>` [INFO] [stdout] 17 | let counts = Count::new(); [INFO] [stdout] 18 | invoker.enable("count", &counts); [INFO] [stdout] | ------ ^^^^^^^ expected `&Search`, found `&Count` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&Search` [INFO] [stdout] found reference `&Count` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/terminal.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn enable(&mut self, name: &'a str, command: &'a T) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `operate` found for reference `&Search` in the current scope [INFO] [stdout] --> src/main.rs:21:24 [INFO] [stdout] | [INFO] [stdout] 21 | let result = command.operate(&query.argument, &file_contents); [INFO] [stdout] | ^^^^^^^ method not found in `&Search` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Command` which provides `operate` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use cqfile::terminal::expression::Command; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:24:14 [INFO] [stdout] | [INFO] [stdout] 24 | Ok(v) => v.show(), [INFO] [stdout] | ^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0308, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0308, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `cqfile` (bin "cqfile" test) due to 4 previous errors [INFO] [stderr] error: could not compile `cqfile` (bin "cqfile") due to 4 previous errors [INFO] running `Command { std: "docker" "inspect" "7c17be8d4ca930a65b51844550da819a6729ce8425982c53e55e4a66f54e1959", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7c17be8d4ca930a65b51844550da819a6729ce8425982c53e55e4a66f54e1959", kill_on_drop: false }` [INFO] [stdout] 7c17be8d4ca930a65b51844550da819a6729ce8425982c53e55e4a66f54e1959