[INFO] cloning repository https://github.com/mkpankov/rust-phonebook
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mkpankov/rust-phonebook" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmkpankov%2Frust-phonebook", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmkpankov%2Frust-phonebook'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] c60e28f527d031c0dea32e9e8b780550e19cdd3a
[INFO] testing mkpankov/rust-phonebook against 1.47.0 for beta-1.48-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmkpankov%2Frust-phonebook" "/workspace/builds/worker-9/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/mkpankov/rust-phonebook on toolchain 1.47.0
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.47.0" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/mkpankov/rust-phonebook
[INFO] finished tweaking git repo https://github.com/mkpankov/rust-phonebook
[INFO] tweaked toml for git repo https://github.com/mkpankov/rust-phonebook written to /workspace/builds/worker-9/source/Cargo.toml
[INFO] crate git repo https://github.com/mkpankov/rust-phonebook already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.47.0" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr] error: the lock file /workspace/builds/worker-9/source/Cargo.lock needs to be updated but --locked was passed to prevent this
[INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag.
[INFO] the lockfile is outdated, regenerating it
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.47.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }`
[INFO] [stderr]     Updating git repository `https://github.com/zonyitoo/rust-ini/`
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.47.0" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "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" "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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+1.47.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] ef6b5e9b690a205ce1ab237e37efb52fb2d35ab260be89ae69aa0685e599b9a5
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "ef6b5e9b690a205ce1ab237e37efb52fb2d35ab260be89ae69aa0685e599b9a5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "ef6b5e9b690a205ce1ab237e37efb52fb2d35ab260be89ae69aa0685e599b9a5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ef6b5e9b690a205ce1ab237e37efb52fb2d35ab260be89ae69aa0685e599b9a5", kill_on_drop: false }`
[INFO] [stdout] ef6b5e9b690a205ce1ab237e37efb52fb2d35ab260be89ae69aa0685e599b9a5
[INFO] running `Command { std: "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" "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" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+1.47.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] 9a05dc9a5df5ef1660517fd34fe9dcf4df4a390d436ddcaa46b36dc48c966cb9
[INFO] running `Command { std: "docker" "start" "-a" "9a05dc9a5df5ef1660517fd34fe9dcf4df4a390d436ddcaa46b36dc48c966cb9", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]    Compiling libc v0.2.79
[INFO] [stderr]    Compiling autocfg v0.1.7
[INFO] [stderr]    Compiling rand_core v0.4.2
[INFO] [stderr]    Compiling version_check v0.1.5
[INFO] [stderr]    Compiling cfg-if v0.1.10
[INFO] [stderr]    Compiling siphasher v0.2.3
[INFO] [stderr]    Compiling log v0.4.11
[INFO] [stderr]    Compiling tinyvec v0.3.4
[INFO] [stderr]    Compiling getrandom v0.1.15
[INFO] [stderr]    Compiling matches v0.1.8
[INFO] [stderr]    Compiling traitobject v0.1.0
[INFO] [stderr]    Compiling byteorder v1.3.4
[INFO] [stderr]    Compiling ppv-lite86 v0.2.9
[INFO] [stderr]    Compiling httparse v1.3.4
[INFO] [stderr]    Compiling safemem v0.3.3
[INFO] [stderr]    Compiling percent-encoding v1.0.1
[INFO] [stderr]    Compiling language-tags v0.2.2
[INFO] [stderr]    Compiling typeable v0.1.2
[INFO] [stderr]    Compiling ahash v0.4.6
[INFO] [stderr]    Compiling modifier v0.1.0
[INFO] [stderr]    Compiling percent-encoding v2.1.0
[INFO] [stderr]    Compiling rustc-serialize v0.3.24
[INFO] [stderr]    Compiling route-recognizer v0.1.13
[INFO] [stderr]    Compiling bufstream v0.1.4
[INFO] [stderr]    Compiling debug-builders v0.1.0
[INFO] [stderr]    Compiling byteorder v0.3.13
[INFO] [stderr]    Compiling unicode-bidi v0.3.4
[INFO] [stderr]    Compiling unsafe-any v0.4.2
[INFO] [stderr]    Compiling rand_core v0.3.1
[INFO] [stderr]    Compiling rand_jitter v0.1.4
[INFO] [stderr]    Compiling unicode-normalization v0.1.13
[INFO] [stderr]    Compiling hashbrown v0.9.1
[INFO] [stderr]    Compiling typemap v0.3.3
[INFO] [stderr]    Compiling rand_xorshift v0.1.1
[INFO] [stderr]    Compiling rand_isaac v0.1.1
[INFO] [stderr]    Compiling rand_hc v0.1.0
[INFO] [stderr]    Compiling unicase v1.4.2
[INFO] [stderr]    Compiling plugin v0.2.6
[INFO] [stderr]    Compiling rand_pcg v0.1.2
[INFO] [stderr]    Compiling rand_chacha v0.1.1
[INFO] [stderr]    Compiling rand v0.6.5
[INFO] [stderr]    Compiling log v0.3.9
[INFO] [stderr]    Compiling base64 v0.9.3
[INFO] [stderr]    Compiling mime v0.2.6
[INFO] [stderr]    Compiling phf_shared v0.7.24
[INFO] [stderr]    Compiling phf v0.7.24
[INFO] [stderr]    Compiling rand_os v0.1.3
[INFO] [stderr]    Compiling time v0.1.44
[INFO] [stderr]    Compiling num_cpus v1.13.0
[INFO] [stderr]    Compiling rand_core v0.5.1
[INFO] [stderr]    Compiling rand_chacha v0.2.2
[INFO] [stderr]    Compiling idna v0.1.5
[INFO] [stderr]    Compiling idna v0.2.0
[INFO] [stderr]    Compiling rand v0.7.3
[INFO] [stderr]    Compiling url v2.1.1
[INFO] [stderr]    Compiling url v1.7.2
[INFO] [stderr]    Compiling phf_generator v0.7.24
[INFO] [stderr]    Compiling phf_codegen v0.7.24
[INFO] [stderr]    Compiling mime_guess v1.8.8
[INFO] [stderr]    Compiling postgres v0.9.6
[INFO] [stderr]    Compiling dlv-list v0.2.2
[INFO] [stderr]    Compiling ordered-multimap v0.3.0
[INFO] [stderr]    Compiling hyper v0.10.16
[INFO] [stderr]    Compiling rust-ini v0.16.0 (https://github.com/zonyitoo/rust-ini/#4eebbad5)
[INFO] [stderr]    Compiling iron v0.6.1
[INFO] [stderr]    Compiling router v0.6.0
[INFO] [stderr]    Compiling rust-phonebook v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]   --> src/db.rs:13:9
[INFO] [stdout]    |
[INFO] [stdout] 13 |         try!(stmt.execute(&[id]));
[INFO] [stdout]    |         ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: the item `json` is imported redundantly
[INFO] [stdout]   --> src/handlers.rs:29:13
[INFO] [stdout]    |
[INFO] [stdout] 4  | use rustc_serialize::json;
[INFO] [stdout]    |     --------------------- the item `json` is already imported here
[INFO] [stdout] ...
[INFO] [stdout] 29 |         use rustc_serialize::json;
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]   --> src/handlers.rs:82:31
[INFO] [stdout]    |
[INFO] [stdout] 82 |             Ok(Response::with((status::Created)))
[INFO] [stdout]    |                               ^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]    --> src/handlers.rs:110:31
[INFO] [stdout]     |
[INFO] [stdout] 110 |             Ok(Response::with((status::NoContent)))
[INFO] [stdout]     |                               ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]    --> src/handlers.rs:132:27
[INFO] [stdout]     |
[INFO] [stdout] 132 |         Ok(Response::with((status::NoContent)))
[INFO] [stdout]     |                           ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary trailing semicolon
[INFO] [stdout]    --> src/main.rs:113:18
[INFO] [stdout]     |
[INFO] [stdout] 113 |               $stmt;
[INFO] [stdout]     |                    ^ help: remove this semicolon
[INFO] [stdout] ...
[INFO] [stdout] 141 | /     define_handlers_family!(
[INFO] [stdout] 142 | |         sdb, router,
[INFO] [stdout] 143 | |         [get, "/api/v1/records", handlers::get_records],
[INFO] [stdout] 144 | |         [get, "/api/v1/records/:id", handlers::get_record],
[INFO] [stdout] 145 | |         [post, "/api/v1/records", handlers::add_record],
[INFO] [stdout] 146 | |         [put, "/api/v1/records/:id", handlers::update_record],
[INFO] [stdout] 147 | |         [delete, "/api/v1/records/:id", handlers::delete_record]);
[INFO] [stdout]     | |__________________________________________________________________- in this macro invocation
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(redundant_semicolons)]` on by default
[INFO] [stdout]     = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary trailing semicolon
[INFO] [stdout]    --> src/main.rs:113:18
[INFO] [stdout]     |
[INFO] [stdout] 113 |               $stmt;
[INFO] [stdout]     |                    ^ help: remove this semicolon
[INFO] [stdout] ...
[INFO] [stdout] 141 | /     define_handlers_family!(
[INFO] [stdout] 142 | |         sdb, router,
[INFO] [stdout] 143 | |         [get, "/api/v1/records", handlers::get_records],
[INFO] [stdout] 144 | |         [get, "/api/v1/records/:id", handlers::get_record],
[INFO] [stdout] 145 | |         [post, "/api/v1/records", handlers::add_record],
[INFO] [stdout] 146 | |         [put, "/api/v1/records/:id", handlers::update_record],
[INFO] [stdout] 147 | |         [delete, "/api/v1/records/:id", handlers::delete_record]);
[INFO] [stdout]     | |__________________________________________________________________- in this macro invocation
[INFO] [stdout]     |
[INFO] [stdout]     = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary trailing semicolon
[INFO] [stdout]    --> src/main.rs:113:18
[INFO] [stdout]     |
[INFO] [stdout] 113 |               $stmt;
[INFO] [stdout]     |                    ^ help: remove this semicolon
[INFO] [stdout] ...
[INFO] [stdout] 141 | /     define_handlers_family!(
[INFO] [stdout] 142 | |         sdb, router,
[INFO] [stdout] 143 | |         [get, "/api/v1/records", handlers::get_records],
[INFO] [stdout] 144 | |         [get, "/api/v1/records/:id", handlers::get_record],
[INFO] [stdout] 145 | |         [post, "/api/v1/records", handlers::add_record],
[INFO] [stdout] 146 | |         [put, "/api/v1/records/:id", handlers::update_record],
[INFO] [stdout] 147 | |         [delete, "/api/v1/records/:id", handlers::delete_record]);
[INFO] [stdout]     | |__________________________________________________________________- in this macro invocation
[INFO] [stdout]     |
[INFO] [stdout]     = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary trailing semicolon
[INFO] [stdout]    --> src/main.rs:113:18
[INFO] [stdout]     |
[INFO] [stdout] 113 |               $stmt;
[INFO] [stdout]     |                    ^ help: remove this semicolon
[INFO] [stdout] ...
[INFO] [stdout] 141 | /     define_handlers_family!(
[INFO] [stdout] 142 | |         sdb, router,
[INFO] [stdout] 143 | |         [get, "/api/v1/records", handlers::get_records],
[INFO] [stdout] 144 | |         [get, "/api/v1/records/:id", handlers::get_record],
[INFO] [stdout] 145 | |         [post, "/api/v1/records", handlers::add_record],
[INFO] [stdout] 146 | |         [put, "/api/v1/records/:id", handlers::update_record],
[INFO] [stdout] 147 | |         [delete, "/api/v1/records/:id", handlers::delete_record]);
[INFO] [stdout]     | |__________________________________________________________________- in this macro invocation
[INFO] [stdout]     |
[INFO] [stdout]     = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary trailing semicolon
[INFO] [stdout]    --> src/main.rs:113:18
[INFO] [stdout]     |
[INFO] [stdout] 113 |               $stmt;
[INFO] [stdout]     |                    ^ help: remove this semicolon
[INFO] [stdout] ...
[INFO] [stdout] 141 | /     define_handlers_family!(
[INFO] [stdout] 142 | |         sdb, router,
[INFO] [stdout] 143 | |         [get, "/api/v1/records", handlers::get_records],
[INFO] [stdout] 144 | |         [get, "/api/v1/records/:id", handlers::get_record],
[INFO] [stdout] 145 | |         [post, "/api/v1/records", handlers::add_record],
[INFO] [stdout] 146 | |         [put, "/api/v1/records/:id", handlers::update_record],
[INFO] [stdout] 147 | |         [delete, "/api/v1/records/:id", handlers::delete_record]);
[INFO] [stdout]     | |__________________________________________________________________- in this macro invocation
[INFO] [stdout]     |
[INFO] [stdout]     = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/main.rs:45:36
[INFO] [stdout]    |
[INFO] [stdout] 45 |         target: ConnectTarget::Tcp(host.clone()),
[INFO] [stdout]    |                                    ^^^^^^^^^^^^
[INFO] [stdout]    |                                    |
[INFO] [stdout]    |                                    expected struct `std::string::String`, found `&str`
[INFO] [stdout]    |                                    help: try using a conversion method: `host.to_string()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/main.rs:48:19
[INFO] [stdout]    |
[INFO] [stdout] 48 |             user: user.clone(),
[INFO] [stdout]    |                   ^^^^^^^^^^^^
[INFO] [stdout]    |                   |
[INFO] [stdout]    |                   expected struct `std::string::String`, found `&str`
[INFO] [stdout]    |                   help: try using a conversion method: `user.to_string()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/main.rs:49:28
[INFO] [stdout]    |
[INFO] [stdout] 49 |             password: Some(pass.clone()),
[INFO] [stdout]    |                            ^^^^^^^^^^^^
[INFO] [stdout]    |                            |
[INFO] [stdout]    |                            expected struct `std::string::String`, found `&str`
[INFO] [stdout]    |                            help: try using a conversion method: `pass.to_string()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/main.rs:51:24
[INFO] [stdout]    |
[INFO] [stdout] 51 |         database: Some(dbname.clone()),
[INFO] [stdout]    |                        ^^^^^^^^^^^^^^
[INFO] [stdout]    |                        |
[INFO] [stdout]    |                        expected struct `std::string::String`, found `&str`
[INFO] [stdout]    |                        help: try using a conversion method: `dbname.to_string()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied
[INFO] [stdout]    --> src/main.rs:143:10
[INFO] [stdout]     |
[INFO] [stdout] 125 | /                 move |req: &mut Request|
[INFO] [stdout] 126 | |                 $handler(&*$connection, req)));
[INFO] [stdout]     | |____________________________________________- supplied 2 arguments
[INFO] [stdout] ...
[INFO] [stdout] 143 |           [get, "/api/v1/records", handlers::get_records],
[INFO] [stdout]     |            ^^^  -----------------
[INFO] [stdout]     |            |
[INFO] [stdout]     |            expected 3 arguments
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/main.rs:123:13
[INFO] [stdout]     |
[INFO] [stdout] 123 | /             $router.$method(
[INFO] [stdout] 124 | |                 $route,
[INFO] [stdout] 125 | |                 move |req: &mut Request|
[INFO] [stdout] 126 | |                 $handler(&*$connection, req)));
[INFO] [stdout]     | |                                             ^- help: consider using a semicolon here
[INFO] [stdout]     | |_____________________________________________|
[INFO] [stdout]     |                                               expected `()`, found `&mut router::Router`
[INFO] [stdout] ...
[INFO] [stdout] 141 | /     define_handlers_family!(
[INFO] [stdout] 142 | |         sdb, router,
[INFO] [stdout] 143 | |         [get, "/api/v1/records", handlers::get_records],
[INFO] [stdout] 144 | |         [get, "/api/v1/records/:id", handlers::get_record],
[INFO] [stdout] 145 | |         [post, "/api/v1/records", handlers::add_record],
[INFO] [stdout] 146 | |         [put, "/api/v1/records/:id", handlers::update_record],
[INFO] [stdout] 147 | |         [delete, "/api/v1/records/:id", handlers::delete_record]);
[INFO] [stdout]     | |__________________________________________________________________- in this macro invocation
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied
[INFO] [stdout]    --> src/main.rs:144:10
[INFO] [stdout]     |
[INFO] [stdout] 125 | /                 move |req: &mut Request|
[INFO] [stdout] 126 | |                 $handler(&*$connection, req)));
[INFO] [stdout]     | |____________________________________________- supplied 2 arguments
[INFO] [stdout] ...
[INFO] [stdout] 144 |           [get, "/api/v1/records/:id", handlers::get_record],
[INFO] [stdout]     |            ^^^  ---------------------
[INFO] [stdout]     |            |
[INFO] [stdout]     |            expected 3 arguments
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/main.rs:123:13
[INFO] [stdout]     |
[INFO] [stdout] 123 | /             $router.$method(
[INFO] [stdout] 124 | |                 $route,
[INFO] [stdout] 125 | |                 move |req: &mut Request|
[INFO] [stdout] 126 | |                 $handler(&*$connection, req)));
[INFO] [stdout]     | |                                             ^- help: consider using a semicolon here
[INFO] [stdout]     | |_____________________________________________|
[INFO] [stdout]     |                                               expected `()`, found `&mut router::Router`
[INFO] [stdout] ...
[INFO] [stdout] 141 | /     define_handlers_family!(
[INFO] [stdout] 142 | |         sdb, router,
[INFO] [stdout] 143 | |         [get, "/api/v1/records", handlers::get_records],
[INFO] [stdout] 144 | |         [get, "/api/v1/records/:id", handlers::get_record],
[INFO] [stdout] 145 | |         [post, "/api/v1/records", handlers::add_record],
[INFO] [stdout] 146 | |         [put, "/api/v1/records/:id", handlers::update_record],
[INFO] [stdout] 147 | |         [delete, "/api/v1/records/:id", handlers::delete_record]);
[INFO] [stdout]     | |__________________________________________________________________- in this macro invocation
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied
[INFO] [stdout]    --> src/main.rs:145:10
[INFO] [stdout]     |
[INFO] [stdout] 125 | /                 move |req: &mut Request|
[INFO] [stdout] 126 | |                 $handler(&*$connection, req)));
[INFO] [stdout]     | |____________________________________________- supplied 2 arguments
[INFO] [stdout] ...
[INFO] [stdout] 145 |           [post, "/api/v1/records", handlers::add_record],
[INFO] [stdout]     |            ^^^^  -----------------
[INFO] [stdout]     |            |
[INFO] [stdout]     |            expected 3 arguments
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/main.rs:123:13
[INFO] [stdout]     |
[INFO] [stdout] 123 | /             $router.$method(
[INFO] [stdout] 124 | |                 $route,
[INFO] [stdout] 125 | |                 move |req: &mut Request|
[INFO] [stdout] 126 | |                 $handler(&*$connection, req)));
[INFO] [stdout]     | |                                             ^- help: consider using a semicolon here
[INFO] [stdout]     | |_____________________________________________|
[INFO] [stdout]     |                                               expected `()`, found `&mut router::Router`
[INFO] [stdout] ...
[INFO] [stdout] 141 | /     define_handlers_family!(
[INFO] [stdout] 142 | |         sdb, router,
[INFO] [stdout] 143 | |         [get, "/api/v1/records", handlers::get_records],
[INFO] [stdout] 144 | |         [get, "/api/v1/records/:id", handlers::get_record],
[INFO] [stdout] 145 | |         [post, "/api/v1/records", handlers::add_record],
[INFO] [stdout] 146 | |         [put, "/api/v1/records/:id", handlers::update_record],
[INFO] [stdout] 147 | |         [delete, "/api/v1/records/:id", handlers::delete_record]);
[INFO] [stdout]     | |__________________________________________________________________- in this macro invocation
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied
[INFO] [stdout]    --> src/main.rs:146:10
[INFO] [stdout]     |
[INFO] [stdout] 125 | /                 move |req: &mut Request|
[INFO] [stdout] 126 | |                 $handler(&*$connection, req)));
[INFO] [stdout]     | |____________________________________________- supplied 2 arguments
[INFO] [stdout] ...
[INFO] [stdout] 146 |           [put, "/api/v1/records/:id", handlers::update_record],
[INFO] [stdout]     |            ^^^  ---------------------
[INFO] [stdout]     |            |
[INFO] [stdout]     |            expected 3 arguments
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/main.rs:123:13
[INFO] [stdout]     |
[INFO] [stdout] 123 | /             $router.$method(
[INFO] [stdout] 124 | |                 $route,
[INFO] [stdout] 125 | |                 move |req: &mut Request|
[INFO] [stdout] 126 | |                 $handler(&*$connection, req)));
[INFO] [stdout]     | |                                             ^- help: consider using a semicolon here
[INFO] [stdout]     | |_____________________________________________|
[INFO] [stdout]     |                                               expected `()`, found `&mut router::Router`
[INFO] [stdout] ...
[INFO] [stdout] 141 | /     define_handlers_family!(
[INFO] [stdout] 142 | |         sdb, router,
[INFO] [stdout] 143 | |         [get, "/api/v1/records", handlers::get_records],
[INFO] [stdout] 144 | |         [get, "/api/v1/records/:id", handlers::get_record],
[INFO] [stdout] 145 | |         [post, "/api/v1/records", handlers::add_record],
[INFO] [stdout] 146 | |         [put, "/api/v1/records/:id", handlers::update_record],
[INFO] [stdout] 147 | |         [delete, "/api/v1/records/:id", handlers::delete_record]);
[INFO] [stdout]     | |__________________________________________________________________- in this macro invocation
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied
[INFO] [stdout]    --> src/main.rs:147:10
[INFO] [stdout]     |
[INFO] [stdout] 125 | /                 move |req: &mut Request|
[INFO] [stdout] 126 | |                 $handler(&*$connection, req)));
[INFO] [stdout]     | |____________________________________________- supplied 2 arguments
[INFO] [stdout] ...
[INFO] [stdout] 147 |           [delete, "/api/v1/records/:id", handlers::delete_record]);
[INFO] [stdout]     |            ^^^^^^  ---------------------
[INFO] [stdout]     |            |
[INFO] [stdout]     |            expected 3 arguments
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/main.rs:123:13
[INFO] [stdout]     |
[INFO] [stdout] 123 | /             $router.$method(
[INFO] [stdout] 124 | |                 $route,
[INFO] [stdout] 125 | |                 move |req: &mut Request|
[INFO] [stdout] 126 | |                 $handler(&*$connection, req)));
[INFO] [stdout]     | |                                             ^- help: consider using a semicolon here
[INFO] [stdout]     | |_____________________________________________|
[INFO] [stdout]     |                                               expected `()`, found `&mut router::Router`
[INFO] [stdout] ...
[INFO] [stdout] 141 | /     define_handlers_family!(
[INFO] [stdout] 142 | |         sdb, router,
[INFO] [stdout] 143 | |         [get, "/api/v1/records", handlers::get_records],
[INFO] [stdout] 144 | |         [get, "/api/v1/records/:id", handlers::get_record],
[INFO] [stdout] 145 | |         [post, "/api/v1/records", handlers::add_record],
[INFO] [stdout] 146 | |         [put, "/api/v1/records/:id", handlers::update_record],
[INFO] [stdout] 147 | |         [delete, "/api/v1/records/:id", handlers::delete_record]);
[INFO] [stdout]     | |__________________________________________________________________- in this macro invocation
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `iron::Url::into_generic_url`: use `into` from the `Into` trait instead
[INFO] [stdout]   --> src/handlers.rs:10:31
[INFO] [stdout]    |
[INFO] [stdout] 10 |     let url = req.url.clone().into_generic_url();
[INFO] [stdout]    |                               ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/handlers.rs:12:12
[INFO] [stdout]    |
[INFO] [stdout] 12 |     if let Some(mut qp) = url.query_pairs() {
[INFO] [stdout]    |            ^^^^^^^^^^^^   ----------------- this expression has type `iron::url::form_urlencoded::Parse<'_>`
[INFO] [stdout]    |            |
[INFO] [stdout]    |            expected struct `iron::url::form_urlencoded::Parse`, found enum `std::option::Option`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `iron::url::form_urlencoded::Parse<'_>`
[INFO] [stdout]                 found enum `std::option::Option<_>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `iron::Url::into_generic_url`: use `into` from the `Into` trait instead
[INFO] [stdout]   --> src/handlers.rs:46:31
[INFO] [stdout]    |
[INFO] [stdout] 46 |     let url = req.url.clone().into_generic_url();
[INFO] [stdout]    |                               ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `unwrap` found for reference `&str` in the current scope
[INFO] [stdout]   --> src/handlers.rs:47:27
[INFO] [stdout]    |
[INFO] [stdout] 47 |     let path = url.path().unwrap();
[INFO] [stdout]    |                           ^^^^^^ method not found in `&str`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `iron::Url::into_generic_url`: use `into` from the `Into` trait instead
[INFO] [stdout]   --> src/handlers.rs:92:31
[INFO] [stdout]    |
[INFO] [stdout] 92 |     let url = req.url.clone().into_generic_url();
[INFO] [stdout]    |                               ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `unwrap` found for reference `&str` in the current scope
[INFO] [stdout]   --> src/handlers.rs:93:27
[INFO] [stdout]    |
[INFO] [stdout] 93 |     let path = url.path().unwrap();
[INFO] [stdout]    |                           ^^^^^^ method not found in `&str`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `iron::Url::into_generic_url`: use `into` from the `Into` trait instead
[INFO] [stdout]    --> src/handlers.rs:121:31
[INFO] [stdout]     |
[INFO] [stdout] 121 |     let url = req.url.clone().into_generic_url();
[INFO] [stdout]     |                               ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `unwrap` found for reference `&str` in the current scope
[INFO] [stdout]    --> src/handlers.rs:122:27
[INFO] [stdout]     |
[INFO] [stdout] 122 |     let path = url.path().unwrap();
[INFO] [stdout]     |                           ^^^^^^ method not found in `&str`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 18 previous errors; 14 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0061, E0308, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0061`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust-phonebook`.
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] running `Command { std: "docker" "inspect" "9a05dc9a5df5ef1660517fd34fe9dcf4df4a390d436ddcaa46b36dc48c966cb9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "9a05dc9a5df5ef1660517fd34fe9dcf4df4a390d436ddcaa46b36dc48c966cb9", kill_on_drop: false }`
[INFO] [stdout] 9a05dc9a5df5ef1660517fd34fe9dcf4df4a390d436ddcaa46b36dc48c966cb9
