[INFO] cloning repository https://github.com/choudel/rustpattern
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/choudel/rustpattern" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchoudel%2Frustpattern", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchoudel%2Frustpattern'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] aad34cbf3c5b2d3c7693cd2f412a5b6dab4130ae
[INFO] checking choudel/rustpattern against 4a9d5368df6450bbd2fc8dde4508c3e5d83bb19d for pr-159598
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchoudel%2Frustpattern" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/choudel/rustpattern
[INFO] finished tweaking git repo https://github.com/choudel/rustpattern
[INFO] tweaked toml for git repo https://github.com/choudel/rustpattern written to /workspace/builds/worker-6-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/choudel/rustpattern on toolchain 4a9d5368df6450bbd2fc8dde4508c3e5d83bb19d
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4a9d5368df6450bbd2fc8dde4508c3e5d83bb19d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/choudel/rustpattern 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" "+4a9d5368df6450bbd2fc8dde4508c3e5d83bb19d" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:00c5645b54fe3ce5dae1417175e3c7fb6a6646c021d554ecd63a097b8b9f3602" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 758b6c677c33bee7947504707778cf2ba10a32d58abf8a7182f397fd44c48cda
[INFO] running `Command { std: "docker" "start" "758b6c677c33bee7947504707778cf2ba10a32d58abf8a7182f397fd44c48cda", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "758b6c677c33bee7947504707778cf2ba10a32d58abf8a7182f397fd44c48cda", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "758b6c677c33bee7947504707778cf2ba10a32d58abf8a7182f397fd44c48cda" "/opt/rustwide/cargo-home/bin/cargo" "+4a9d5368df6450bbd2fc8dde4508c3e5d83bb19d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "758b6c677c33bee7947504707778cf2ba10a32d58abf8a7182f397fd44c48cda", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "758b6c677c33bee7947504707778cf2ba10a32d58abf8a7182f397fd44c48cda" "/opt/rustwide/cargo-home/bin/cargo" "+4a9d5368df6450bbd2fc8dde4508c3e5d83bb19d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling anyhow v1.0.70
[INFO] [stderr]     Checking rustpattern v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused variable: `fileName`
[INFO] [stdout]  --> src/bin/strategy.rs:6:23
[INFO] [stdout]   |
[INFO] [stdout] 6 |     fn compress(self, fileName: String) {
[INFO] [stdout]   |                       ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fileName`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `fileName`
[INFO] [stdout]   --> src/bin/strategy.rs:16:21
[INFO] [stdout]    |
[INFO] [stdout] 16 |     fn filter(self, fileName: String) {
[INFO] [stdout]    |                     ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fileName`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `fileName` should have a snake case name
[INFO] [stdout]  --> src/bin/strategy.rs:2:23
[INFO] [stdout]   |
[INFO] [stdout] 2 |     fn compress(self, fileName: String);
[INFO] [stdout]   |                       ^^^^^^^^ help: convert the identifier to snake case: `file_name`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `fileName` should have a snake case name
[INFO] [stdout]  --> src/bin/strategy.rs:6:23
[INFO] [stdout]   |
[INFO] [stdout] 6 |     fn compress(self, fileName: String) {
[INFO] [stdout]   |                       ^^^^^^^^ help: convert the identifier to snake case: `file_name`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `fileName` should have a snake case name
[INFO] [stdout]   --> src/bin/strategy.rs:12:21
[INFO] [stdout]    |
[INFO] [stdout] 12 |     fn filter(self, fileName: String);
[INFO] [stdout]    |                     ^^^^^^^^ help: convert the identifier to snake case: `file_name`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `fileName` should have a snake case name
[INFO] [stdout]   --> src/bin/strategy.rs:16:21
[INFO] [stdout]    |
[INFO] [stdout] 16 |     fn filter(self, fileName: String) {
[INFO] [stdout]    |                     ^^^^^^^^ help: convert the identifier to snake case: `file_name`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `fileName` should have a snake case name
[INFO] [stdout]   --> src/bin/strategy.rs:31:24
[INFO] [stdout]    |
[INFO] [stdout] 31 |     pub fn store(self, fileName: String) {
[INFO] [stdout]    |                        ^^^^^^^^ help: convert the identifier to snake case: `file_name`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `url`, `method`, `headers`, and `body` are never read
[INFO] [stdout]  --> src/bin/builder.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | struct Request {
[INFO] [stdout]   |        ------- fields in this struct
[INFO] [stdout] 5 |     url: String,
[INFO] [stdout]   |     ^^^
[INFO] [stdout] 6 |     method: String,
[INFO] [stdout]   |     ^^^^^^
[INFO] [stdout] 7 |     headers: Vec<(String, String)>,
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout] 8 |     body: Option<String>,
[INFO] [stdout]   |     ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `Request` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `url`, `method`, `headers`, and `body` are never read
[INFO] [stdout]  --> src/bin/builder.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | struct Request {
[INFO] [stdout]   |        ------- fields in this struct
[INFO] [stdout] 5 |     url: String,
[INFO] [stdout]   |     ^^^
[INFO] [stdout] 6 |     method: String,
[INFO] [stdout]   |     ^^^^^^
[INFO] [stdout] 7 |     headers: Vec<(String, String)>,
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout] 8 |     body: Option<String>,
[INFO] [stdout]   |     ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `Request` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/bin/chain_of_res.rs:83:9
[INFO] [stdout]    |
[INFO] [stdout] 83 |     let mut request_c = ConcreteHandlerC::new();
[INFO] [stdout]    |         ----^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/bin/chain_of_res.rs:83:9
[INFO] [stdout]    |
[INFO] [stdout] 83 |     let mut request_c = ConcreteHandlerC::new();
[INFO] [stdout]    |         ----^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `fileName`
[INFO] [stdout]  --> src/bin/strategy.rs:6:23
[INFO] [stdout]   |
[INFO] [stdout] 6 |     fn compress(self, fileName: String) {
[INFO] [stdout]   |                       ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fileName`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `fileName`
[INFO] [stdout]   --> src/bin/strategy.rs:16:21
[INFO] [stdout]    |
[INFO] [stdout] 16 |     fn filter(self, fileName: String) {
[INFO] [stdout]    |                     ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fileName`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `fileName` should have a snake case name
[INFO] [stdout]  --> src/bin/strategy.rs:2:23
[INFO] [stdout]   |
[INFO] [stdout] 2 |     fn compress(self, fileName: String);
[INFO] [stdout]   |                       ^^^^^^^^ help: convert the identifier to snake case: `file_name`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `fileName` should have a snake case name
[INFO] [stdout]  --> src/bin/strategy.rs:6:23
[INFO] [stdout]   |
[INFO] [stdout] 6 |     fn compress(self, fileName: String) {
[INFO] [stdout]   |                       ^^^^^^^^ help: convert the identifier to snake case: `file_name`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `fileName` should have a snake case name
[INFO] [stdout]   --> src/bin/strategy.rs:12:21
[INFO] [stdout]    |
[INFO] [stdout] 12 |     fn filter(self, fileName: String);
[INFO] [stdout]    |                     ^^^^^^^^ help: convert the identifier to snake case: `file_name`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `fileName` should have a snake case name
[INFO] [stdout]   --> src/bin/strategy.rs:16:21
[INFO] [stdout]    |
[INFO] [stdout] 16 |     fn filter(self, fileName: String) {
[INFO] [stdout]    |                     ^^^^^^^^ help: convert the identifier to snake case: `file_name`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `fileName` should have a snake case name
[INFO] [stdout]   --> src/bin/strategy.rs:31:24
[INFO] [stdout]    |
[INFO] [stdout] 31 |     pub fn store(self, fileName: String) {
[INFO] [stdout]    |                        ^^^^^^^^ help: convert the identifier to snake case: `file_name`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> src/bin/iterator.rs:10:17
[INFO] [stdout]    |
[INFO] [stdout] 10 |     pub fn iter(&self) -> BrowserIterator {
[INFO] [stdout]    |                 ^^^^^     ^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 the lifetime is elided here
[INFO] [stdout]    |
[INFO] [stdout]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]    |
[INFO] [stdout] 10 |     pub fn iter(&self) -> BrowserIterator<'_> {
[INFO] [stdout]    |                                          ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `browserHistory` should have a snake case name
[INFO] [stdout]   --> src/bin/iterator.rs:19:5
[INFO] [stdout]    |
[INFO] [stdout] 19 |     browserHistory: &'a BrowserHistory,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `browser_history`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> src/bin/iterator.rs:10:17
[INFO] [stdout]    |
[INFO] [stdout] 10 |     pub fn iter(&self) -> BrowserIterator {
[INFO] [stdout]    |                 ^^^^^     ^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 the lifetime is elided here
[INFO] [stdout]    |
[INFO] [stdout]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]    |
[INFO] [stdout] 10 |     pub fn iter(&self) -> BrowserIterator<'_> {
[INFO] [stdout]    |                                          ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `browserHistory` should have a snake case name
[INFO] [stdout]   --> src/bin/iterator.rs:19:5
[INFO] [stdout]    |
[INFO] [stdout] 19 |     browserHistory: &'a BrowserHistory,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `browser_history`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `content` is never read
[INFO] [stdout]   --> src/bin/state.rs:29:5
[INFO] [stdout]    |
[INFO] [stdout] 27 | struct Canvas {
[INFO] [stdout]    |        ------ field in this struct
[INFO] [stdout] 28 |     state: Option<Box<dyn Tool>>,
[INFO] [stdout] 29 |     content: 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: field `content` is never read
[INFO] [stdout]   --> src/bin/state.rs:29:5
[INFO] [stdout]    |
[INFO] [stdout] 27 | struct Canvas {
[INFO] [stdout]    |        ------ field in this struct
[INFO] [stdout] 28 |     state: Option<Box<dyn Tool>>,
[INFO] [stdout] 29 |     content: String,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0601]: `main` function not found in crate `rustpattern`
[INFO] [stdout]  --> src/main.rs:1:2
[INFO] [stdout]   |
[INFO] [stdout] 1 |
[INFO] [stdout]   | ^ consider adding a `main` function to `src/main.rs`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0601`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rustpattern` (bin "rustpattern") due to 1 previous error
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] running `Command { std: "docker" "inspect" "758b6c677c33bee7947504707778cf2ba10a32d58abf8a7182f397fd44c48cda", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "758b6c677c33bee7947504707778cf2ba10a32d58abf8a7182f397fd44c48cda", kill_on_drop: false }`
[INFO] [stdout] 758b6c677c33bee7947504707778cf2ba10a32d58abf8a7182f397fd44c48cda
