[INFO] updating cached repository mkpankov/rust-phonebook [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/mkpankov/rust-phonebook [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/mkpankov/rust-phonebook" "work/ex/beta-1.38-1/sources/1.37.0/gh/mkpankov/rust-phonebook"` [INFO] [stderr] Cloning into 'work/ex/beta-1.38-1/sources/1.37.0/gh/mkpankov/rust-phonebook'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/mkpankov/rust-phonebook" "work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/mkpankov/rust-phonebook"` [INFO] [stderr] Cloning into 'work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/mkpankov/rust-phonebook'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] c60e28f527d031c0dea32e9e8b780550e19cdd3a [INFO] sha for GitHub repo mkpankov/rust-phonebook: c60e28f527d031c0dea32e9e8b780550e19cdd3a [INFO] validating manifest of mkpankov/rust-phonebook on toolchain 1.37.0 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.37.0" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of mkpankov/rust-phonebook on toolchain beta-2019-08-13 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-08-13" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing mkpankov/rust-phonebook [INFO] finished frobbing mkpankov/rust-phonebook [INFO] frobbed toml for mkpankov/rust-phonebook written to work/ex/beta-1.38-1/sources/1.37.0/gh/mkpankov/rust-phonebook/Cargo.toml [INFO] started frobbing mkpankov/rust-phonebook [INFO] finished frobbing mkpankov/rust-phonebook [INFO] frobbed toml for mkpankov/rust-phonebook written to work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/mkpankov/rust-phonebook/Cargo.toml [INFO] crate mkpankov/rust-phonebook already has a lockfile, it will not be regenerated [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.37.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] error: the lock file /mnt/big/crater/work/ex/beta-1.38-1/sources/1.37.0/gh/mkpankov/rust-phonebook/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] the lockfile is outdated, regenerating it [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.37.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] [stderr] Updating git repository `https://github.com/zonyitoo/rust-ini/` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-08-13" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] [stderr] Updating git repository `https://github.com/zonyitoo/rust-ini/` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.37.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-08-13" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] testing mkpankov/rust-phonebook against 1.37.0 for beta-1.38-1 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.38-1/worker-7/1.37.0:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.38-1/sources/1.37.0/gh/mkpankov/rust-phonebook:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+1.37.0" "build" "--frozen"` [INFO] [stdout] 43a10e5ee0b8807c1033d417cb2d1faee3f0b1aac86eaf0bada9b76c883dcf50 [INFO] running `"docker" "start" "-a" "43a10e5ee0b8807c1033d417cb2d1faee3f0b1aac86eaf0bada9b76c883dcf50"` [INFO] [stderr] Compiling byteorder v0.3.13 [INFO] [stderr] Compiling debug-builders v0.1.0 [INFO] [stderr] Compiling multimap v0.5.0 [INFO] [stderr] Compiling postgres v0.9.6 [INFO] [stderr] Compiling router v0.6.0 [INFO] [stderr] Compiling rust-ini v0.14.0 (https://github.com/zonyitoo/rust-ini/#477b32a3) [INFO] [stderr] Compiling rust-phonebook v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: the item `json` is imported redundantly [INFO] [stderr] --> src/handlers.rs:29:13 [INFO] [stderr] | [INFO] [stderr] 4 | use rustc_serialize::json; [INFO] [stderr] | --------------------- the item `json` is already imported here [INFO] [stderr] ... [INFO] [stderr] 29 | use rustc_serialize::json; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_imports)] on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around function argument [INFO] [stderr] --> src/handlers.rs:82:31 [INFO] [stderr] | [INFO] [stderr] 82 | Ok(Response::with((status::Created))) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_parens)] on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around function argument [INFO] [stderr] --> src/handlers.rs:110:31 [INFO] [stderr] | [INFO] [stderr] 110 | Ok(Response::with((status::NoContent))) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around function argument [INFO] [stderr] --> src/handlers.rs:132:27 [INFO] [stderr] | [INFO] [stderr] 132 | Ok(Response::with((status::NoContent))) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 3 parameters but 2 parameters were supplied [INFO] [stderr] --> src/main.rs:143:10 [INFO] [stderr] | [INFO] [stderr] 143 | [get, "/api/v1/records", handlers::get_records], [INFO] [stderr] | ^^^ expected 3 parameters [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 3 parameters but 2 parameters were supplied [INFO] [stderr] --> src/main.rs:144:10 [INFO] [stderr] | [INFO] [stderr] 144 | [get, "/api/v1/records/:id", handlers::get_record], [INFO] [stderr] | ^^^ expected 3 parameters [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 3 parameters but 2 parameters were supplied [INFO] [stderr] --> src/main.rs:145:10 [INFO] [stderr] | [INFO] [stderr] 145 | [post, "/api/v1/records", handlers::add_record], [INFO] [stderr] | ^^^^ expected 3 parameters [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 3 parameters but 2 parameters were supplied [INFO] [stderr] --> src/main.rs:146:10 [INFO] [stderr] | [INFO] [stderr] 146 | [put, "/api/v1/records/:id", handlers::update_record], [INFO] [stderr] | ^^^ expected 3 parameters [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 3 parameters but 2 parameters were supplied [INFO] [stderr] --> src/main.rs:147:10 [INFO] [stderr] | [INFO] [stderr] 147 | [delete, "/api/v1/records/:id", handlers::delete_record]); [INFO] [stderr] | ^^^^^^ expected 3 parameters [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'iron::Url::into_generic_url': use `into` from the `Into` trait instead [INFO] [stderr] --> src/handlers.rs:10:31 [INFO] [stderr] | [INFO] [stderr] 10 | let url = req.url.clone().into_generic_url(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(deprecated)] on by default [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/handlers.rs:12:12 [INFO] [stderr] | [INFO] [stderr] 12 | if let Some(mut qp) = url.query_pairs() { [INFO] [stderr] | ^^^^^^^^^^^^ ----------------- this match expression has type `iron::url::form_urlencoded::Parse<'_>` [INFO] [stderr] | | [INFO] [stderr] | expected struct `iron::url::form_urlencoded::Parse`, found enum `std::option::Option` [INFO] [stderr] | [INFO] [stderr] = note: expected type `iron::url::form_urlencoded::Parse<'_>` [INFO] [stderr] found type `std::option::Option<_>` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'iron::Url::into_generic_url': use `into` from the `Into` trait instead [INFO] [stderr] --> src/handlers.rs:46:31 [INFO] [stderr] | [INFO] [stderr] 46 | let url = req.url.clone().into_generic_url(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `unwrap` found for type `&str` in the current scope [INFO] [stderr] --> src/handlers.rs:47:27 [INFO] [stderr] | [INFO] [stderr] 47 | let path = url.path().unwrap(); [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'iron::Url::into_generic_url': use `into` from the `Into` trait instead [INFO] [stderr] --> src/handlers.rs:92:31 [INFO] [stderr] | [INFO] [stderr] 92 | let url = req.url.clone().into_generic_url(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `unwrap` found for type `&str` in the current scope [INFO] [stderr] --> src/handlers.rs:93:27 [INFO] [stderr] | [INFO] [stderr] 93 | let path = url.path().unwrap(); [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'iron::Url::into_generic_url': use `into` from the `Into` trait instead [INFO] [stderr] --> src/handlers.rs:121:31 [INFO] [stderr] | [INFO] [stderr] 121 | let url = req.url.clone().into_generic_url(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `unwrap` found for type `&str` in the current scope [INFO] [stderr] --> src/handlers.rs:122:27 [INFO] [stderr] | [INFO] [stderr] 122 | let path = url.path().unwrap(); [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 9 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0061, E0308, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0061`. [INFO] [stderr] error: Could not compile `rust-phonebook`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "43a10e5ee0b8807c1033d417cb2d1faee3f0b1aac86eaf0bada9b76c883dcf50"` [INFO] running `"docker" "rm" "-f" "43a10e5ee0b8807c1033d417cb2d1faee3f0b1aac86eaf0bada9b76c883dcf50"` [INFO] [stdout] 43a10e5ee0b8807c1033d417cb2d1faee3f0b1aac86eaf0bada9b76c883dcf50