[INFO] fetching crate cluatoi 0.2.1... [INFO] testing cluatoi-0.2.1 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate cluatoi 0.2.1 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate cluatoi 0.2.1 [INFO] finished tweaking crates.io crate cluatoi 0.2.1 [INFO] tweaked toml for crates.io crate cluatoi 0.2.1 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate cluatoi 0.2.1 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 627d60263c54c1bf20df3c00416efc78619f81056e48624c0825d159f5954d95 [INFO] running `Command { std: "docker" "start" "-a" "627d60263c54c1bf20df3c00416efc78619f81056e48624c0825d159f5954d95", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "627d60263c54c1bf20df3c00416efc78619f81056e48624c0825d159f5954d95", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "627d60263c54c1bf20df3c00416efc78619f81056e48624c0825d159f5954d95", kill_on_drop: false }` [INFO] [stdout] 627d60263c54c1bf20df3c00416efc78619f81056e48624c0825d159f5954d95 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 20943a1c342a8bbfea6671c619f90a5588e67674bd47ba4f6e030c6c7d671153 [INFO] running `Command { std: "docker" "start" "-a" "20943a1c342a8bbfea6671c619f90a5588e67674bd47ba4f6e030c6c7d671153", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling cluatoi v0.2.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:84:23 [INFO] [stdout] | [INFO] [stdout] 84 | pub type cluAtoi = Atoi; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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] 84 | pub type cluAtoi = dyn Atoi; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.34s [INFO] running `Command { std: "docker" "inspect" "20943a1c342a8bbfea6671c619f90a5588e67674bd47ba4f6e030c6c7d671153", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "20943a1c342a8bbfea6671c619f90a5588e67674bd47ba4f6e030c6c7d671153", kill_on_drop: false }` [INFO] [stdout] 20943a1c342a8bbfea6671c619f90a5588e67674bd47ba4f6e030c6c7d671153 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7095e8f4114f381b04360839aa463da4605e4971d093d736bd8e10a23df2a3c4 [INFO] running `Command { std: "docker" "start" "-a" "7095e8f4114f381b04360839aa463da4605e4971d093d736bd8e10a23df2a3c4", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:84:23 [INFO] [stdout] | [INFO] [stdout] 84 | pub type cluAtoi = Atoi; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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] 84 | pub type cluAtoi = dyn Atoi; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling cluatoi v0.2.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:84:23 [INFO] [stdout] | [INFO] [stdout] 84 | pub type cluAtoi = Atoi; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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] 84 | pub type cluAtoi = dyn Atoi; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.72s [INFO] running `Command { std: "docker" "inspect" "7095e8f4114f381b04360839aa463da4605e4971d093d736bd8e10a23df2a3c4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7095e8f4114f381b04360839aa463da4605e4971d093d736bd8e10a23df2a3c4", kill_on_drop: false }` [INFO] [stdout] 7095e8f4114f381b04360839aa463da4605e4971d093d736bd8e10a23df2a3c4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 49c2dd6e021f99cb08cb145aae1f8db2f0c50dfd2124414dde2a1876845ae2e8 [INFO] running `Command { std: "docker" "start" "-a" "49c2dd6e021f99cb08cb145aae1f8db2f0c50dfd2124414dde2a1876845ae2e8", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/lib.rs:84:23 [INFO] [stderr] | [INFO] [stderr] 84 | pub type cluAtoi = Atoi; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 84 | pub type cluAtoi = dyn Atoi; [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: `cluatoi` (lib) generated 1 warning (run `cargo fix --lib -p cluatoi` to apply 1 suggestion) [INFO] [stderr] warning: `cluatoi` (lib test) generated 1 warning (1 duplicate) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/cluatoi-43da87f5a3dd26f3) [INFO] [stdout] [INFO] [stdout] running 7 tests [INFO] [stdout] test tests::empty_num ... ok [INFO] [stdout] test tests::atoi_stop ... ok [INFO] [stdout] test tests::unsigned_value ... ok [INFO] [stdout] test tests::overflow ... ok [INFO] [stdout] test tests::atoi_iter_stop ... ok [INFO] [stdout] test tests::unk_value ... ok [INFO] [stderr] Doc-tests cluatoi [INFO] [stdout] test tests::signed_value ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 12 tests [INFO] [stdout] test src/lib.rs - Atoi::atoi_stop (line 127) ... FAILED [INFO] [stdout] test src/lib.rs - AtoiErr::Overflow (line 330) ... FAILED [INFO] [stdout] test src/lib.rs - AtoiErr::ByteUnk (line 340) ... FAILED [INFO] [stdout] test src/lib.rs - Atoi::atoi_iter_stop (line 198) ... FAILED [INFO] [stdout] test src/lib.rs - Atoi::atoi_iter_stop (line 215) ... FAILED [INFO] [stdout] test src/lib.rs - Atoi::atoi_iter_wait_stop (line 240) ... FAILED [INFO] [stdout] test src/lib.rs - Atoi::atoi_wait_stop (line 152) ... FAILED [INFO] [stdout] test src/lib.rs - Atoi::atoi_iter (line 179) ... FAILED [INFO] [stdout] test src/lib.rs - Atoi::atoi_stop (line 107) ... FAILED [INFO] [stdout] test src/lib.rs - (line 49) ... ok [INFO] [stdout] test src/lib.rs - Atoi::atoi (line 90) ... ok [INFO] [stdout] test src/lib.rs - (line 31) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - Atoi::atoi_stop (line 127) stdout ---- [INFO] [stdout] error[E0599]: no function or associated item named `atoi_stop` found for type `usize` in the current scope [INFO] [stdout] --> src/lib.rs:135:26 [INFO] [stdout] | [INFO] [stdout] 9 | if let Ok(num) = usize::atoi_stop(&mut array_iter, b'~') { [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `usize` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - AtoiErr::Overflow (line 330) stdout ---- [INFO] [stdout] error[E0599]: no function or associated item named `atoi` found for type `u8` in the current scope [INFO] [stdout] --> src/lib.rs:331:16 [INFO] [stdout] | [INFO] [stdout] 3 | assert_eq!(u8::atoi(b"256"), Result::Err(AtoiErr::Overflow)); [INFO] [stdout] | ^^^^ function or associated item not found in `u8` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AtoiErr` [INFO] [stdout] --> src/lib.rs:331:42 [INFO] [stdout] | [INFO] [stdout] 3 | assert_eq!(u8::atoi(b"256"), Result::Err(AtoiErr::Overflow)); [INFO] [stdout] | ^^^^^^^ use of undeclared type `AtoiErr` [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `atoi` found for type `u16` in the current scope [INFO] [stdout] --> src/lib.rs:332:17 [INFO] [stdout] | [INFO] [stdout] 4 | assert_eq!(u16::atoi(b"65536"), Result::Err(AtoiErr::Overflow)); [INFO] [stdout] | ^^^^ function or associated item not found in `u16` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AtoiErr` [INFO] [stdout] --> src/lib.rs:332:45 [INFO] [stdout] | [INFO] [stdout] 4 | assert_eq!(u16::atoi(b"65536"), Result::Err(AtoiErr::Overflow)); [INFO] [stdout] | ^^^^^^^ use of undeclared type `AtoiErr` [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `atoi` found for type `u32` in the current scope [INFO] [stdout] --> src/lib.rs:333:17 [INFO] [stdout] | [INFO] [stdout] 5 | assert_eq!(u32::atoi(b"4294967296"), Result::Err(AtoiErr::Overflow)); [INFO] [stdout] | ^^^^ function or associated item not found in `u32` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AtoiErr` [INFO] [stdout] --> src/lib.rs:333:50 [INFO] [stdout] | [INFO] [stdout] 5 | assert_eq!(u32::atoi(b"4294967296"), Result::Err(AtoiErr::Overflow)); [INFO] [stdout] | ^^^^^^^ use of undeclared type `AtoiErr` [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `atoi` found for type `u64` in the current scope [INFO] [stdout] --> src/lib.rs:334:17 [INFO] [stdout] | [INFO] [stdout] 6 | assert_eq!(u64::atoi(b"18446744073709551616"), Result::Err(AtoiErr::Overflow)); [INFO] [stdout] | ^^^^ function or associated item not found in `u64` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AtoiErr` [INFO] [stdout] --> src/lib.rs:334:60 [INFO] [stdout] | [INFO] [stdout] 6 | assert_eq!(u64::atoi(b"18446744073709551616"), Result::Err(AtoiErr::Overflow)); [INFO] [stdout] | ^^^^^^^ use of undeclared type `AtoiErr` [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - AtoiErr::ByteUnk (line 340) stdout ---- [INFO] [stdout] error[E0599]: no function or associated item named `atoi` found for type `u8` in the current scope [INFO] [stdout] --> src/lib.rs:341:16 [INFO] [stdout] | [INFO] [stdout] 3 | assert_eq!(u8::atoi(b"-128"), Result::Err(AtoiErr::ByteUnk(b'-'))); [INFO] [stdout] | ^^^^ function or associated item not found in `u8` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AtoiErr` [INFO] [stdout] --> src/lib.rs:341:43 [INFO] [stdout] | [INFO] [stdout] 3 | assert_eq!(u8::atoi(b"-128"), Result::Err(AtoiErr::ByteUnk(b'-'))); [INFO] [stdout] | ^^^^^^^ use of undeclared type `AtoiErr` [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `atoi` found for type `u16` in the current scope [INFO] [stdout] --> src/lib.rs:342:17 [INFO] [stdout] | [INFO] [stdout] 4 | assert_eq!(u16::atoi(b"-128"), Result::Err(AtoiErr::ByteUnk(b'-'))); [INFO] [stdout] | ^^^^ function or associated item not found in `u16` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AtoiErr` [INFO] [stdout] --> src/lib.rs:342:44 [INFO] [stdout] | [INFO] [stdout] 4 | assert_eq!(u16::atoi(b"-128"), Result::Err(AtoiErr::ByteUnk(b'-'))); [INFO] [stdout] | ^^^^^^^ use of undeclared type `AtoiErr` [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `atoi` found for type `u32` in the current scope [INFO] [stdout] --> src/lib.rs:343:17 [INFO] [stdout] | [INFO] [stdout] 5 | assert_eq!(u32::atoi(b"-128"), Result::Err(AtoiErr::ByteUnk(b'-'))); [INFO] [stdout] | ^^^^ function or associated item not found in `u32` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AtoiErr` [INFO] [stdout] --> src/lib.rs:343:44 [INFO] [stdout] | [INFO] [stdout] 5 | assert_eq!(u32::atoi(b"-128"), Result::Err(AtoiErr::ByteUnk(b'-'))); [INFO] [stdout] | ^^^^^^^ use of undeclared type `AtoiErr` [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `atoi` found for type `u64` in the current scope [INFO] [stdout] --> src/lib.rs:344:17 [INFO] [stdout] | [INFO] [stdout] 6 | assert_eq!(u64::atoi(b"-128"), Result::Err(AtoiErr::ByteUnk(b'-'))); [INFO] [stdout] | ^^^^ function or associated item not found in `u64` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AtoiErr` [INFO] [stdout] --> src/lib.rs:344:44 [INFO] [stdout] | [INFO] [stdout] 6 | assert_eq!(u64::atoi(b"-128"), Result::Err(AtoiErr::ByteUnk(b'-'))); [INFO] [stdout] | ^^^^^^^ use of undeclared type `AtoiErr` [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `atoi` found for type `u8` in the current scope [INFO] [stdout] --> src/lib.rs:346:16 [INFO] [stdout] | [INFO] [stdout] 8 | assert_eq!(u8::atoi(b"128U"), Result::Err(AtoiErr::ByteUnk(b'U'))); [INFO] [stdout] | ^^^^ function or associated item not found in `u8` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AtoiErr` [INFO] [stdout] --> src/lib.rs:346:43 [INFO] [stdout] | [INFO] [stdout] 8 | assert_eq!(u8::atoi(b"128U"), Result::Err(AtoiErr::ByteUnk(b'U'))); [INFO] [stdout] | ^^^^^^^ use of undeclared type `AtoiErr` [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `atoi` found for type `u16` in the current scope [INFO] [stdout] --> src/lib.rs:347:17 [INFO] [stdout] | [INFO] [stdout] 9 | assert_eq!(u16::atoi(b"128L"), Result::Err(AtoiErr::ByteUnk(b'L'))); [INFO] [stdout] | ^^^^ function or associated item not found in `u16` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AtoiErr` [INFO] [stdout] --> src/lib.rs:347:44 [INFO] [stdout] | [INFO] [stdout] 9 | assert_eq!(u16::atoi(b"128L"), Result::Err(AtoiErr::ByteUnk(b'L'))); [INFO] [stdout] | ^^^^^^^ use of undeclared type `AtoiErr` [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `atoi` found for type `u32` in the current scope [INFO] [stdout] --> src/lib.rs:348:17 [INFO] [stdout] | [INFO] [stdout] 10 | assert_eq!(u32::atoi(b"128I"), Result::Err(AtoiErr::ByteUnk(b'I'))); [INFO] [stdout] | ^^^^ function or associated item not found in `u32` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AtoiErr` [INFO] [stdout] --> src/lib.rs:348:44 [INFO] [stdout] | [INFO] [stdout] 10 | assert_eq!(u32::atoi(b"128I"), Result::Err(AtoiErr::ByteUnk(b'I'))); [INFO] [stdout] | ^^^^^^^ use of undeclared type `AtoiErr` [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `atoi` found for type `u64` in the current scope [INFO] [stdout] --> src/lib.rs:349:17 [INFO] [stdout] | [INFO] [stdout] 11 | assert_eq!(u64::atoi(b"128N"), Result::Err(AtoiErr::ByteUnk(b'N'))); [INFO] [stdout] | ^^^^ function or associated item not found in `u64` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AtoiErr` [INFO] [stdout] --> src/lib.rs:349:44 [INFO] [stdout] | [INFO] [stdout] 11 | assert_eq!(u64::atoi(b"128N"), Result::Err(AtoiErr::ByteUnk(b'N'))); [INFO] [stdout] | ^^^^^^^ use of undeclared type `AtoiErr` [INFO] [stdout] [INFO] [stdout] error: aborting due to 16 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Atoi::atoi_iter_stop (line 198) stdout ---- [INFO] [stdout] error[E0599]: no function or associated item named `atoi_iter_stop` found for type `isize` in the current scope [INFO] [stdout] --> src/lib.rs:205:26 [INFO] [stdout] | [INFO] [stdout] 8 | if let Ok(num) = isize::atoi_iter_stop(&mut array_iter, b'~') { [INFO] [stdout] | ^^^^^^^^^^^^^^ function or associated item not found in `isize` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Atoi::atoi_iter_stop (line 215) stdout ---- [INFO] [stdout] error[E0599]: no function or associated item named `atoi_iter_stop` found for type `usize` in the current scope [INFO] [stdout] --> src/lib.rs:223:26 [INFO] [stdout] | [INFO] [stdout] 9 | if let Ok(num) = usize::atoi_iter_stop(&mut array_iter, b'~') { [INFO] [stdout] | ^^^^^^^^^^^^^^ function or associated item not found in `usize` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Atoi::atoi_iter_wait_stop (line 240) stdout ---- [INFO] [stdout] error[E0599]: no function or associated item named `atoi_iter_wait_stop` found for type `usize` in the current scope [INFO] [stdout] --> src/lib.rs:248:26 [INFO] [stdout] | [INFO] [stdout] 9 | if let Ok(num) = usize::atoi_iter_wait_stop(&mut array_iter, b'~') { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ function or associated item not found in `usize` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Atoi::atoi_wait_stop (line 152) stdout ---- [INFO] [stdout] error[E0599]: no function or associated item named `atoi_wait_stop` found for type `usize` in the current scope [INFO] [stdout] --> src/lib.rs:160:26 [INFO] [stdout] | [INFO] [stdout] 9 | if let Ok(num) = usize::atoi_wait_stop(&mut array_iter, b'~') { [INFO] [stdout] | ^^^^^^^^^^^^^^ function or associated item not found in `usize` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Atoi::atoi_iter (line 179) stdout ---- [INFO] [stdout] error[E0599]: no function or associated item named `atoi_iter` found for type `isize` in the current scope [INFO] [stdout] --> src/lib.rs:186:26 [INFO] [stdout] | [INFO] [stdout] 8 | if let Ok(num) = isize::atoi_iter(&mut array_iter) { [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `isize` [INFO] [stdout] | [INFO] [stdout] help: there is a method `to_be` with a similar name, but with different arguments [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/num/mod.rs:420:5 [INFO] [stdout] = note: this error originates in the macro `int_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Atoi::atoi_stop (line 107) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:117:36 [INFO] [stdout] | [INFO] [stdout] 12 | if let Ok(num) = isize::atoi_stop(&mut array_iter, b'~') { [INFO] [stdout] | ---------------- ^^^^^^^^^^^^^^^ expected `&[u8]`, found `&mut Iter<'_, u8>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&[u8]` [INFO] [stdout] found mutable reference `&mut std::slice::Iter<'_, u8>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:146:5 [INFO] [stdout] | [INFO] [stdout] 146 | fn atoi_stop<'a>(array: &'a [u8], stop: u8) -> AtoiResult { [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 E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - Atoi::atoi_iter (line 179) [INFO] [stdout] src/lib.rs - Atoi::atoi_iter_stop (line 198) [INFO] [stdout] src/lib.rs - Atoi::atoi_iter_stop (line 215) [INFO] [stdout] src/lib.rs - Atoi::atoi_iter_wait_stop (line 240) [INFO] [stdout] src/lib.rs - Atoi::atoi_stop (line 107) [INFO] [stdout] src/lib.rs - Atoi::atoi_stop (line 127) [INFO] [stdout] src/lib.rs - Atoi::atoi_wait_stop (line 152) [INFO] [stdout] src/lib.rs - AtoiErr::ByteUnk (line 340) [INFO] [stdout] src/lib.rs - AtoiErr::Overflow (line 330) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 3 passed; 9 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.70s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "49c2dd6e021f99cb08cb145aae1f8db2f0c50dfd2124414dde2a1876845ae2e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "49c2dd6e021f99cb08cb145aae1f8db2f0c50dfd2124414dde2a1876845ae2e8", kill_on_drop: false }` [INFO] [stdout] 49c2dd6e021f99cb08cb145aae1f8db2f0c50dfd2124414dde2a1876845ae2e8