[INFO] fetching crate rental_rod 0.2.1... [INFO] checking rental_rod-0.2.1 against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] extracting crate rental_rod 0.2.1 into /workspace/builds/worker-5-tc2/source [INFO] validating manifest of crates.io crate rental_rod 0.2.1 on toolchain 23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate rental_rod 0.2.1 [INFO] finished tweaking crates.io crate rental_rod 0.2.1 [INFO] tweaked toml for crates.io crate rental_rod 0.2.1 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 11184599d3c2d921f13f0a1b16dfb8f386810fcb24aa2f140d4f53c1346b9ad4 [INFO] running `Command { std: "docker" "start" "-a" "11184599d3c2d921f13f0a1b16dfb8f386810fcb24aa2f140d4f53c1346b9ad4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "11184599d3c2d921f13f0a1b16dfb8f386810fcb24aa2f140d4f53c1346b9ad4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "11184599d3c2d921f13f0a1b16dfb8f386810fcb24aa2f140d4f53c1346b9ad4", kill_on_drop: false }` [INFO] [stdout] 11184599d3c2d921f13f0a1b16dfb8f386810fcb24aa2f140d4f53c1346b9ad4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 313d2f73ae54aea92bb0362ae4fe1b144634cc29bb22f237b1853f55b84bde9a [INFO] running `Command { std: "docker" "start" "-a" "313d2f73ae54aea92bb0362ae4fe1b144634cc29bb22f237b1853f55b84bde9a", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.16 [INFO] [stderr] Compiling serde v1.0.188 [INFO] [stderr] Compiling rust_decimal v1.32.0 [INFO] [stderr] Compiling arrayvec v0.7.4 [INFO] [stderr] Checking iana-time-zone v0.1.57 [INFO] [stderr] Compiling libc v0.2.148 [INFO] [stderr] Compiling proc-macro2 v1.0.67 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Checking uuid v0.8.2 [INFO] [stderr] Checking chrono v0.4.31 [INFO] [stderr] Compiling rust_decimal_macros v1.32.0 [INFO] [stderr] Checking rental_rod v0.2.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead [INFO] [stdout] --> src/db/field_type.rs:109:31 [INFO] [stdout] | [INFO] [stdout] 109 | let date = NaiveDate::from_ymd(2021, 12, 15); [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::NaiveTime::from_hms`: use `from_hms_opt()` instead [INFO] [stdout] --> src/db/field_type.rs:110:31 [INFO] [stdout] | [INFO] [stdout] 110 | let time = NaiveTime::from_hms(17, 18, 19); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::DateTime::::from_utc`: Use TimeZone::from_utc_datetime() or DateTime::from_naive_utc_and_offset instead [INFO] [stdout] --> src/db/field_type.rs:111:34 [INFO] [stdout] | [INFO] [stdout] 111 | let datetime = DateTime::from_utc(NaiveDateTime::new(date, time), Utc); [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/db/field_type.rs:120:31 [INFO] [stdout] | [INFO] [stdout] 120 | let date = NaiveDate::from_ymd(2020, 11, 14); [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/field_type.rs:121:31 [INFO] [stdout] | [INFO] [stdout] 121 | let time = NaiveTime::from_hms(10, 20, 30).with_nanosecond(149294584).unwrap(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::DateTime::::from_utc`: Use TimeZone::from_utc_datetime() or DateTime::from_naive_utc_and_offset instead [INFO] [stdout] --> src/db/field_type.rs:122:34 [INFO] [stdout] | [INFO] [stdout] 122 | let datetime = DateTime::from_utc(NaiveDateTime::new(date, time), Utc); [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/db/field_type.rs:136:31 [INFO] [stdout] | [INFO] [stdout] 136 | let date = NaiveDate::from_ymd(2021, 12, 15); [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/field_type.rs:137:31 [INFO] [stdout] | [INFO] [stdout] 137 | let time = NaiveTime::from_hms(17, 18, 19); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::DateTime::::from_utc`: Use TimeZone::from_utc_datetime() or DateTime::from_naive_utc_and_offset instead [INFO] [stdout] --> src/db/field_type.rs:138:38 [INFO] [stdout] | [INFO] [stdout] 138 | let datetime_utc = DateTime::from_utc(NaiveDateTime::new(date, time), Utc); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*table` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/db.rs:274:12 [INFO] [stdout] | [INFO] [stdout] 271 | let mut manager = table_manager::get_table_manager(&self.path, table.get_name())?; [INFO] [stdout] | ----- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 274 | if manager.write(table)? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 283 | } [INFO] [stdout] | - immutable borrow might be used here, when `manager` is dropped and runs the destructor for type `impl TableManager` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead [INFO] [stdout] --> src/table_manager/v1/reader/parser.rs:225:31 [INFO] [stdout] | [INFO] [stdout] 225 | let date = NaiveDate::from_ymd(2021, 12, 28); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveTime::from_hms_nano`: use `from_hms_nano_opt()` instead [INFO] [stdout] --> src/table_manager/v1/reader/parser.rs:226:31 [INFO] [stdout] | [INFO] [stdout] 226 | let time = NaiveTime::from_hms_nano(17, 11, 14, 492); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::DateTime::::from_utc`: Use TimeZone::from_utc_datetime() or DateTime::from_naive_utc_and_offset instead [INFO] [stdout] --> src/table_manager/v1/reader/parser.rs:227:50 [INFO] [stdout] | [INFO] [stdout] 227 | let dt_expect: DateTime = DateTime::from_utc(NaiveDateTime::new(date, time), Utc); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rental_rod` (lib) due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0502]: cannot borrow `*table` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/db.rs:274:12 [INFO] [stdout] | [INFO] [stdout] 271 | let mut manager = table_manager::get_table_manager(&self.path, table.get_name())?; [INFO] [stdout] | ----- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 274 | if manager.write(table)? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 283 | } [INFO] [stdout] | - immutable borrow might be used here, when `manager` is dropped and runs the destructor for type `impl TableManager` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rental_rod` (lib test) due to 2 previous errors; 12 warnings emitted [INFO] running `Command { std: "docker" "inspect" "313d2f73ae54aea92bb0362ae4fe1b144634cc29bb22f237b1853f55b84bde9a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "313d2f73ae54aea92bb0362ae4fe1b144634cc29bb22f237b1853f55b84bde9a", kill_on_drop: false }` [INFO] [stdout] 313d2f73ae54aea92bb0362ae4fe1b144634cc29bb22f237b1853f55b84bde9a