[INFO] updating cached repository https://github.com/carlosb1/cqrs_example [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] dabac258e199941f037d0178c833ed17f389b7c2 [INFO] checking carlosb1/cqrs_example against try#e4dba30b9b475d8750370c4dfb49b6541990904d for pr-71393 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcarlosb1%2Fcqrs_example" "/workspace/builds/worker-9/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/carlosb1/cqrs_example on toolchain e4dba30b9b475d8750370c4dfb49b6541990904d [INFO] running `"/workspace/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/carlosb1/cqrs_example [INFO] finished tweaking git repo https://github.com/carlosb1/cqrs_example [INFO] tweaked toml for git repo https://github.com/carlosb1/cqrs_example written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate git repo https://github.com/carlosb1/cqrs_example already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] d5398e5beac47b845735702144964da0eb546fcac304bae95aa051559a6e3cb4 [INFO] running `"docker" "start" "-a" "d5398e5beac47b845735702144964da0eb546fcac304bae95aa051559a6e3cb4"` [INFO] [stderr] Checking cqrs_example v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] error[E0583]: file not found for module `schema` [INFO] [stderr] --> src/main.rs:21:1 [INFO] [stderr] | [INFO] [stderr] 21 | pub mod schema; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: to create the module `schema`, create file "src/schema.rs" [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `schema::posts` [INFO] [stderr] --> src/main.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 22 | use schema::posts; [INFO] [stderr] | ^^^^^^^^^^^^^ no `posts` in `schema` [INFO] [stderr] [INFO] [stderr] error: cannot find derive macro `Serialize` in this scope [INFO] [stderr] --> src/main.rs:25:10 [INFO] [stderr] | [INFO] [stderr] 25 | #[derive(Serialize)] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find derive macro `Queryable` in this scope [INFO] [stderr] --> src/main.rs:27:10 [INFO] [stderr] | [INFO] [stderr] 27 | #[derive(Queryable)] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find derive macro `Serialize` in this scope [INFO] [stderr] --> src/main.rs:35:10 [INFO] [stderr] | [INFO] [stderr] 35 | #[derive(Serialize, Deserialize)] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find derive macro `Deserialize` in this scope [INFO] [stderr] --> src/main.rs:35:21 [INFO] [stderr] | [INFO] [stderr] 35 | #[derive(Serialize, Deserialize)] [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find derive macro `Insertable` in this scope [INFO] [stderr] --> src/main.rs:36:10 [INFO] [stderr] | [INFO] [stderr] 36 | #[derive(Insertable)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find attribute `table_name` in this scope [INFO] [stderr] --> src/main.rs:39:3 [INFO] [stderr] | [INFO] [stderr] 39 | #[table_name="posts"] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `data` [INFO] [stderr] --> src/main.rs:49:48 [INFO] [stderr] | [INFO] [stderr] 49 | fn from_data(req: &Request, data: Data) -> data::Outcome { [INFO] [stderr] | ^^^^ use of undeclared type or module `data` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `serde_json` [INFO] [stderr] --> src/main.rs:51:15 [INFO] [stderr] | [INFO] [stderr] 51 | match serde_json::from_reader(reader).map(|val| val) { [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `serde_json` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Status` [INFO] [stderr] --> src/main.rs:53:32 [INFO] [stderr] | [INFO] [stderr] 53 | Err(e) => Failure((Status::BadRequest, e.to_string())), [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Status` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `env` [INFO] [stderr] --> src/main.rs:72:32 [INFO] [stderr] | [INFO] [stderr] 72 | let database_url = env::var("DATABASE_URL").expect("DATABASE_URL must be set"); [INFO] [stderr] | ^^^ use of undeclared type or module `env` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `PgConnection` [INFO] [stderr] --> src/main.rs:73:13 [INFO] [stderr] | [INFO] [stderr] 73 | PgConnection::establish(&database_url).expect(&format!("Error connecting to {}", database_url)) [INFO] [stderr] | ^^^^^^^^^^^^ use of undeclared type or module `PgConnection` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `diesel` [INFO] [stderr] --> src/main.rs:79:21 [INFO] [stderr] | [INFO] [stderr] 79 | let _ = diesel::delete(posts::table).execute(&conn); [INFO] [stderr] | ^^^^^^ use of undeclared type or module `diesel` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `diesel` [INFO] [stderr] --> src/main.rs:86:13 [INFO] [stderr] | [INFO] [stderr] 86 | diesel::insert_into(posts::table).values(&post).get_result(&conn).expect("Error saving!") [INFO] [stderr] | ^^^^^^ use of undeclared type or module `diesel` [INFO] [stderr] [INFO] [stderr] error[E0405]: cannot find trait `FromDataSimple` in this scope [INFO] [stderr] --> src/main.rs:45:6 [INFO] [stderr] | [INFO] [stderr] 45 | impl FromDataSimple for NewPost { [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Request` in this scope [INFO] [stderr] --> src/main.rs:49:24 [INFO] [stderr] | [INFO] [stderr] 49 | fn from_data(req: &Request, data: Data) -> data::Outcome { [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Data` in this scope [INFO] [stderr] --> src/main.rs:49:39 [INFO] [stderr] | [INFO] [stderr] 49 | fn from_data(req: &Request, data: Data) -> data::Outcome { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `Success` in this scope [INFO] [stderr] --> src/main.rs:52:26 [INFO] [stderr] | [INFO] [stderr] 52 | Ok(value) => Success(value), [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `Failure` in this scope [INFO] [stderr] --> src/main.rs:53:23 [INFO] [stderr] | [INFO] [stderr] 53 | Err(e) => Failure((Status::BadRequest, e.to_string())), [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PgConnection` in this scope [INFO] [stderr] --> src/main.rs:70:46 [INFO] [stderr] | [INFO] [stderr] 70 | pub fn establish_connection(self) -> PgConnection { [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `dotenv` in this scope [INFO] [stderr] --> src/main.rs:71:13 [INFO] [stderr] | [INFO] [stderr] 71 | dotenv().ok(); [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0583]: file not found for module `schema` [INFO] [stderr] --> src/main.rs:21:1 [INFO] [stderr] | [INFO] [stderr] 21 | pub mod schema; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: to create the module `schema`, create file "src/schema.rs" [INFO] [stderr] [INFO] [stderr] error: aborting due to 22 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0405, E0412, E0425, E0432, E0433, E0583. [INFO] [stderr] For more information about an error, try `rustc --explain E0405`. [INFO] [stderr] error: could not compile `cqrs_example`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0432]: unresolved import `schema::posts` [INFO] [stderr] --> src/main.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 22 | use schema::posts; [INFO] [stderr] | ^^^^^^^^^^^^^ no `posts` in `schema` [INFO] [stderr] [INFO] [stderr] error: cannot find derive macro `Serialize` in this scope [INFO] [stderr] --> src/main.rs:25:10 [INFO] [stderr] | [INFO] [stderr] 25 | #[derive(Serialize)] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find derive macro `Queryable` in this scope [INFO] [stderr] --> src/main.rs:27:10 [INFO] [stderr] | [INFO] [stderr] 27 | #[derive(Queryable)] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find derive macro `Serialize` in this scope [INFO] [stderr] --> src/main.rs:35:10 [INFO] [stderr] | [INFO] [stderr] 35 | #[derive(Serialize, Deserialize)] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find derive macro `Deserialize` in this scope [INFO] [stderr] --> src/main.rs:35:21 [INFO] [stderr] | [INFO] [stderr] 35 | #[derive(Serialize, Deserialize)] [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find derive macro `Insertable` in this scope [INFO] [stderr] --> src/main.rs:36:10 [INFO] [stderr] | [INFO] [stderr] 36 | #[derive(Insertable)] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find attribute `table_name` in this scope [INFO] [stderr] --> src/main.rs:39:3 [INFO] [stderr] | [INFO] [stderr] 39 | #[table_name="posts"] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `data` [INFO] [stderr] --> src/main.rs:49:48 [INFO] [stderr] | [INFO] [stderr] 49 | fn from_data(req: &Request, data: Data) -> data::Outcome { [INFO] [stderr] | ^^^^ use of undeclared type or module `data` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `serde_json` [INFO] [stderr] --> src/main.rs:51:15 [INFO] [stderr] | [INFO] [stderr] 51 | match serde_json::from_reader(reader).map(|val| val) { [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `serde_json` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Status` [INFO] [stderr] --> src/main.rs:53:32 [INFO] [stderr] | [INFO] [stderr] 53 | Err(e) => Failure((Status::BadRequest, e.to_string())), [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Status` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `env` [INFO] [stderr] --> src/main.rs:72:32 [INFO] [stderr] | [INFO] [stderr] 72 | let database_url = env::var("DATABASE_URL").expect("DATABASE_URL must be set"); [INFO] [stderr] | ^^^ use of undeclared type or module `env` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `PgConnection` [INFO] [stderr] --> src/main.rs:73:13 [INFO] [stderr] | [INFO] [stderr] 73 | PgConnection::establish(&database_url).expect(&format!("Error connecting to {}", database_url)) [INFO] [stderr] | ^^^^^^^^^^^^ use of undeclared type or module `PgConnection` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `diesel` [INFO] [stderr] --> src/main.rs:79:21 [INFO] [stderr] | [INFO] [stderr] 79 | let _ = diesel::delete(posts::table).execute(&conn); [INFO] [stderr] | ^^^^^^ use of undeclared type or module `diesel` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `diesel` [INFO] [stderr] --> src/main.rs:86:13 [INFO] [stderr] | [INFO] [stderr] 86 | diesel::insert_into(posts::table).values(&post).get_result(&conn).expect("Error saving!") [INFO] [stderr] | ^^^^^^ use of undeclared type or module `diesel` [INFO] [stderr] [INFO] [stderr] error[E0405]: cannot find trait `FromDataSimple` in this scope [INFO] [stderr] --> src/main.rs:45:6 [INFO] [stderr] | [INFO] [stderr] 45 | impl FromDataSimple for NewPost { [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Request` in this scope [INFO] [stderr] --> src/main.rs:49:24 [INFO] [stderr] | [INFO] [stderr] 49 | fn from_data(req: &Request, data: Data) -> data::Outcome { [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Data` in this scope [INFO] [stderr] --> src/main.rs:49:39 [INFO] [stderr] | [INFO] [stderr] 49 | fn from_data(req: &Request, data: Data) -> data::Outcome { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `Success` in this scope [INFO] [stderr] --> src/main.rs:52:26 [INFO] [stderr] | [INFO] [stderr] 52 | Ok(value) => Success(value), [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `Failure` in this scope [INFO] [stderr] --> src/main.rs:53:23 [INFO] [stderr] | [INFO] [stderr] 53 | Err(e) => Failure((Status::BadRequest, e.to_string())), [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PgConnection` in this scope [INFO] [stderr] --> src/main.rs:70:46 [INFO] [stderr] | [INFO] [stderr] 70 | pub fn establish_connection(self) -> PgConnection { [INFO] [stderr] | ^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `dotenv` in this scope [INFO] [stderr] --> src/main.rs:71:13 [INFO] [stderr] | [INFO] [stderr] 71 | dotenv().ok(); [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error: aborting due to 22 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0405, E0412, E0425, E0432, E0433, E0583. [INFO] [stderr] For more information about an error, try `rustc --explain E0405`. [INFO] [stderr] error: could not compile `cqrs_example`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "d5398e5beac47b845735702144964da0eb546fcac304bae95aa051559a6e3cb4"` [INFO] running `"docker" "rm" "-f" "d5398e5beac47b845735702144964da0eb546fcac304bae95aa051559a6e3cb4"` [INFO] [stdout] d5398e5beac47b845735702144964da0eb546fcac304bae95aa051559a6e3cb4