[INFO] fetching crate townhopper 0.1.1... [INFO] building townhopper-0.1.1 against try#d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 for pr-146237-1 [INFO] extracting crate townhopper 0.1.1 into /workspace/builds/worker-2-tc2/source [INFO] started tweaking crates.io crate townhopper 0.1.1 [INFO] finished tweaking crates.io crate townhopper 0.1.1 [INFO] tweaked toml for crates.io crate townhopper 0.1.1 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate townhopper 0.1.1 on toolchain d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 61 packages to latest compatible versions [INFO] [stderr] Adding chrono-tz v0.5.3 (available: v0.10.4) [INFO] [stderr] Adding rusqlite v0.19.0 (available: v0.37.0) [INFO] [stderr] Adding wasi v0.10.0+wasi-snapshot-preview1 (available: v0.10.2+wasi-snapshot-preview1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 21848db501a93e0542e9d71bf2c4c5c17f915799c422fafac92aea90c9b3fc73 [INFO] running `Command { std: "docker" "start" "-a" "21848db501a93e0542e9d71bf2c4c5c17f915799c422fafac92aea90c9b3fc73", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "21848db501a93e0542e9d71bf2c4c5c17f915799c422fafac92aea90c9b3fc73", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "21848db501a93e0542e9d71bf2c4c5c17f915799c422fafac92aea90c9b3fc73", kill_on_drop: false }` [INFO] [stdout] 21848db501a93e0542e9d71bf2c4c5c17f915799c422fafac92aea90c9b3fc73 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0adefba1353b2e42d661c31ac38baf7019402ef660a75bdaa2d190cbdb167a7a [INFO] running `Command { std: "docker" "start" "-a" "0adefba1353b2e42d661c31ac38baf7019402ef660a75bdaa2d190cbdb167a7a", kill_on_drop: false }` [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling libsqlite3-sys v0.15.0 [INFO] [stderr] Compiling parse-zoneinfo v0.3.1 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling iana-time-zone v0.1.64 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling csv-core v0.1.12 [INFO] [stderr] Compiling fallible-streaming-iterator v0.1.9 [INFO] [stderr] Compiling fallible-iterator v0.2.0 [INFO] [stderr] Compiling unidecode v0.3.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling time v0.1.45 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling rusqlite v0.19.0 [INFO] [stderr] Compiling chrono-tz v0.5.3 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling csv v1.3.1 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling townhopper v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/db/mod.rs:41:54 [INFO] [stdout] | [INFO] [stdout] 41 | c.execute("PRAGMA foreign_keys = ON;", &[] as &[&ToSql]).map(|_| ()).map_err(|e| e.into()) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 41 | c.execute("PRAGMA foreign_keys = ON;", &[] as &[&dyn ToSql]).map(|_| ()).map_err(|e| e.into()) [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/db/mod.rs:45:55 [INFO] [stdout] | [INFO] [stdout] 45 | c.execute("PRAGMA foreign_keys = OFF;", &[] as &[&ToSql]).map(|_| ()).map_err(|e| e.into()) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 45 | c.execute("PRAGMA foreign_keys = OFF;", &[] as &[&dyn ToSql]).map(|_| ()).map_err(|e| e.into()) [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/db/mod.rs:49:35 [INFO] [stdout] | [INFO] [stdout] 49 | c.execute("BEGIN;", &[] as &[&ToSql]).map(|_| ()).map_err(|e| e.into()) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 49 | c.execute("BEGIN;", &[] as &[&dyn ToSql]).map(|_| ()).map_err(|e| e.into()) [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/db/import.rs:90:39 [INFO] [stdout] | [INFO] [stdout] 90 | stmt.execute(&[&s.stop_id as &ToSql, &s.stop_name, &slug(&s.stop_name), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 90 | stmt.execute(&[&s.stop_id as &dyn ToSql, &s.stop_name, &slug(&s.stop_name), [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/db/import.rs:25:41 [INFO] [stdout] | [INFO] [stdout] 25 | let mut rows = stmt.query(&[] as &[&ToSql])?; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 25 | let mut rows = stmt.query(&[] as &[&dyn ToSql])?; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/db/mod.rs:53:33 [INFO] [stdout] | [INFO] [stdout] 53 | c.execute("END;", &[] as &[&ToSql]).map(|_| ()).map_err(|e| e.into()) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 53 | c.execute("END;", &[] as &[&dyn ToSql]).map(|_| ()).map_err(|e| e.into()) [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/db/import.rs:101:39 [INFO] [stdout] | [INFO] [stdout] 101 | stmt.execute(&[&t.trip_id as &ToSql, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 101 | stmt.execute(&[&t.trip_id as &dyn ToSql, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/db/import.rs:113:40 [INFO] [stdout] | [INFO] [stdout] 113 | stmt.execute(&[&t.route_id as &ToSql, &t.service_id, &t.trip_id, &t.direction_id, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 113 | stmt.execute(&[&t.route_id as &dyn ToSql, &t.service_id, &t.trip_id, &t.direction_id, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveTime::from_hms`: use `from_hms_opt()` instead [INFO] [stdout] --> src/db/conv.rs:19:31 [INFO] [stdout] | [INFO] [stdout] 19 | (*local_time - NaiveTime::from_hms(0, 0, 0)).num_seconds() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/db/import.rs:46:41 [INFO] [stdout] | [INFO] [stdout] 46 | stmt.execute(&[&a.agency_id as &ToSql, &a.agency_name, &a.agency_timezone.name()])?; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 46 | stmt.execute(&[&a.agency_id as &dyn ToSql, &a.agency_name, &a.agency_timezone.name()])?; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/db/import.rs:57:42 [INFO] [stdout] | [INFO] [stdout] 57 | stmt.execute(&[&c.service_id as &ToSql, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 57 | stmt.execute(&[&c.service_id as &dyn ToSql, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/db/import.rs:69:42 [INFO] [stdout] | [INFO] [stdout] 69 | stmt.execute(&[&d.service_id as &ToSql, &conv::to_db_date(&d.date), &d.exception_type])?; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 69 | stmt.execute(&[&d.service_id as &dyn ToSql, &conv::to_db_date(&d.date), &d.exception_type])?; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/db/import.rs:79:40 [INFO] [stdout] | [INFO] [stdout] 79 | stmt.execute(&[&r.route_id as &ToSql, &r.agency_id, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 79 | stmt.execute(&[&r.route_id as &dyn ToSql, &r.agency_id, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead [INFO] [stdout] --> src/query/itinerary.rs:147:39 [INFO] [stdout] | [INFO] [stdout] 147 | departure_time: dt.date().and_hms(0, 0, 0) + Duration::seconds(departure_time), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead [INFO] [stdout] --> src/query/itinerary.rs:149:37 [INFO] [stdout] | [INFO] [stdout] 149 | arrival_time: dt.date().and_hms(0, 0, 0) + Duration::seconds(arrival_time), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.71s [INFO] running `Command { std: "docker" "inspect" "0adefba1353b2e42d661c31ac38baf7019402ef660a75bdaa2d190cbdb167a7a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0adefba1353b2e42d661c31ac38baf7019402ef660a75bdaa2d190cbdb167a7a", kill_on_drop: false }` [INFO] [stdout] 0adefba1353b2e42d661c31ac38baf7019402ef660a75bdaa2d190cbdb167a7a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 91145dd4af76a047f39ccf5d63767ffb6e868e00be5e76dd7a4fffbb64fa74ca [INFO] running `Command { std: "docker" "start" "-a" "91145dd4af76a047f39ccf5d63767ffb6e868e00be5e76dd7a4fffbb64fa74ca", kill_on_drop: false }` [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/db/mod.rs:41:54 [INFO] [stdout] | [INFO] [stdout] 41 | c.execute("PRAGMA foreign_keys = ON;", &[] as &[&ToSql]).map(|_| ()).map_err(|e| e.into()) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 41 | c.execute("PRAGMA foreign_keys = ON;", &[] as &[&dyn ToSql]).map(|_| ()).map_err(|e| e.into()) [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/db/mod.rs:45:55 [INFO] [stdout] | [INFO] [stdout] 45 | c.execute("PRAGMA foreign_keys = OFF;", &[] as &[&ToSql]).map(|_| ()).map_err(|e| e.into()) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 45 | c.execute("PRAGMA foreign_keys = OFF;", &[] as &[&dyn ToSql]).map(|_| ()).map_err(|e| e.into()) [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/db/mod.rs:49:35 [INFO] [stdout] | [INFO] [stdout] 49 | c.execute("BEGIN;", &[] as &[&ToSql]).map(|_| ()).map_err(|e| e.into()) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 49 | c.execute("BEGIN;", &[] as &[&dyn ToSql]).map(|_| ()).map_err(|e| e.into()) [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/db/import.rs:90:39 [INFO] [stdout] | [INFO] [stdout] 90 | stmt.execute(&[&s.stop_id as &ToSql, &s.stop_name, &slug(&s.stop_name), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 90 | stmt.execute(&[&s.stop_id as &dyn ToSql, &s.stop_name, &slug(&s.stop_name), [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/db/import.rs:25:41 [INFO] [stdout] | [INFO] [stdout] 25 | let mut rows = stmt.query(&[] as &[&ToSql])?; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 25 | let mut rows = stmt.query(&[] as &[&dyn ToSql])?; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling townhopper v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/db/mod.rs:53:33 [INFO] [stdout] | [INFO] [stdout] 53 | c.execute("END;", &[] as &[&ToSql]).map(|_| ()).map_err(|e| e.into()) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 53 | c.execute("END;", &[] as &[&dyn ToSql]).map(|_| ()).map_err(|e| e.into()) [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/db/import.rs:101:39 [INFO] [stdout] | [INFO] [stdout] 101 | stmt.execute(&[&t.trip_id as &ToSql, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 101 | stmt.execute(&[&t.trip_id as &dyn ToSql, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/db/import.rs:113:40 [INFO] [stdout] | [INFO] [stdout] 113 | stmt.execute(&[&t.route_id as &ToSql, &t.service_id, &t.trip_id, &t.direction_id, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 113 | stmt.execute(&[&t.route_id as &dyn ToSql, &t.service_id, &t.trip_id, &t.direction_id, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveTime::from_hms`: use `from_hms_opt()` instead [INFO] [stdout] --> src/db/conv.rs:19:31 [INFO] [stdout] | [INFO] [stdout] 19 | (*local_time - NaiveTime::from_hms(0, 0, 0)).num_seconds() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/db/import.rs:46:41 [INFO] [stdout] | [INFO] [stdout] 46 | stmt.execute(&[&a.agency_id as &ToSql, &a.agency_name, &a.agency_timezone.name()])?; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 46 | stmt.execute(&[&a.agency_id as &dyn ToSql, &a.agency_name, &a.agency_timezone.name()])?; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/db/import.rs:57:42 [INFO] [stdout] | [INFO] [stdout] 57 | stmt.execute(&[&c.service_id as &ToSql, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 57 | stmt.execute(&[&c.service_id as &dyn ToSql, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/db/import.rs:69:42 [INFO] [stdout] | [INFO] [stdout] 69 | stmt.execute(&[&d.service_id as &ToSql, &conv::to_db_date(&d.date), &d.exception_type])?; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 69 | stmt.execute(&[&d.service_id as &dyn ToSql, &conv::to_db_date(&d.date), &d.exception_type])?; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/db/import.rs:79:40 [INFO] [stdout] | [INFO] [stdout] 79 | stmt.execute(&[&r.route_id as &ToSql, &r.agency_id, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 79 | stmt.execute(&[&r.route_id as &dyn ToSql, &r.agency_id, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead [INFO] [stdout] --> src/query/itinerary.rs:147:39 [INFO] [stdout] | [INFO] [stdout] 147 | departure_time: dt.date().and_hms(0, 0, 0) + Duration::seconds(departure_time), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead [INFO] [stdout] --> src/query/itinerary.rs:149:37 [INFO] [stdout] | [INFO] [stdout] 149 | arrival_time: dt.date().and_hms(0, 0, 0) + Duration::seconds(arrival_time), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/db/mod.rs:41:54 [INFO] [stdout] | [INFO] [stdout] 41 | c.execute("PRAGMA foreign_keys = ON;", &[] as &[&ToSql]).map(|_| ()).map_err(|e| e.into()) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 41 | c.execute("PRAGMA foreign_keys = ON;", &[] as &[&dyn ToSql]).map(|_| ()).map_err(|e| e.into()) [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/db/import.rs:25:41 [INFO] [stdout] | [INFO] [stdout] 25 | let mut rows = stmt.query(&[] as &[&ToSql])?; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 25 | let mut rows = stmt.query(&[] as &[&dyn ToSql])?; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/db/mod.rs:45:55 [INFO] [stdout] | [INFO] [stdout] 45 | c.execute("PRAGMA foreign_keys = OFF;", &[] as &[&ToSql]).map(|_| ()).map_err(|e| e.into()) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 45 | c.execute("PRAGMA foreign_keys = OFF;", &[] as &[&dyn ToSql]).map(|_| ()).map_err(|e| e.into()) [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/db/mod.rs:49:35 [INFO] [stdout] | [INFO] [stdout] 49 | c.execute("BEGIN;", &[] as &[&ToSql]).map(|_| ()).map_err(|e| e.into()) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 49 | c.execute("BEGIN;", &[] as &[&dyn ToSql]).map(|_| ()).map_err(|e| e.into()) [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/db/mod.rs:53:33 [INFO] [stdout] | [INFO] [stdout] 53 | c.execute("END;", &[] as &[&ToSql]).map(|_| ()).map_err(|e| e.into()) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 53 | c.execute("END;", &[] as &[&dyn ToSql]).map(|_| ()).map_err(|e| e.into()) [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/db/import.rs:46:41 [INFO] [stdout] | [INFO] [stdout] 46 | stmt.execute(&[&a.agency_id as &ToSql, &a.agency_name, &a.agency_timezone.name()])?; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 46 | stmt.execute(&[&a.agency_id as &dyn ToSql, &a.agency_name, &a.agency_timezone.name()])?; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/db/import.rs:57:42 [INFO] [stdout] | [INFO] [stdout] 57 | stmt.execute(&[&c.service_id as &ToSql, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 57 | stmt.execute(&[&c.service_id as &dyn ToSql, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/db/import.rs:69:42 [INFO] [stdout] | [INFO] [stdout] 69 | stmt.execute(&[&d.service_id as &ToSql, &conv::to_db_date(&d.date), &d.exception_type])?; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 69 | stmt.execute(&[&d.service_id as &dyn ToSql, &conv::to_db_date(&d.date), &d.exception_type])?; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/db/import.rs:79:40 [INFO] [stdout] | [INFO] [stdout] 79 | stmt.execute(&[&r.route_id as &ToSql, &r.agency_id, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 79 | stmt.execute(&[&r.route_id as &dyn ToSql, &r.agency_id, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/db/import.rs:90:39 [INFO] [stdout] | [INFO] [stdout] 90 | stmt.execute(&[&s.stop_id as &ToSql, &s.stop_name, &slug(&s.stop_name), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 90 | stmt.execute(&[&s.stop_id as &dyn ToSql, &s.stop_name, &slug(&s.stop_name), [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/db/import.rs:101:39 [INFO] [stdout] | [INFO] [stdout] 101 | stmt.execute(&[&t.trip_id as &ToSql, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 101 | stmt.execute(&[&t.trip_id as &dyn ToSql, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/db/import.rs:113:40 [INFO] [stdout] | [INFO] [stdout] 113 | stmt.execute(&[&t.route_id as &ToSql, &t.service_id, &t.trip_id, &t.direction_id, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 113 | stmt.execute(&[&t.route_id as &dyn ToSql, &t.service_id, &t.trip_id, &t.direction_id, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveTime::from_hms`: use `from_hms_opt()` instead [INFO] [stdout] --> src/db/conv.rs:19:31 [INFO] [stdout] | [INFO] [stdout] 19 | (*local_time - NaiveTime::from_hms(0, 0, 0)).num_seconds() [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp`: use `DateTime::from_timestamp` instead [INFO] [stdout] --> src/model/itinerary_query.rs:94:49 [INFO] [stdout] | [INFO] [stdout] 94 | .set_departure_time(&NaiveDateTime::from_timestamp(1546185340, 0)) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead [INFO] [stdout] --> src/query/itinerary.rs:147:39 [INFO] [stdout] | [INFO] [stdout] 147 | departure_time: dt.date().and_hms(0, 0, 0) + Duration::seconds(departure_time), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead [INFO] [stdout] --> src/query/itinerary.rs:149:37 [INFO] [stdout] | [INFO] [stdout] 149 | arrival_time: dt.date().and_hms(0, 0, 0) + Duration::seconds(arrival_time), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/result.rs:92:20 [INFO] [stdout] | [INFO] [stdout] 92 | let _: Box = Box::new(ThprError::Generic("Some error".into())); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 92 | let _: Box = Box::new(ThprError::Generic("Some error".into())); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead [INFO] [stdout] --> src/query/itinerary.rs:183:45 [INFO] [stdout] | [INFO] [stdout] 183 | .set_departure_time(&NaiveDate::from_ymd(2009, 4, 14).and_hms(8, 0, 0)) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead [INFO] [stdout] --> src/util/fmt.rs:14:44 [INFO] [stdout] | [INFO] [stdout] 14 | assert_eq!(datetime_hm(&NaiveDate::from_ymd(2019, 1, 1).and_hms(22, 21, 16)), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead [INFO] [stdout] --> src/query/itinerary.rs:183:67 [INFO] [stdout] | [INFO] [stdout] 183 | .set_departure_time(&NaiveDate::from_ymd(2009, 4, 14).and_hms(8, 0, 0)) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/db/import.rs:157:58 [INFO] [stdout] | [INFO] [stdout] 157 | let actual_count: i32 = stmt.query_map(&[] as &[&ToSql], |row| row.get(0)) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 157 | let actual_count: i32 = stmt.query_map(&[] as &[&dyn ToSql], |row| row.get(0)) [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead [INFO] [stdout] --> src/util/fmt.rs:14:65 [INFO] [stdout] | [INFO] [stdout] 14 | assert_eq!(datetime_hm(&NaiveDate::from_ymd(2019, 1, 1).and_hms(22, 21, 16)), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead [INFO] [stdout] --> src/query/itinerary.rs:192:35 [INFO] [stdout] | [INFO] [stdout] 192 | NaiveDate::from_ymd(2009, 4, 14).and_hms(8, 11, 0)); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead [INFO] [stdout] --> src/query/itinerary.rs:192:57 [INFO] [stdout] | [INFO] [stdout] 192 | NaiveDate::from_ymd(2009, 4, 14).and_hms(8, 11, 0)); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead [INFO] [stdout] --> src/query/itinerary.rs:195:35 [INFO] [stdout] | [INFO] [stdout] 195 | NaiveDate::from_ymd(2009, 4, 14).and_hms(8, 17, 0)); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::NaiveDate::and_hms`: use `and_hms_opt()` instead [INFO] [stdout] --> src/query/itinerary.rs:195:57 [INFO] [stdout] | [INFO] [stdout] 195 | NaiveDate::from_ymd(2009, 4, 14).and_hms(8, 17, 0)); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead [INFO] [stdout] --> src/gtfs/calendar.rs:47:56 [INFO] [stdout] | [INFO] [stdout] 47 | assert_eq!(calendars[0].start_date, NaiveDate::from_ymd(2009, 1, 1)); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead [INFO] [stdout] --> src/gtfs/calendar.rs:48:54 [INFO] [stdout] | [INFO] [stdout] 48 | assert_eq!(calendars[0].end_date, NaiveDate::from_ymd(2009, 12, 31)); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead [INFO] [stdout] --> src/gtfs/calendar_date.rs:35:46 [INFO] [stdout] | [INFO] [stdout] 35 | assert_eq!(dates[0].date, NaiveDate::from_ymd(2009, 9, 28)); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.67s [INFO] running `Command { std: "docker" "inspect" "91145dd4af76a047f39ccf5d63767ffb6e868e00be5e76dd7a4fffbb64fa74ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "91145dd4af76a047f39ccf5d63767ffb6e868e00be5e76dd7a4fffbb64fa74ca", kill_on_drop: false }` [INFO] [stdout] 91145dd4af76a047f39ccf5d63767ffb6e868e00be5e76dd7a4fffbb64fa74ca