[INFO] cloning repository https://github.com/MrIceman/strdb
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MrIceman/strdb" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMrIceman%2Fstrdb", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMrIceman%2Fstrdb'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 65c5f7f7e29580c795b2c741f62bfb853fb706a6
[INFO] testing MrIceman/strdb against try#bd7d74411512a3dd3b35d2f699c51dd2557c7e7e+cargoflags=-Zbuild-dir-new-layout for pr-149852-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMrIceman%2Fstrdb" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/MrIceman/strdb
[INFO] finished tweaking git repo https://github.com/MrIceman/strdb
[INFO] tweaked toml for git repo https://github.com/MrIceman/strdb written to /workspace/builds/worker-1-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/MrIceman/strdb on toolchain bd7d74411512a3dd3b35d2f699c51dd2557c7e7e
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/MrIceman/strdb 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" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "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]  Downloading crates ...
[INFO] [stderr]   Downloaded async-trait v0.1.53
[INFO] [stderr]   Downloaded futures-executor v0.3.21
[INFO] [stderr]   Downloaded futures v0.3.21
[INFO] [stderr]   Downloaded futures-macro v0.3.21
[INFO] [stderr]   Downloaded slab v0.4.6
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 6ecece57cad4cc6bd09c478893df29ccb7b2f72805d74b863437e5c3c4dc1caf
[INFO] running `Command { std: "docker" "start" "-a" "6ecece57cad4cc6bd09c478893df29ccb7b2f72805d74b863437e5c3c4dc1caf", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "6ecece57cad4cc6bd09c478893df29ccb7b2f72805d74b863437e5c3c4dc1caf", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6ecece57cad4cc6bd09c478893df29ccb7b2f72805d74b863437e5c3c4dc1caf", kill_on_drop: false }`
[INFO] [stdout] 6ecece57cad4cc6bd09c478893df29ccb7b2f72805d74b863437e5c3c4dc1caf
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "build" "--frozen" "--message-format=json" "-Zbuild-dir-new-layout", kill_on_drop: false }`
[INFO] [stdout] df9d93b9d816445ac968d07c6b255ee07f872c79ab52050719fa007a5979e2fd
[INFO] running `Command { std: "docker" "start" "-a" "df9d93b9d816445ac968d07c6b255ee07f872c79ab52050719fa007a5979e2fd", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.37
[INFO] [stderr]    Compiling unicode-xid v0.2.2
[INFO] [stderr]    Compiling syn v1.0.91
[INFO] [stderr]    Compiling futures-core v0.3.21
[INFO] [stderr]    Compiling futures-task v0.3.21
[INFO] [stderr]    Compiling futures-channel v0.3.21
[INFO] [stderr]    Compiling futures-sink v0.3.21
[INFO] [stderr]    Compiling futures-util v0.3.21
[INFO] [stderr]    Compiling slab v0.4.6
[INFO] [stderr]    Compiling pin-project-lite v0.2.8
[INFO] [stderr]    Compiling futures-io v0.3.21
[INFO] [stderr]    Compiling async-trait v0.1.53
[INFO] [stderr]    Compiling quote v1.0.18
[INFO] [stderr]    Compiling futures-macro v0.3.21
[INFO] [stderr]    Compiling futures-executor v0.3.21
[INFO] [stderr]    Compiling futures v0.3.21
[INFO] [stderr]    Compiling strdb v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error: cannot find attribute `async_trait` in this scope
[INFO] [stdout]   --> src/processor/io/main/engine_impl.rs:13:3
[INFO] [stdout]    |
[INFO] [stdout] 13 | #[async_trait]
[INFO] [stdout]    |   ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `async_trait` is in scope, but it is a crate, not an attribute
[INFO] [stdout] help: consider importing this attribute macro
[INFO] [stdout]    |
[INFO] [stdout]  1 + use async_trait::async_trait;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0726]: implicit elided lifetime not allowed here
[INFO] [stdout]   --> src/processor/io/main/engine_impl.rs:14:22
[INFO] [stdout]    |
[INFO] [stdout] 14 | impl StrDbEngine for EngineImpl {
[INFO] [stdout]    |                      ^^^^^^^^^^ expected lifetime parameter
[INFO] [stdout]    |
[INFO] [stdout] help: indicate the anonymous lifetime
[INFO] [stdout]    |
[INFO] [stdout] 14 | impl StrDbEngine for EngineImpl<'_> {
[INFO] [stdout]    |                                ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `BorrowMut` and `Borrow`
[INFO] [stdout]  --> src/main.rs:1:19
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::borrow::{Borrow, BorrowMut};
[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: `std::borrow::Borrow`
[INFO] [stdout]  --> src/processor/manager.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::borrow::Borrow;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `FileWriter` and `init_file_writer`
[INFO] [stdout]  --> src/processor/manager.rs:4:41
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::processor::io::file_writer::{FileWriter, init_file_writer};
[INFO] [stdout]   |                                         ^^^^^^^^^^  ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::borrow::Borrow`
[INFO] [stdout]  --> src/processor/model/config.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::borrow::Borrow;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Read`
[INFO] [stdout]  --> src/processor/model/config.rs:3:15
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::io::{Read, Write};
[INFO] [stdout]   |               ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::borrow::Borrow`
[INFO] [stdout]  --> src/processor/io/writer/write_worker_impl.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::borrow::Borrow;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied
[INFO] [stdout]   --> src/main.rs:18:14
[INFO] [stdout]    |
[INFO] [stdout] 18 |     let fp = init("hello.txt", &config, );
[INFO] [stdout]    |              ^^^^------------------------ argument #3 of type `&'static (dyn StrDbEngine + 'static)` is missing
[INFO] [stdout]    |
[INFO] [stdout] note: function defined here
[INFO] [stdout]   --> src/processor/manager.rs:16:8
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub fn init<'a>(path: &'a str, config: &'a Config, engine: &'static dyn StrDbEngine) -> Box<Manager<'a>> {
[INFO] [stdout]    |        ^^^^                                        --------------------------------
[INFO] [stdout] help: provide the argument
[INFO] [stdout]    |
[INFO] [stdout] 18 |     let fp = init("hello.txt", &config, /* &'static (dyn StrDbEngine + 'static) */);
[INFO] [stdout]    |                                         ++++++++++++++++++++++++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0716]: temporary value dropped while borrowed
[INFO] [stdout]   --> src/processor/manager.rs:20:15
[INFO] [stdout]    |
[INFO] [stdout] 16 |   pub fn init<'a>(path: &'a str, config: &'a Config, engine: &'static dyn StrDbEngine) -> Box<Manager<'a>> {
[INFO] [stdout]    |               -- lifetime `'a` defined here
[INFO] [stdout] 17 |       let mut workers: Vec<&'a dyn WriteWorker> = Vec::new();
[INFO] [stdout]    |                        ------------------------ type annotation requires that borrow lasts for `'a`
[INFO] [stdout] ...
[INFO] [stdout] 20 |               &*create_write_worker(
[INFO] [stdout]    |  _______________^
[INFO] [stdout] 21 | |                 i.to_string().as_str(),
[INFO] [stdout] 22 | |                 engine,
[INFO] [stdout] 23 | |             ),
[INFO] [stdout]    | |_____________^ creates a temporary value which is freed while still in use
[INFO] [stdout] 24 |           );
[INFO] [stdout]    |            - temporary value is freed at the end of this statement
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0515]: cannot return value referencing local variable `workers`
[INFO] [stdout]   --> src/processor/manager.rs:26:12
[INFO] [stdout]    |
[INFO] [stdout] 26 |       return Box::new(Manager {
[INFO] [stdout]    |  ____________^
[INFO] [stdout] 27 | |         path,
[INFO] [stdout] 28 | |         config,
[INFO] [stdout] 29 | |         write_workers: workers.as_slice(),
[INFO] [stdout]    | |                        ------- `workers` is borrowed here
[INFO] [stdout] 30 | |     })
[INFO] [stdout]    | |______^ returns a value referencing data owned by the current function
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/processor/model/config.rs:38:13
[INFO] [stdout]    |
[INFO] [stdout] 38 |         let mut buf = [0; 8];
[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: `file`
[INFO] [stdout]   --> src/processor/model/config.rs:37:36
[INFO] [stdout]    |
[INFO] [stdout] 37 |     fn set_config(self: &mut Self, file: &File) {
[INFO] [stdout]    |                                    ^^^^ help: if this is intentional, prefix it with an underscore: `_file`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `content`
[INFO] [stdout]   --> src/processor/io/writer/write_worker_impl.rs:21:27
[INFO] [stdout]    |
[INFO] [stdout] 21 |     fn write(self: &Self, content: &[u8]) {}
[INFO] [stdout]    |                           ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_content`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0061, E0515, E0716, E0726.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0061`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `strdb` (bin "strdb") due to 5 previous errors; 9 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "df9d93b9d816445ac968d07c6b255ee07f872c79ab52050719fa007a5979e2fd", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "df9d93b9d816445ac968d07c6b255ee07f872c79ab52050719fa007a5979e2fd", kill_on_drop: false }`
[INFO] [stdout] df9d93b9d816445ac968d07c6b255ee07f872c79ab52050719fa007a5979e2fd
