[INFO] cloning repository https://github.com/leifu1128/rand-archive [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/leifu1128/rand-archive" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fleifu1128%2Frand-archive", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fleifu1128%2Frand-archive'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 08375a7229cee6da4b7566fddb89fc74caa5861b [INFO] checking leifu1128/rand-archive against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fleifu1128%2Frand-archive" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/leifu1128/rand-archive 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 git repo https://github.com/leifu1128/rand-archive [INFO] finished tweaking git repo https://github.com/leifu1128/rand-archive [INFO] tweaked toml for git repo https://github.com/leifu1128/rand-archive written to /workspace/builds/worker-1-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] 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-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 3fc30f185c8c9a753cbce2261e4b6b8811ca099aff1ec373e1b78dbc52ddc4bf [INFO] running `Command { std: "docker" "start" "-a" "3fc30f185c8c9a753cbce2261e4b6b8811ca099aff1ec373e1b78dbc52ddc4bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3fc30f185c8c9a753cbce2261e4b6b8811ca099aff1ec373e1b78dbc52ddc4bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3fc30f185c8c9a753cbce2261e4b6b8811ca099aff1ec373e1b78dbc52ddc4bf", kill_on_drop: false }` [INFO] [stdout] 3fc30f185c8c9a753cbce2261e4b6b8811ca099aff1ec373e1b78dbc52ddc4bf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 6d9ac21c299b4269345ac4415a95c7e96378aef2f61e85d327424e379b87a422 [INFO] running `Command { std: "docker" "start" "-a" "6d9ac21c299b4269345ac4415a95c7e96378aef2f61e85d327424e379b87a422", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.67 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.148 [INFO] [stderr] Compiling target-lexicon v0.12.11 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Checking pin-project-lite v0.2.13 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling serde v1.0.188 [INFO] [stderr] Checking tracing-core v0.1.31 [INFO] [stderr] Checking thread_local v1.1.7 [INFO] [stderr] Checking sharded-slab v0.1.4 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Compiling eyre v0.6.8 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking gimli v0.28.0 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Compiling pyo3-build-config v0.19.2 [INFO] [stderr] Checking indenter v0.3.3 [INFO] [stderr] Checking tracing-subscriber v0.3.17 [INFO] [stderr] Checking memchr v2.6.3 [INFO] [stderr] Compiling syn v2.0.37 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Checking smallvec v1.11.0 [INFO] [stderr] Checking object v0.32.1 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking miniz_oxide v0.7.1 [INFO] [stderr] Checking tracing-error v0.2.0 [INFO] [stderr] Checking hashbrown v0.14.0 [INFO] [stderr] Checking owo-colors v3.5.0 [INFO] [stderr] Compiling backtrace v0.3.69 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Compiling thiserror v1.0.48 [INFO] [stderr] Compiling rustix v0.38.13 [INFO] [stderr] Compiling pyo3-ffi v0.19.2 [INFO] [stderr] Checking addr2line v0.21.0 [INFO] [stderr] Compiling pyo3 v0.19.2 [INFO] [stderr] Checking rustc-demangle v0.1.23 [INFO] [stderr] Checking color-spantrace v0.2.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking bitflags v2.4.0 [INFO] [stderr] Checking unindent v0.1.11 [INFO] [stderr] Compiling indoc v1.0.9 [INFO] [stderr] Checking linux-raw-sys v0.4.7 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking tokio v1.32.0 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Checking fastrand v2.0.0 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Compiling serde_derive v1.0.188 [INFO] [stderr] Compiling thiserror-impl v1.0.48 [INFO] [stderr] Compiling pyo3-macros-backend v0.19.2 [INFO] [stderr] Checking color-eyre v0.6.2 [INFO] [stderr] Checking tempfile v3.8.0 [INFO] [stderr] Compiling pyo3-macros v0.19.2 [INFO] [stderr] Checking indexmap v2.0.0 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking rand_archive v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `DataSource` [INFO] [stdout] --> src/python.rs:11:21 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::reader::{DataSource, Reader}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collector::Collector` [INFO] [stdout] --> src/reader/mod.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | pub(crate) use collector::Collector; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DataSource` [INFO] [stdout] --> src/python.rs:11:21 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::reader::{DataSource, Reader}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collector::Collector` [INFO] [stdout] --> src/reader/mod.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | pub(crate) use collector::Collector; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dummy_header` [INFO] [stdout] --> src/archive.rs:147:13 [INFO] [stdout] | [INFO] [stdout] 147 | let dummy_header = dummy_writer.header().clone(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dummy_header` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cls` [INFO] [stdout] --> src/python.rs:32:25 [INFO] [stdout] | [INFO] [stdout] 32 | fn calc_header_size(cls: &PyType, key_size: usize, n_entries: usize) -> usize { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cls` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cls` [INFO] [stdout] --> src/python.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | fn load(cls: &PyType, path: &str) -> PyResult { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cls` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cls` [INFO] [stdout] --> src/python.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | fn load(cls: &PyType, path: &str, cache_size: usize) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cls` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exc_type` [INFO] [stdout] --> src/python.rs:107:46 [INFO] [stdout] | [INFO] [stdout] 107 | fn __exit__(mut slf: PyRefMut<'_, Self>, exc_type: &PyAny, exc_value: &PyAny, exc_traceback: &PyAny) -> Result<()> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_exc_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exc_value` [INFO] [stdout] --> src/python.rs:107:64 [INFO] [stdout] | [INFO] [stdout] 107 | fn __exit__(mut slf: PyRefMut<'_, Self>, exc_type: &PyAny, exc_value: &PyAny, exc_traceback: &PyAny) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_exc_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exc_traceback` [INFO] [stdout] --> src/python.rs:107:83 [INFO] [stdout] | [INFO] [stdout] 107 | fn __exit__(mut slf: PyRefMut<'_, Self>, exc_type: &PyAny, exc_value: &PyAny, exc_traceback: &PyAny) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_exc_traceback` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cls` [INFO] [stdout] --> src/python.rs:32:25 [INFO] [stdout] | [INFO] [stdout] 32 | fn calc_header_size(cls: &PyType, key_size: usize, n_entries: usize) -> usize { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cls` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cls` [INFO] [stdout] --> src/python.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | fn load(cls: &PyType, path: &str) -> PyResult { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cls` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cls` [INFO] [stdout] --> src/python.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | fn load(cls: &PyType, path: &str, cache_size: usize) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cls` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exc_type` [INFO] [stdout] --> src/python.rs:107:46 [INFO] [stdout] | [INFO] [stdout] 107 | fn __exit__(mut slf: PyRefMut<'_, Self>, exc_type: &PyAny, exc_value: &PyAny, exc_traceback: &PyAny) -> Result<()> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_exc_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exc_value` [INFO] [stdout] --> src/python.rs:107:64 [INFO] [stdout] | [INFO] [stdout] 107 | fn __exit__(mut slf: PyRefMut<'_, Self>, exc_type: &PyAny, exc_value: &PyAny, exc_traceback: &PyAny) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_exc_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exc_traceback` [INFO] [stdout] --> src/python.rs:107:83 [INFO] [stdout] | [INFO] [stdout] 107 | fn __exit__(mut slf: PyRefMut<'_, Self>, exc_type: &PyAny, exc_value: &PyAny, exc_traceback: &PyAny) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_exc_traceback` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/python.rs:151:19 [INFO] [stdout] | [INFO] [stdout] 149 | fn __iter__(slf: PyRef<'_, Self>) -> Result { [INFO] [stdout] | --- has type `pyo3::PyRef<'1, PyReader>` [INFO] [stdout] 150 | Ok(EntryIter { [INFO] [stdout] 151 | iter: Box::new(slf.inner.iter()?), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ cast requires that `'1` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `slf` does not live long enough [INFO] [stdout] --> src/python.rs:151:28 [INFO] [stdout] | [INFO] [stdout] 149 | fn __iter__(slf: PyRef<'_, Self>) -> Result { [INFO] [stdout] | --- binding `slf` declared here [INFO] [stdout] 150 | Ok(EntryIter { [INFO] [stdout] 151 | iter: Box::new(slf.inner.iter()?), [INFO] [stdout] | ---------^^^--------------- [INFO] [stdout] | | | [INFO] [stdout] | | borrowed value does not live long enough [INFO] [stdout] | cast requires that `slf` is borrowed for `'static` [INFO] [stdout] 152 | }) [INFO] [stdout] 153 | } [INFO] [stdout] | - `slf` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/python.rs:151:19 [INFO] [stdout] | [INFO] [stdout] 149 | fn __iter__(slf: PyRef<'_, Self>) -> Result { [INFO] [stdout] | --- has type `pyo3::PyRef<'1, PyReader>` [INFO] [stdout] 150 | Ok(EntryIter { [INFO] [stdout] 151 | iter: Box::new(slf.inner.iter()?), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ cast requires that `'1` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `slf` does not live long enough [INFO] [stdout] --> src/python.rs:151:28 [INFO] [stdout] | [INFO] [stdout] 149 | fn __iter__(slf: PyRef<'_, Self>) -> Result { [INFO] [stdout] | --- binding `slf` declared here [INFO] [stdout] 150 | Ok(EntryIter { [INFO] [stdout] 151 | iter: Box::new(slf.inner.iter()?), [INFO] [stdout] | ---------^^^--------------- [INFO] [stdout] | | | [INFO] [stdout] | | borrowed value does not live long enough [INFO] [stdout] | cast requires that `slf` is borrowed for `'static` [INFO] [stdout] 152 | }) [INFO] [stdout] 153 | } [INFO] [stdout] | - `slf` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0597`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rand_archive` (lib) due to 3 previous errors; 8 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 2 previous errors; 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0597`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rand_archive` (lib test) due to 3 previous errors; 9 warnings emitted [INFO] running `Command { std: "docker" "inspect" "6d9ac21c299b4269345ac4415a95c7e96378aef2f61e85d327424e379b87a422", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6d9ac21c299b4269345ac4415a95c7e96378aef2f61e85d327424e379b87a422", kill_on_drop: false }` [INFO] [stdout] 6d9ac21c299b4269345ac4415a95c7e96378aef2f61e85d327424e379b87a422