[INFO] cloning repository https://github.com/MichaelSWong/rest_api [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MichaelSWong/rest_api" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMichaelSWong%2Frest_api"` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMichaelSWong%2Frest_api'... [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 1f8bbc782277f7daba20c8115004976ca7692b86 [INFO] checking MichaelSWong/rest_api against try#96b3c169cd2d8959926fa240f10342f1659f8ae3 for pr-71896 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMichaelSWong%2Frest_api" "/workspace/builds/worker-12/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-12/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MichaelSWong/rest_api on toolchain 96b3c169cd2d8959926fa240f10342f1659f8ae3 [INFO] running `"/workspace/cargo-home/bin/cargo" "+96b3c169cd2d8959926fa240f10342f1659f8ae3" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/MichaelSWong/rest_api [INFO] finished tweaking git repo https://github.com/MichaelSWong/rest_api [INFO] tweaked toml for git repo https://github.com/MichaelSWong/rest_api written to /workspace/builds/worker-12/source/Cargo.toml [INFO] crate git repo https://github.com/MichaelSWong/rest_api already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+96b3c169cd2d8959926fa240f10342f1659f8ae3" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "+96b3c169cd2d8959926fa240f10342f1659f8ae3" "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] 240b68592d85c9d406f0250fc3987566305b5a131a416ddbcb54ff9dd29a9a52 [INFO] running `"docker" "start" "-a" "240b68592d85c9d406f0250fc3987566305b5a131a416ddbcb54ff9dd29a9a52"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling proc-macro2 v1.0.10 [INFO] [stderr] Compiling syn v1.0.17 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Checking smallvec v1.3.0 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Checking futures-core v0.3.4 [INFO] [stderr] Checking futures-sink v0.3.4 [INFO] [stderr] Compiling serde v1.0.106 [INFO] [stderr] Checking bytes v0.5.4 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling proc-macro-nested v0.1.4 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling cc v1.0.50 [INFO] [stderr] Checking arc-swap v0.4.5 [INFO] [stderr] Compiling proc-macro-hack v0.5.15 [INFO] [stderr] Checking futures-io v0.3.4 [INFO] [stderr] Checking pin-utils v0.1.0-alpha.4 [INFO] [stderr] Checking pin-project-lite v0.1.4 [INFO] [stderr] Checking futures-task v0.3.4 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling failure_derive v0.1.7 [INFO] [stderr] Checking copyless v0.1.4 [INFO] [stderr] Checking itoa v0.4.5 [INFO] [stderr] Compiling pq-sys v0.4.6 [INFO] [stderr] Checking either v1.5.3 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking ppv-lite86 v0.2.6 [INFO] [stderr] Compiling unicode-segmentation v1.6.0 [INFO] [stderr] Checking match_cfg v0.1.0 [INFO] [stderr] Checking linked-hash-map v0.5.2 [INFO] [stderr] Compiling ryu v1.0.3 [INFO] [stderr] Checking regex-syntax v0.6.17 [INFO] [stderr] Checking adler32 v1.0.4 [INFO] [stderr] Compiling encoding_rs v0.8.22 [INFO] [stderr] Checking dtoa v0.4.5 [INFO] [stderr] Checking language-tags v0.2.2 [INFO] [stderr] Checking ucd-util v0.1.8 [INFO] [stderr] Compiling regex v0.2.11 [INFO] [stderr] Checking mime v0.3.16 [INFO] [stderr] Checking sha1 v0.6.0 [INFO] [stderr] Checking base64 v0.11.0 [INFO] [stderr] Checking utf8-ranges v1.0.4 [INFO] [stderr] Checking termcolor v1.1.0 [INFO] [stderr] Compiling syntex_fmt_macros v0.5.0 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Checking futures-channel v0.3.4 [INFO] [stderr] Checking lock_api v0.3.4 [INFO] [stderr] Checking unicode-normalization v0.1.12 [INFO] [stderr] Checking humantime v1.3.0 [INFO] [stderr] Checking http v0.2.1 [INFO] [stderr] Checking bytestring v0.1.5 [INFO] [stderr] Checking miniz_oxide v0.3.6 [INFO] [stderr] Checking regex-syntax v0.5.6 [INFO] [stderr] Checking lru-cache v0.1.2 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling indexmap v1.3.2 [INFO] [stderr] Checking crc32fast v1.2.0 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Checking net2 v0.2.33 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking parking_lot_core v0.7.1 [INFO] [stderr] Checking signal-hook-registry v1.2.0 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking time v0.1.43 [INFO] [stderr] Checking hostname v0.3.1 [INFO] [stderr] Checking socket2 v0.3.12 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking listenfd v0.3.3 [INFO] [stderr] Checking aho-corasick v0.7.10 [INFO] [stderr] Checking aho-corasick v0.6.10 [INFO] [stderr] Checking threadpool v1.7.1 [INFO] [stderr] Checking parking_lot v0.10.2 [INFO] [stderr] Checking flate2 v1.0.14 [INFO] [stderr] Checking mio v0.6.21 [INFO] [stderr] Checking resolv-conf v0.6.3 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Compiling syn v0.14.9 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Compiling quote v1.0.3 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Checking scheduled-thread-pool v0.2.4 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Compiling backtrace-sys v0.1.36 [INFO] [stderr] Compiling brotli-sys v0.3.2 [INFO] [stderr] Checking r2d2 v0.8.8 [INFO] [stderr] Checking mio-uds v0.6.7 [INFO] [stderr] Checking url v2.1.1 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking tokio v0.2.18 [INFO] [stderr] Checking regex v1.3.7 [INFO] [stderr] Checking backtrace v0.3.46 [INFO] [stderr] Checking error-chain v0.11.0 [INFO] [stderr] Checking env_logger v0.6.2 [INFO] [stderr] Checking tokio-util v0.2.0 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Compiling derive-error-chain v0.11.2 [INFO] [stderr] Checking actix-codec v0.2.0 [INFO] [stderr] Checking brotli2 v0.3.2 [INFO] [stderr] Checking dotenv v0.11.0 [INFO] [stderr] Compiling synstructure v0.12.3 [INFO] [stderr] Compiling serde_derive v1.0.106 [INFO] [stderr] Compiling futures-macro v0.3.4 [INFO] [stderr] Compiling derive_more v0.99.5 [INFO] [stderr] Compiling pin-project-internal v0.4.9 [INFO] [stderr] Compiling actix-macros v0.1.1 [INFO] [stderr] Compiling enum-as-inner v0.3.2 [INFO] [stderr] Compiling async-trait v0.1.30 [INFO] [stderr] Compiling diesel_derives v1.4.1 [INFO] [stderr] Compiling actix-web-codegen v0.2.1 [INFO] [stderr] Checking failure v0.1.7 [INFO] [stderr] Checking futures-util v0.3.4 [INFO] [stderr] Checking pin-project v0.4.9 [INFO] [stderr] Checking futures-executor v0.3.4 [INFO] [stderr] Checking actix-service v1.0.5 [INFO] [stderr] Checking h2 v0.2.4 [INFO] [stderr] Checking futures v0.3.4 [INFO] [stderr] Checking trust-dns-proto v0.18.0-alpha.2 [INFO] [stderr] Checking actix-threadpool v0.3.1 [INFO] [stderr] Checking actix-rt v1.1.0 [INFO] [stderr] Checking actix-utils v1.0.6 [INFO] [stderr] Checking actix-server v1.0.2 [INFO] [stderr] Checking actix-tls v1.0.0 [INFO] [stderr] Checking trust-dns-resolver v0.18.0-alpha.2 [INFO] [stderr] Checking actix-testing v1.0.0 [INFO] [stderr] Checking actix-connect v1.0.2 [INFO] [stderr] Checking chrono v0.4.11 [INFO] [stderr] Checking serde_json v1.0.51 [INFO] [stderr] Checking uuid v0.6.5 [INFO] [stderr] Checking serde_urlencoded v0.6.1 [INFO] [stderr] Checking actix-router v0.2.4 [INFO] [stderr] Checking diesel v1.4.4 [INFO] [stderr] Checking actix-http v1.0.1 [INFO] [stderr] Checking awc v1.0.1 [INFO] [stderr] Checking actix-web v2.0.0 [INFO] [stderr] Checking migrations_internals v1.4.1 [INFO] [stderr] Compiling migrations_macros v1.4.2 [INFO] [stderr] Checking diesel_migrations v1.4.0 [INFO] [stderr] Checking rest_api v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] error: expected one of `!` or `::`, found `std` [INFO] [stderr] --> src/db.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | ust std::env; [INFO] [stderr] | ^^^ expected one of `!` or `::` [INFO] [stderr] [INFO] [stderr] error: expected `;`, found `keyword `let`` [INFO] [stderr] --> src/user/model.rs:38:37 [INFO] [stderr] | [INFO] [stderr] 38 | let conn = db::connection()? [INFO] [stderr] | ^ help: add `;` here [INFO] [stderr] 39 | [INFO] [stderr] 40 | let user = user::table [INFO] [stderr] | --- unexpected token [INFO] [stderr] [INFO] [stderr] error: expected one of `!` or `::`, found `std` [INFO] [stderr] --> src/db.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | ust std::env; [INFO] [stderr] | ^^^ expected one of `!` or `::` [INFO] [stderr] [INFO] [stderr] error: expected `;`, found `keyword `let`` [INFO] [stderr] --> src/user/model.rs:38:37 [INFO] [stderr] | [INFO] [stderr] 38 | let conn = db::connection()? [INFO] [stderr] | ^ help: add `;` here [INFO] [stderr] 39 | [INFO] [stderr] 40 | let user = user::table [INFO] [stderr] | --- unexpected token [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `crate::user::UserMessage` [INFO] [stderr] --> src/user/routes.rs:2:25 [INFO] [stderr] | [INFO] [stderr] 2 | use crate::user::{User, UserMessage}; [INFO] [stderr] | ^^^^^^^^^^^ no `UserMessage` in `user` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `crate::user::UserMessage` [INFO] [stderr] --> src/user/routes.rs:2:25 [INFO] [stderr] | [INFO] [stderr] 2 | use crate::user::{User, UserMessage}; [INFO] [stderr] | ^^^^^^^^^^^ no `UserMessage` in `user` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `user` [INFO] [stderr] --> src/user/routes.rs:34:23 [INFO] [stderr] | [INFO] [stderr] 34 | let num_deleted = user::delete(id.into_inner())?; [INFO] [stderr] | ^^^^ use of undeclared type or module `user` [INFO] [stderr] [INFO] [stderr] error[E0423]: expected value, found module `db` [INFO] [stderr] --> src/user/model.rs:28:20 [INFO] [stderr] | [INFO] [stderr] 28 | let conn = db.connection()?; [INFO] [stderr] | ^^----------- [INFO] [stderr] | | [INFO] [stderr] | help: use the path separator to refer to an item: `db::connection` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `connection` in module `db` [INFO] [stderr] --> src/user/model.rs:38:24 [INFO] [stderr] | [INFO] [stderr] 38 | let conn = db::connection()? [INFO] [stderr] | ^^^^^^^^^^ not found in `db` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `connection` in module `db` [INFO] [stderr] --> src/user/model.rs:49:24 [INFO] [stderr] | [INFO] [stderr] 49 | let conn = db::connection()?; [INFO] [stderr] | ^^^^^^^^^^ not found in `db` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `connection` in module `db` [INFO] [stderr] --> src/user/model.rs:60:24 [INFO] [stderr] | [INFO] [stderr] 60 | let conn = db::connection()?; [INFO] [stderr] | ^^^^^^^^^^ not found in `db` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `init` in module `db` [INFO] [stderr] --> src/main.rs:23:9 [INFO] [stderr] | [INFO] [stderr] 23 | db::init(); [INFO] [stderr] | ^^^^ not found in `db` [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 8 | use env_logger::init; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused `#[macro_use]` import [INFO] [stderr] --> src/main.rs:5:1 [INFO] [stderr] | [INFO] [stderr] 5 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `user` [INFO] [stderr] --> src/user/routes.rs:34:23 [INFO] [stderr] | [INFO] [stderr] 34 | let num_deleted = user::delete(id.into_inner())?; [INFO] [stderr] | ^^^^ use of undeclared type or module `user` [INFO] [stderr] [INFO] [stderr] error[E0423]: expected value, found module `db` [INFO] [stderr] --> src/user/model.rs:28:20 [INFO] [stderr] | [INFO] [stderr] 28 | let conn = db.connection()?; [INFO] [stderr] | ^^----------- [INFO] [stderr] | | [INFO] [stderr] | help: use the path separator to refer to an item: `db::connection` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `connection` in module `db` [INFO] [stderr] --> src/user/model.rs:38:24 [INFO] [stderr] | [INFO] [stderr] 38 | let conn = db::connection()? [INFO] [stderr] | ^^^^^^^^^^ not found in `db` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `connection` in module `db` [INFO] [stderr] --> src/user/model.rs:49:24 [INFO] [stderr] | [INFO] [stderr] 49 | let conn = db::connection()?; [INFO] [stderr] | ^^^^^^^^^^ not found in `db` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `connection` in module `db` [INFO] [stderr] --> src/user/model.rs:60:24 [INFO] [stderr] | [INFO] [stderr] 60 | let conn = db::connection()?; [INFO] [stderr] | ^^^^^^^^^^ not found in `db` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `init` in module `db` [INFO] [stderr] --> src/main.rs:23:9 [INFO] [stderr] | [INFO] [stderr] 23 | db::init(); [INFO] [stderr] | ^^^^ not found in `db` [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 8 | use env_logger::init; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused `#[macro_use]` import [INFO] [stderr] --> src/main.rs:5:1 [INFO] [stderr] | [INFO] [stderr] 5 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `update` found for struct `user::model::User` in the current scope [INFO] [stderr] --> src/user/routes.rs:28:22 [INFO] [stderr] | [INFO] [stderr] 28 | let user = User::update(id.into_inner(), user.into_inner())?; [INFO] [stderr] | ^^^^^^ function or associated item not found in `user::model::User` [INFO] [stderr] | [INFO] [stderr] ::: src/user/model.rs:18:1 [INFO] [stderr] | [INFO] [stderr] 18 | pub struct User { [INFO] [stderr] | --------------- function or associated item `update` not found for this [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `update` found for struct `user::model::User` in the current scope [INFO] [stderr] --> src/user/routes.rs:28:22 [INFO] [stderr] | [INFO] [stderr] 28 | let user = User::update(id.into_inner(), user.into_inner())?; [INFO] [stderr] | ^^^^^^ function or associated item not found in `user::model::User` [INFO] [stderr] | [INFO] [stderr] ::: src/user/model.rs:18:1 [INFO] [stderr] | [INFO] [stderr] 18 | pub struct User { [INFO] [stderr] | --------------- function or associated item `update` not found for this [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `native_utc` found for struct `chrono::datetime::DateTime` in the current scope [INFO] [stderr] --> src/user/model.rs:78:36 [INFO] [stderr] | [INFO] [stderr] 78 | created_at: Utc::now().native_utc(), [INFO] [stderr] | ^^^^^^^^^^ help: there is an associated function with a similar name: `naive_utc` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `native_utc` found for struct `chrono::datetime::DateTime` in the current scope [INFO] [stderr] --> src/user/model.rs:78:36 [INFO] [stderr] | [INFO] [stderr] 78 | created_at: Utc::now().native_utc(), [INFO] [stderr] | ^^^^^^^^^^ help: there is an associated function with a similar name: `naive_utc` [INFO] [stderr] [INFO] [stderr] error: aborting due to 11 previous errors; 1 warning emitted [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0423, E0425, E0432, E0433, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0423`. [INFO] [stderr] error: aborting due to 11 previous errors; 1 warning emitted [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0423, E0425, E0432, E0433, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0423`. [INFO] [stderr] error: could not compile `rest_api`. [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: could not compile `rest_api`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "240b68592d85c9d406f0250fc3987566305b5a131a416ddbcb54ff9dd29a9a52"` [INFO] running `"docker" "rm" "-f" "240b68592d85c9d406f0250fc3987566305b5a131a416ddbcb54ff9dd29a9a52"` [INFO] [stdout] 240b68592d85c9d406f0250fc3987566305b5a131a416ddbcb54ff9dd29a9a52