[INFO] fetching crate slice 0.0.4...
[INFO] testing slice-0.0.4 against 1.99.0-beta.8+cargoflags=--release for beta-release-1.100-2
[INFO] extracting crate slice 0.0.4 into /workspace/builds/worker-7-tc1/source
[INFO] started tweaking crates.io crate slice 0.0.4
[INFO] finished tweaking crates.io crate slice 0.0.4
[INFO] tweaked toml for crates.io crate slice 0.0.4 written to /workspace/builds/worker-7-tc1/source/Cargo.toml
[INFO] validating manifest of crates.io crate slice 0.0.4 on toolchain 1.99.0-beta.8
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.99.0-beta.8" "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" "+1.99.0-beta.8" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.99.0-beta.8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] warning: Cargo.toml: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024`
[INFO] [stderr] warning: `slice` (manifest) generated 1 warning
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] ccaba008f58cd11525fc67290353de8ff994fca49472c177e9010af2f3e1ab86
[INFO] running `Command { std: "docker" "start" "ccaba008f58cd11525fc67290353de8ff994fca49472c177e9010af2f3e1ab86", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "ccaba008f58cd11525fc67290353de8ff994fca49472c177e9010af2f3e1ab86", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "ccaba008f58cd11525fc67290353de8ff994fca49472c177e9010af2f3e1ab86" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "ccaba008f58cd11525fc67290353de8ff994fca49472c177e9010af2f3e1ab86", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "ccaba008f58cd11525fc67290353de8ff994fca49472c177e9010af2f3e1ab86" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.8" "build" "--frozen" "--message-format=json" "--release", kill_on_drop: false }`
[INFO] [stderr] warning: Cargo.toml: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024`
[INFO] [stderr] warning: `slice` (manifest) generated 1 warning
[INFO] [stderr]    Compiling slice v0.0.4 (/opt/rustwide/workdir)
[INFO] [stdout] warning: use of deprecated constant `std::i64::MAX`: replaced by the `MAX` associated constant on this type
[INFO] [stdout]   --> src/lib.rs:99:33
[INFO] [stdout]    |
[INFO] [stdout] 99 |         let i64_max = std::i64::MAX as u64;
[INFO] [stdout]    |                                 ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated constant `std::i64::MAX`: replaced by the `MAX` associated constant on this type
[INFO] [stdout]    --> src/lib.rs:139:138
[INFO] [stdout]     |
[INFO] [stdout] 139 | ...nt(x) => x as u64, SeekFrom::End(x) => x as u64 } > std::i64::MAX as u64 {
[INFO] [stdout]     |                                                                  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated constant `std::usize::MAX`: replaced by the `MAX` associated constant on this type
[INFO] [stdout]    --> src/lib.rs:177:69
[INFO] [stdout]     |
[INFO] [stdout] 177 |         let remaining   = std::cmp::min(self.remaining, std::usize::MAX as u64) as usize;
[INFO] [stdout]     |                                                                     ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated constant `std::usize::MAX`: replaced by the `MAX` associated constant on this type
[INFO] [stdout]    --> src/lib.rs:187:41
[INFO] [stdout]     |
[INFO] [stdout] 187 |         if self.remaining > std::usize::MAX as u64 {
[INFO] [stdout]     |                                         ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `release` profile [optimized] target(s) in 0.13s
[INFO] running `Command { std: "docker" "inspect" "ccaba008f58cd11525fc67290353de8ff994fca49472c177e9010af2f3e1ab86", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "ccaba008f58cd11525fc67290353de8ff994fca49472c177e9010af2f3e1ab86" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.8" "test" "--frozen" "--no-run" "--message-format=json" "--release", kill_on_drop: false }`
[INFO] [stderr] warning: Cargo.toml: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024`
[INFO] [stderr] warning: `slice` (manifest) generated 1 warning
[INFO] [stderr]    Compiling slice v0.0.4 (/opt/rustwide/workdir)
[INFO] [stdout] warning: use of deprecated constant `std::i64::MAX`: replaced by the `MAX` associated constant on this type
[INFO] [stdout]   --> src/lib.rs:99:33
[INFO] [stdout]    |
[INFO] [stdout] 99 |         let i64_max = std::i64::MAX as u64;
[INFO] [stdout]    |                                 ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated constant `std::i64::MAX`: replaced by the `MAX` associated constant on this type
[INFO] [stdout]    --> src/lib.rs:139:138
[INFO] [stdout]     |
[INFO] [stdout] 139 | ...nt(x) => x as u64, SeekFrom::End(x) => x as u64 } > std::i64::MAX as u64 {
[INFO] [stdout]     |                                                                  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated constant `std::usize::MAX`: replaced by the `MAX` associated constant on this type
[INFO] [stdout]    --> src/lib.rs:177:69
[INFO] [stdout]     |
[INFO] [stdout] 177 |         let remaining   = std::cmp::min(self.remaining, std::usize::MAX as u64) as usize;
[INFO] [stdout]     |                                                                     ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated constant `std::usize::MAX`: replaced by the `MAX` associated constant on this type
[INFO] [stdout]    --> src/lib.rs:187:41
[INFO] [stdout]     |
[INFO] [stdout] 187 |         if self.remaining > std::usize::MAX as u64 {
[INFO] [stdout]     |                                         ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated constant `std::i64::MAX`: replaced by the `MAX` associated constant on this type
[INFO] [stdout]   --> src/lib.rs:99:33
[INFO] [stdout]    |
[INFO] [stdout] 99 |         let i64_max = std::i64::MAX as u64;
[INFO] [stdout]    |                                 ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated constant `std::i64::MAX`: replaced by the `MAX` associated constant on this type
[INFO] [stdout]    --> src/lib.rs:139:138
[INFO] [stdout]     |
[INFO] [stdout] 139 | ...nt(x) => x as u64, SeekFrom::End(x) => x as u64 } > std::i64::MAX as u64 {
[INFO] [stdout]     |                                                                  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated constant `std::usize::MAX`: replaced by the `MAX` associated constant on this type
[INFO] [stdout]    --> src/lib.rs:177:69
[INFO] [stdout]     |
[INFO] [stdout] 177 |         let remaining   = std::cmp::min(self.remaining, std::usize::MAX as u64) as usize;
[INFO] [stdout]     |                                                                     ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated constant `std::usize::MAX`: replaced by the `MAX` associated constant on this type
[INFO] [stdout]    --> src/lib.rs:187:41
[INFO] [stdout]     |
[INFO] [stdout] 187 |         if self.remaining > std::usize::MAX as u64 {
[INFO] [stdout]     |                                         ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `release` profile [optimized] target(s) in 0.46s
[INFO] running `Command { std: "docker" "inspect" "ccaba008f58cd11525fc67290353de8ff994fca49472c177e9010af2f3e1ab86", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "ccaba008f58cd11525fc67290353de8ff994fca49472c177e9010af2f3e1ab86" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.8" "test" "--frozen" "--release", kill_on_drop: false }`
[INFO] [stderr] warning: Cargo.toml: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024`
[INFO] [stderr] warning: `slice` (manifest) generated 1 warning
[INFO] [stderr] warning: use of deprecated constant `std::i64::MAX`: replaced by the `MAX` associated constant on this type
[INFO] [stderr]   --> src/lib.rs:99:33
[INFO] [stderr]    |
[INFO] [stderr] 99 |         let i64_max = std::i64::MAX as u64;
[INFO] [stderr]    |                                 ^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(deprecated)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated constant `std::i64::MAX`: replaced by the `MAX` associated constant on this type
[INFO] [stderr]    --> src/lib.rs:139:138
[INFO] [stderr]     |
[INFO] [stderr] 139 | ...nt(x) => x as u64, SeekFrom::End(x) => x as u64 } > std::i64::MAX as u64 {
[INFO] [stderr]     |                                                                  ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated constant `std::usize::MAX`: replaced by the `MAX` associated constant on this type
[INFO] [stderr]    --> src/lib.rs:177:69
[INFO] [stderr]     |
[INFO] [stderr] 177 |         let remaining   = std::cmp::min(self.remaining, std::usize::MAX as u64) as usize;
[INFO] [stderr]     |                                                                     ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated constant `std::usize::MAX`: replaced by the `MAX` associated constant on this type
[INFO] [stderr]    --> src/lib.rs:187:41
[INFO] [stderr]     |
[INFO] [stderr] 187 |         if self.remaining > std::usize::MAX as u64 {
[INFO] [stderr]     |                                         ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: `slice` (lib) generated 4 warnings
[INFO] [stderr] warning: `slice` (lib test) generated 4 warnings (4 duplicates)
[INFO] [stderr]     Finished `release` profile [optimized] target(s) in 0.04s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/release/deps/slice-c06772547fb72b64)
[INFO] [stdout] 
[INFO] [stderr]    Doc-tests slice
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] running 2 tests
[INFO] [stdout] test src/lib.rs - (line 10) ... FAILED
[INFO] [stdout] test src/lib.rs - IoSlice (line 56) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/lib.rs - (line 10) stdout ----
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]   --> src/lib.rs:15:48
[INFO] [stdout]    |
[INFO] [stdout] 11 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_10_0() {
[INFO] [stdout]    |                                      ---------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 15 | let source = File::open("/home/annie/data.png")?;
[INFO] [stdout]    |                                                ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]    |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]    |
[INFO] [stdout] 11 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_10_0() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout] 12 | use { std::fs::File, slice::IoSlice };
[INFO] [stdout] ...
[INFO] [stdout] 25 | let slice = IoSlice::new(source, start, length);
[INFO] [stdout] 26 +     Ok(())
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - IoSlice (line 56) stdout ----
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]   --> src/lib.rs:61:48
[INFO] [stdout]    |
[INFO] [stdout] 57 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_56_0() {
[INFO] [stdout]    |                                      ---------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 61 | let source = File::open("/home/annie/data.png")?;
[INFO] [stdout]    |                                                ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]    |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]    |
[INFO] [stdout] 57 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_56_0() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout] 58 | use { std::fs::File, slice::IoSlice };
[INFO] [stdout] ...
[INFO] [stdout] 71 | let slice = IoSlice::new(source, start, length);
[INFO] [stdout] 72 +     Ok(())
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/lib.rs - (line 10)
[INFO] [stdout]     src/lib.rs - IoSlice (line 56)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.13s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "ccaba008f58cd11525fc67290353de8ff994fca49472c177e9010af2f3e1ab86", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ccaba008f58cd11525fc67290353de8ff994fca49472c177e9010af2f3e1ab86", kill_on_drop: false }`
[INFO] [stdout] ccaba008f58cd11525fc67290353de8ff994fca49472c177e9010af2f3e1ab86
