[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] checking mkpankov/rust-phonebook against try#f47dd4da3ae8c32c9e65d307bfe640b143e674df for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmkpankov%2Frust-phonebook" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mkpankov/rust-phonebook on toolchain f47dd4da3ae8c32c9e65d307bfe640b143e674df [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "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-8/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" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/zonyitoo/rust-ini/` [INFO] [stderr] error: the lock file /workspace/builds/worker-8/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" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating git repository `https://github.com/zonyitoo/rust-ini/` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ordered-multimap v0.3.0 [INFO] [stderr] Downloaded postgres v0.9.6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "metadata" "--no-deps" "--format-version=1", 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] cd8a13a593f36a05af2a4da22cf5491e4b0e1106dd7c909ad1317daf5e2237ef [INFO] running `Command { std: "docker" "start" "-a" "cd8a13a593f36a05af2a4da22cf5491e4b0e1106dd7c909ad1317daf5e2237ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cd8a13a593f36a05af2a4da22cf5491e4b0e1106dd7c909ad1317daf5e2237ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cd8a13a593f36a05af2a4da22cf5491e4b0e1106dd7c909ad1317daf5e2237ef", kill_on_drop: false }` [INFO] [stdout] cd8a13a593f36a05af2a4da22cf5491e4b0e1106dd7c909ad1317daf5e2237ef [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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=forbid" "-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" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 772d2d7b71966901a7451a5a995c7ee8dcf83e05cce35d835c5e7dec9e767643 [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" "772d2d7b71966901a7451a5a995c7ee8dcf83e05cce35d835c5e7dec9e767643", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.79 [INFO] [stderr] Compiling rand_core v0.4.2 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling siphasher v0.2.3 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Checking tinyvec v0.3.4 [INFO] [stderr] Checking traitobject v0.1.0 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Checking safemem v0.3.3 [INFO] [stderr] Checking ahash v0.4.5 [INFO] [stderr] Checking typeable v0.1.2 [INFO] [stderr] Checking modifier v0.1.0 [INFO] [stderr] Checking byteorder v0.3.13 [INFO] [stderr] Checking bufstream v0.1.4 [INFO] [stderr] Checking debug-builders v0.1.0 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Compiling unicase v1.4.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Checking unicode-bidi v0.3.4 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Checking plugin v0.2.6 [INFO] [stderr] Checking hashbrown v0.9.1 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Checking unicode-normalization v0.1.13 [INFO] [stderr] Compiling phf_shared v0.7.24 [INFO] [stderr] Checking log v0.3.9 [INFO] [stderr] Compiling phf v0.7.24 [INFO] [stderr] Checking mime v0.2.6 [INFO] [stderr] Checking base64 v0.9.3 [INFO] [stderr] Checking getrandom v0.1.15 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking idna v0.1.5 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking url v2.1.1 [INFO] [stderr] Checking 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] Checking hyper v0.10.16 [INFO] [stderr] Checking dlv-list v0.2.2 [INFO] [stderr] Checking ordered-multimap v0.3.0 [INFO] [stderr] Checking rust-ini v0.16.0 (https://github.com/zonyitoo/rust-ini/#4eebbad5) [INFO] [stderr] Checking iron v0.6.1 [INFO] [stderr] Checking router v0.6.0 [INFO] [stderr] Checking 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] 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: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: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: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: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: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[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` [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[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` [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` [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` [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` [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[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` [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[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` [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` [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 `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `iron::url::form_urlencoded::Parse<'_>` [INFO] [stdout] found enum `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] [stderr] warning: build failed, waiting for other jobs to finish... [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` [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` [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 `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `iron::url::form_urlencoded::Parse<'_>` [INFO] [stdout] found enum `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: build failed [INFO] running `Command { std: "docker" "inspect" "772d2d7b71966901a7451a5a995c7ee8dcf83e05cce35d835c5e7dec9e767643", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "772d2d7b71966901a7451a5a995c7ee8dcf83e05cce35d835c5e7dec9e767643", kill_on_drop: false }` [INFO] [stdout] 772d2d7b71966901a7451a5a995c7ee8dcf83e05cce35d835c5e7dec9e767643