[INFO] updating cached 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" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c60e28f527d031c0dea32e9e8b780550e19cdd3a [INFO] testing mkpankov/rust-phonebook against 1.45.2 for beta-1.46-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmkpankov%2Frust-phonebook" "/workspace/builds/worker-10/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-10/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mkpankov/rust-phonebook on toolchain 1.45.2 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.45.2" "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-10/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.45.2" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] error: the lock file /workspace/builds/worker-10/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.45.2" "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.45.2" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+1.45.2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 62257320dc392de9bd9856fc896927c7cf0cef5ef414e25135b8291aa31ab4f6 [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" "62257320dc392de9bd9856fc896927c7cf0cef5ef414e25135b8291aa31ab4f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "62257320dc392de9bd9856fc896927c7cf0cef5ef414e25135b8291aa31ab4f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "62257320dc392de9bd9856fc896927c7cf0cef5ef414e25135b8291aa31ab4f6", kill_on_drop: false }` [INFO] [stdout] 62257320dc392de9bd9856fc896927c7cf0cef5ef414e25135b8291aa31ab4f6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+1.45.2" "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] 5d5f349cc535f324e8023fdbad91b9c74d37fec0cc256df53cdd2226ea65fa0a [INFO] running `Command { std: "docker" "start" "-a" "5d5f349cc535f324e8023fdbad91b9c74d37fec0cc256df53cdd2226ea65fa0a", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling rand_core v0.4.2 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling tinyvec v0.3.3 [INFO] [stderr] Compiling safemem v0.3.3 [INFO] [stderr] Compiling ahash v0.3.8 [INFO] [stderr] Compiling modifier v0.1.0 [INFO] [stderr] Compiling byteorder v0.3.13 [INFO] [stderr] Compiling debug-builders v0.1.0 [INFO] [stderr] Compiling route-recognizer v0.1.13 [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] Compiling hashbrown v0.7.2 [INFO] [stderr] Compiling unsafe-any v0.4.2 [INFO] [stderr] Compiling time v0.1.43 [INFO] [stderr] Compiling dlv-list v0.2.2 [INFO] [stderr] Compiling base64 v0.9.3 [INFO] [stderr] Compiling typemap v0.3.3 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Compiling plugin v0.2.6 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling unicode-normalization v0.1.13 [INFO] [stderr] Compiling log v0.3.9 [INFO] [stderr] Compiling ordered-multimap v0.2.4 [INFO] [stderr] Compiling mime v0.2.6 [INFO] [stderr] Compiling rust-ini v0.15.3 (https://github.com/zonyitoo/rust-ini/#6d20b765) [INFO] [stderr] Compiling idna v0.1.5 [INFO] [stderr] Compiling idna v0.2.0 [INFO] [stderr] Compiling phf_generator v0.7.24 [INFO] [stderr] Compiling url v1.7.2 [INFO] [stderr] Compiling phf_codegen v0.7.24 [INFO] [stderr] Compiling url v2.1.1 [INFO] [stderr] Compiling mime_guess v1.8.8 [INFO] [stderr] Compiling postgres v0.9.6 [INFO] [stderr] Compiling hyper v0.10.16 [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 item '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 item '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 item '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 item '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 item '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" "5d5f349cc535f324e8023fdbad91b9c74d37fec0cc256df53cdd2226ea65fa0a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d5f349cc535f324e8023fdbad91b9c74d37fec0cc256df53cdd2226ea65fa0a", kill_on_drop: false }` [INFO] [stdout] 5d5f349cc535f324e8023fdbad91b9c74d37fec0cc256df53cdd2226ea65fa0a