[INFO] fetching crate demes-forward 0.5.0... [INFO] checking demes-forward-0.5.0 against master#506512391b1a75ae450d36c9420978402a91abcc for pr-125384 [INFO] extracting crate demes-forward 0.5.0 into /workspace/builds/worker-0-tc1/source [INFO] validating manifest of crates.io crate demes-forward 0.5.0 on toolchain 506512391b1a75ae450d36c9420978402a91abcc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate demes-forward 0.5.0 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate demes-forward 0.5.0 [INFO] tweaked toml for crates.io crate demes-forward 0.5.0 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate crates.io crate demes-forward 0.5.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded proc-macro2 v1.0.74 [INFO] [stderr] Downloaded serde_yaml v0.9.21 [INFO] [stderr] Downloaded demes v0.6.0 [INFO] [stderr] Downloaded memchr v2.6.2 [INFO] [stderr] Downloaded regex v1.9.6 [INFO] [stderr] Downloaded syn v2.0.46 [INFO] [stderr] Downloaded regex-automata v0.3.9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 12ac4afb51b293673e255874a0b627b28eab8f08e69923e7326cf0503a378dcb [INFO] running `Command { std: "docker" "start" "-a" "12ac4afb51b293673e255874a0b627b28eab8f08e69923e7326cf0503a378dcb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "12ac4afb51b293673e255874a0b627b28eab8f08e69923e7326cf0503a378dcb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "12ac4afb51b293673e255874a0b627b28eab8f08e69923e7326cf0503a378dcb", kill_on_drop: false }` [INFO] [stdout] 12ac4afb51b293673e255874a0b627b28eab8f08e69923e7326cf0503a378dcb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c2dcd4877a8e29dddaa38a3c5e5ae9e0240974e920af069c3e5da592001f8f00 [INFO] running `Command { std: "docker" "start" "-a" "c2dcd4877a8e29dddaa38a3c5e5ae9e0240974e920af069c3e5da592001f8f00", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.74 [INFO] [stderr] Compiling unicode-ident v1.0.8 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Checking regex-syntax v0.7.5 [INFO] [stderr] Compiling thiserror v1.0.57 [INFO] [stderr] Checking ryu v1.0.13 [INFO] [stderr] Checking unsafe-libyaml v0.2.10 [INFO] [stderr] Checking itoa v1.0.6 [INFO] [stderr] Compiling demes v0.6.0 [INFO] [stderr] Compiling anyhow v1.0.80 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling syn v2.0.46 [INFO] [stderr] Checking regex-automata v0.3.9 [INFO] [stderr] Checking regex v1.9.6 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Compiling thiserror-impl v1.0.57 [INFO] [stderr] Checking serde_yaml v0.9.21 [INFO] [stderr] Checking demes-forward v0.5.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.80s [INFO] running `Command { std: "docker" "inspect" "c2dcd4877a8e29dddaa38a3c5e5ae9e0240974e920af069c3e5da592001f8f00", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c2dcd4877a8e29dddaa38a3c5e5ae9e0240974e920af069c3e5da592001f8f00", kill_on_drop: false }` [INFO] [stdout] c2dcd4877a8e29dddaa38a3c5e5ae9e0240974e920af069c3e5da592001f8f00 [INFO] checking demes-forward-0.5.0 against try#dae34b759e282c069aa28752564694effd121a63 for pr-125384 [INFO] extracting crate demes-forward 0.5.0 into /workspace/builds/worker-0-tc2/source [INFO] validating manifest of crates.io crate demes-forward 0.5.0 on toolchain dae34b759e282c069aa28752564694effd121a63 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate demes-forward 0.5.0 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate demes-forward 0.5.0 [INFO] tweaked toml for crates.io crate demes-forward 0.5.0 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate crates.io crate demes-forward 0.5.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 428db3e0bf08189e9bdf2f2e6d1ae69a468e9a44c4f91c2c7102be944ce49905 [INFO] running `Command { std: "docker" "start" "-a" "428db3e0bf08189e9bdf2f2e6d1ae69a468e9a44c4f91c2c7102be944ce49905", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "428db3e0bf08189e9bdf2f2e6d1ae69a468e9a44c4f91c2c7102be944ce49905", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "428db3e0bf08189e9bdf2f2e6d1ae69a468e9a44c4f91c2c7102be944ce49905", kill_on_drop: false }` [INFO] [stdout] 428db3e0bf08189e9bdf2f2e6d1ae69a468e9a44c4f91c2c7102be944ce49905 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b6daa927faecb4f2468a405bfe6bc6fc19bd0e3ed0021cf1c5e69556aab26ac1 [INFO] running `Command { std: "docker" "start" "-a" "b6daa927faecb4f2468a405bfe6bc6fc19bd0e3ed0021cf1c5e69556aab26ac1", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling proc-macro2 v1.0.74 [INFO] [stderr] Compiling unicode-ident v1.0.8 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Checking regex-syntax v0.7.5 [INFO] [stderr] Compiling thiserror v1.0.57 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking unsafe-libyaml v0.2.10 [INFO] [stderr] Checking itoa v1.0.6 [INFO] [stderr] Checking ryu v1.0.13 [INFO] [stderr] Compiling demes v0.6.0 [INFO] [stderr] Compiling anyhow v1.0.80 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling syn v2.0.46 [INFO] [stderr] Checking regex-automata v0.3.9 [INFO] [stderr] Checking regex v1.9.6 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Compiling thiserror-impl v1.0.57 [INFO] [stderr] Checking serde_yaml v0.9.21 [INFO] [stderr] Checking demes-forward v0.5.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/tests.rs from 2021 edition to 2024 [INFO] [stderr] Migrating examples/iterate_gutenkunst.rs from 2021 edition to 2024 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.23s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking demes-forward v0.5.0 (/tmp/fixit) [INFO] [stdout] error[E0597]: `graph` does not live long enough [INFO] [stdout] --> src/iterators/deme_size_history.rs:25:38 [INFO] [stdout] | [INFO] [stdout] 19 | let mut graph = graph; [INFO] [stdout] | --------- binding `graph` declared here [INFO] [stdout] ... [INFO] [stdout] 25 | let time_iterator = Box::new(graph.time_iterator()); [INFO] [stdout] | ^^^^^ borrowed value does not live long enough [INFO] [stdout] ... [INFO] [stdout] 30 | time_iterator, [INFO] [stdout] | ------------- cast requires that `graph` is borrowed for `'static` [INFO] [stdout] 31 | }) [INFO] [stdout] 32 | } [INFO] [stdout] | - `graph` dropped here while still borrowed [INFO] [stdout] | [INFO] [stdout] = note: due to object lifetime defaults, `Box>` actually means `Box<(dyn Iterator + 'static)>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `graph` because it is borrowed [INFO] [stdout] --> src/iterators/deme_size_history.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 19 | let mut graph = graph; [INFO] [stdout] | --------- binding `graph` declared here [INFO] [stdout] ... [INFO] [stdout] 25 | let time_iterator = Box::new(graph.time_iterator()); [INFO] [stdout] | ----- borrow of `graph` occurs here [INFO] [stdout] 26 | Ok(Self { [INFO] [stdout] 27 | graph, [INFO] [stdout] | ^^^^^ move out of `graph` occurs here [INFO] [stdout] ... [INFO] [stdout] 30 | time_iterator, [INFO] [stdout] | ------------- cast requires that `graph` is borrowed for `'static` [INFO] [stdout] | [INFO] [stdout] = note: due to object lifetime defaults, `Box>` actually means `Box<(dyn Iterator + 'static)>` [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 25 | let time_iterator = Box::new(graph.clone().time_iterator()); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0505, E0597. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0505`. [INFO] [stdout] [INFO] [stderr] error: could not compile `demes-forward` (lib) due to 3 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0502]: cannot borrow `*graph` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/graph.rs:1060:13 [INFO] [stdout] | [INFO] [stdout] 1059 | for time in graph.time_iterator() { [INFO] [stdout] | --------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] 1060 | graph.update_state(time).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `graph` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/graph.rs:1262:17 [INFO] [stdout] | [INFO] [stdout] 1261 | for i in graph.time_iterator() { [INFO] [stdout] | --------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] 1262 | graph.update_state(i).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `graph` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/graph.rs:1364:13 [INFO] [stdout] | [INFO] [stdout] 1363 | for time in graph.time_iterator() { [INFO] [stdout] | --------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] 1364 | graph.update_state(time).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `graph` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/graph.rs:1380:13 [INFO] [stdout] | [INFO] [stdout] 1379 | for time in graph.time_iterator() { [INFO] [stdout] | --------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | immutable borrow later used here [INFO] [stdout] 1380 | graph.update_state(time).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `graph` does not live long enough [INFO] [stdout] --> src/iterators/deme_size_history.rs:25:38 [INFO] [stdout] | [INFO] [stdout] 19 | let mut graph = graph; [INFO] [stdout] | --------- binding `graph` declared here [INFO] [stdout] ... [INFO] [stdout] 25 | let time_iterator = Box::new(graph.time_iterator()); [INFO] [stdout] | ^^^^^ borrowed value does not live long enough [INFO] [stdout] ... [INFO] [stdout] 30 | time_iterator, [INFO] [stdout] | ------------- cast requires that `graph` is borrowed for `'static` [INFO] [stdout] 31 | }) [INFO] [stdout] 32 | } [INFO] [stdout] | - `graph` dropped here while still borrowed [INFO] [stdout] | [INFO] [stdout] = note: due to object lifetime defaults, `Box>` actually means `Box<(dyn Iterator + 'static)>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `graph` because it is borrowed [INFO] [stdout] --> src/iterators/deme_size_history.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 19 | let mut graph = graph; [INFO] [stdout] | --------- binding `graph` declared here [INFO] [stdout] ... [INFO] [stdout] 25 | let time_iterator = Box::new(graph.time_iterator()); [INFO] [stdout] | ----- borrow of `graph` occurs here [INFO] [stdout] 26 | Ok(Self { [INFO] [stdout] 27 | graph, [INFO] [stdout] | ^^^^^ move out of `graph` occurs here [INFO] [stdout] ... [INFO] [stdout] 30 | time_iterator, [INFO] [stdout] | ------------- cast requires that `graph` is borrowed for `'static` [INFO] [stdout] | [INFO] [stdout] = note: due to object lifetime defaults, `Box>` actually means `Box<(dyn Iterator + 'static)>` [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 25 | let time_iterator = Box::new(graph.clone().time_iterator()); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0502, E0505, E0597. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `demes-forward` (lib test) due to 7 previous errors [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "b6daa927faecb4f2468a405bfe6bc6fc19bd0e3ed0021cf1c5e69556aab26ac1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b6daa927faecb4f2468a405bfe6bc6fc19bd0e3ed0021cf1c5e69556aab26ac1", kill_on_drop: false }` [INFO] [stdout] b6daa927faecb4f2468a405bfe6bc6fc19bd0e3ed0021cf1c5e69556aab26ac1