[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] checking MrIceman/strdb against master#3cdcdaf31b45f8045164aae9604573d23091970b for pr-122267 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMrIceman%2Fstrdb" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MrIceman/strdb on toolchain 3cdcdaf31b45f8045164aae9604573d23091970b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3cdcdaf31b45f8045164aae9604573d23091970b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-6-tc1/source/Cargo.toml [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" "+3cdcdaf31b45f8045164aae9604573d23091970b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking MrIceman/strdb against try#05804f728f276cf7ecedbf71c814df440d37f293 for pr-122267 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMrIceman%2Fstrdb" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MrIceman/strdb on toolchain 05804f728f276cf7ecedbf71c814df440d37f293 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+05804f728f276cf7ecedbf71c814df440d37f293" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-6-tc2/source/Cargo.toml [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" "+05804f728f276cf7ecedbf71c814df440d37f293" "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 [ERROR] error running command: no output for 300 seconds [INFO] checking MrIceman/strdb against try#05804f728f276cf7ecedbf71c814df440d37f293 for pr-122267 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMrIceman%2Fstrdb" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MrIceman/strdb on toolchain 05804f728f276cf7ecedbf71c814df440d37f293 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+05804f728f276cf7ecedbf71c814df440d37f293" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-6-tc2/source/Cargo.toml [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" "+05804f728f276cf7ecedbf71c814df440d37f293" "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/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+05804f728f276cf7ecedbf71c814df440d37f293" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5d570f818953620a8ea6cdb28318d605f0c4037c072b955bfa869cc6520b80dc [INFO] running `Command { std: "docker" "start" "-a" "5d570f818953620a8ea6cdb28318d605f0c4037c072b955bfa869cc6520b80dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5d570f818953620a8ea6cdb28318d605f0c4037c072b955bfa869cc6520b80dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d570f818953620a8ea6cdb28318d605f0c4037c072b955bfa869cc6520b80dc", kill_on_drop: false }` [INFO] [stdout] 5d570f818953620a8ea6cdb28318d605f0c4037c072b955bfa869cc6520b80dc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+05804f728f276cf7ecedbf71c814df440d37f293" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 26b6f1886bdde3f20dc6eeb0065a8fa2daf3831e81871175cf2e06a84dfb5a77 [INFO] running `Command { std: "docker" "start" "-a" "26b6f1886bdde3f20dc6eeb0065a8fa2daf3831e81871175cf2e06a84dfb5a77", 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-channel v0.3.21 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Checking futures-sink v0.3.21 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Checking pin-project-lite v0.2.8 [INFO] [stderr] Checking slab v0.4.6 [INFO] [stderr] Checking 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] Checking futures-executor v0.3.21 [INFO] [stderr] Checking futures v0.3.21 [INFO] [stderr] Checking 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: 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] 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`, `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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BorrowMut`, `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)]` 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`, `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/manager.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Borrow; [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 imports: `FileWriter`, `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: `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/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: `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] 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[E0195]: lifetime parameters or bounds on method `on_new_message` do not match the trait declaration [INFO] [stdout] --> src/processor/io/main/engine_impl.rs:15:28 [INFO] [stdout] | [INFO] [stdout] 15 | async fn on_new_message(&self, message: &WriteMessage) { [INFO] [stdout] | ^ lifetimes do not match method in trait [INFO] [stdout] | [INFO] [stdout] ::: src/processor/io/engine.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | async fn on_new_message(self: &Self, message: &WriteMessage); [INFO] [stdout] | --------------------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | lifetimes in impl do not match this method in trait [INFO] [stdout] | this bound might be missing in the impl [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/processor/io/main/engine_impl.rs:15:36 [INFO] [stdout] | [INFO] [stdout] 15 | async fn on_new_message(&self, message: &WriteMessage) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0195]: lifetime parameters or bounds on method `on_new_message` do not match the trait declaration [INFO] [stdout] --> src/processor/io/main/engine_impl.rs:15:28 [INFO] [stdout] | [INFO] [stdout] 15 | async fn on_new_message(&self, message: &WriteMessage) { [INFO] [stdout] | ^ lifetimes do not match method in trait [INFO] [stdout] | [INFO] [stdout] ::: src/processor/io/engine.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | async fn on_new_message(self: &Self, message: &WriteMessage); [INFO] [stdout] | --------------------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | lifetimes in impl do not match this method in trait [INFO] [stdout] | this bound might be missing in the impl [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/processor/io/main/engine_impl.rs:15:36 [INFO] [stdout] | [INFO] [stdout] 15 | async fn on_new_message(&self, message: &WriteMessage) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [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] | ^^^^------------------------ an argument 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> { [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[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] | ^^^^------------------------ an argument 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> { [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> { [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] 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> { [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: 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] [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)]` 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] [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)]` 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] 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] error: lifetime may not live long enough [INFO] [stdout] --> src/processor/io/main/engine_impl.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn init_engine<'a>(config: &'a Config) -> Box { [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] 10 | return Box::new(EngineImpl { config }); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cast requires that `'a` must outlive `'static` [INFO] [stdout] | [INFO] [stdout] help: to declare that the trait object captures data from argument `config`, you can add an explicit `'a` lifetime bound [INFO] [stdout] | [INFO] [stdout] 9 | pub fn init_engine<'a>(config: &'a Config) -> Box { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/processor/io/main/engine_impl.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn init_engine<'a>(config: &'a Config) -> Box { [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] 10 | return Box::new(EngineImpl { config }); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cast requires that `'a` must outlive `'static` [INFO] [stdout] | [INFO] [stdout] help: to declare that the trait object captures data from argument `config`, you can add an explicit `'a` lifetime bound [INFO] [stdout] | [INFO] [stdout] 9 | pub fn init_engine<'a>(config: &'a Config) -> Box { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors; 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0195, E0515, E0716, E0726. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors; 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0195, 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 8 previous errors; 10 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `strdb` (bin "strdb" test) due to 8 previous errors; 10 warnings emitted [INFO] running `Command { std: "docker" "inspect" "26b6f1886bdde3f20dc6eeb0065a8fa2daf3831e81871175cf2e06a84dfb5a77", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "26b6f1886bdde3f20dc6eeb0065a8fa2daf3831e81871175cf2e06a84dfb5a77", kill_on_drop: false }` [INFO] [stdout] 26b6f1886bdde3f20dc6eeb0065a8fa2daf3831e81871175cf2e06a84dfb5a77