[INFO] updating cached repository https://github.com/garasubo/nickel-hello [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/big/crater/work/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] 3ee3a58de642e2e50eeaee4fc49d94b3c5c08aa3 [INFO] testing garasubo/nickel-hello against beta-2019-09-28 for beta-1.39-1 [INFO] running `"git" "clone" "work/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgarasubo%2Fnickel-hello" "work/builds/worker-7/source"` [INFO] [stderr] Cloning into 'work/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/garasubo/nickel-hello on toolchain beta-2019-09-28 [INFO] running `"/big/crater/work/cargo-home/bin/cargo" "+beta-2019-09-28" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/garasubo/nickel-hello [INFO] finished tweaking git repo https://github.com/garasubo/nickel-hello [INFO] tweaked toml for git repo https://github.com/garasubo/nickel-hello written to work/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/garasubo/nickel-hello already has a lockfile, it will not be regenerated [INFO] running `"/big/crater/work/cargo-home/bin/cargo" "+beta-2019-09-28" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] error: the lock file /big/crater/work/builds/worker-7/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] the lockfile is outdated, regenerating it [INFO] running `"/big/crater/work/cargo-home/bin/cargo" "+beta-2019-09-28" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/big/crater/work/cargo-home/bin/cargo" "+beta-2019-09-28" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `"docker" "create" "-v" "/big/crater/work/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/big/crater/work/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/big/crater/work/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/big/crater/work/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-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" "+beta-2019-09-28" "build" "--frozen"` [INFO] [stdout] c4835b4321645db614ddd203faced7bcbc105e09a2804b556ef5e7aff35c0221 [INFO] running `"docker" "start" "-a" "c4835b4321645db614ddd203faced7bcbc105e09a2804b556ef5e7aff35c0221"` [INFO] [stderr] Compiling separator v0.4.1 [INFO] [stderr] Compiling serde_json v1.0.41 [INFO] [stderr] Compiling md-5 v0.8.0 [INFO] [stderr] Compiling textnonce v0.6.5 [INFO] [stderr] Compiling scan_fmt v0.1.3 [INFO] [stderr] Compiling pbkdf2 v0.3.0 [INFO] [stderr] Compiling bson v0.14.0 [INFO] [stderr] Compiling nickel v0.11.0 [INFO] [stderr] Compiling mongodb v0.4.0 [INFO] [stderr] Compiling nickel-hello v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: unused import: `bson::oid::ObjectId` [INFO] [stderr] --> src/main.rs:23:5 [INFO] [stderr] | [INFO] [stderr] 23 | use bson::oid::ObjectId; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'bson::Bson::to_json': use bson.clone().into() instead [INFO] [stderr] --> src/main.rs:37:43 [INFO] [stderr] | [INFO] [stderr] 37 | Ok(doc) => Ok(Bson::Document(doc).to_json()), [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:37:23 [INFO] [stderr] | [INFO] [stderr] 37 | Ok(doc) => Ok(Bson::Document(doc).to_json()), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `rustc_serialize::json::Json`, found enum `serde_json::value::Value` [INFO] [stderr] | [INFO] [stderr] = note: expected type `rustc_serialize::json::Json` [INFO] [stderr] found type `serde_json::value::Value` [INFO] [stderr] [INFO] [stderr] warning: unreachable expression [INFO] [stderr] --> src/main.rs:46:21 [INFO] [stderr] | [INFO] [stderr] 46 | router.get("/", middleware! {|_, response| [INFO] [stderr] | _____________________^ [INFO] [stderr] 47 | | let mut data = HashMap::new(); [INFO] [stderr] 48 | | data.insert("color", "Green"); [INFO] [stderr] 49 | | data.insert("name", "California Apple"); [INFO] [stderr] 50 | | data.insert("price", "2.50"); [INFO] [stderr] 51 | | return response.render("assets/hello.tpl", &data); [INFO] [stderr] 52 | | }); [INFO] [stderr] | |_____^ unreachable expression [INFO] [stderr] | [INFO] [stderr] ::: <::nickel::macros::middleware::as_block macros>:1:19 [INFO] [stderr] | [INFO] [stderr] 1 | ($ b : block) => ($ b) [INFO] [stderr] | --- any code following this expression is unreachable [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` on by default [INFO] [stderr] = note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `User: serde::de::Deserialize<'_>` is not satisfied [INFO] [stderr] --> src/main.rs:94:28 [INFO] [stderr] | [INFO] [stderr] 94 | let user = request.json_as::().unwrap(); [INFO] [stderr] | ^^^^^^^ the trait `serde::de::Deserialize<'_>` is not implemented for `User` [INFO] [stderr] [INFO] [stderr] warning: unused import: `ToJson` [INFO] [stderr] --> src/main.rs:26:35 [INFO] [stderr] | [INFO] [stderr] 26 | use rustc_serialize::json::{Json, ToJson}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0277, E0308. [INFO] [stderr] For more information about an error, try `rustc --explain E0277`. [INFO] [stderr] error: could not compile `nickel-hello`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "c4835b4321645db614ddd203faced7bcbc105e09a2804b556ef5e7aff35c0221"` [INFO] running `"docker" "rm" "-f" "c4835b4321645db614ddd203faced7bcbc105e09a2804b556ef5e7aff35c0221"` [INFO] [stdout] c4835b4321645db614ddd203faced7bcbc105e09a2804b556ef5e7aff35c0221