[INFO] fetching crate tesap-std 0.2.1... [INFO] testing tesap-std-0.2.1 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate tesap-std 0.2.1 into /workspace/builds/worker-1-tc2/source [INFO] started tweaking crates.io crate tesap-std 0.2.1 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate tesap-std 0.2.1 [INFO] tweaked toml for crates.io crate tesap-std 0.2.1 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate tesap-std 0.2.1 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate tesap-std 0.2.1 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" "+b83b707f97d809763b7861afa7638871f3339a33" "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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 31a20708facb6a5150f4cc745f0058527e83af62cf1645f8395249926f251b06 [INFO] running `Command { std: "docker" "start" "-a" "31a20708facb6a5150f4cc745f0058527e83af62cf1645f8395249926f251b06", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "31a20708facb6a5150f4cc745f0058527e83af62cf1645f8395249926f251b06", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "31a20708facb6a5150f4cc745f0058527e83af62cf1645f8395249926f251b06", kill_on_drop: false }` [INFO] [stdout] 31a20708facb6a5150f4cc745f0058527e83af62cf1645f8395249926f251b06 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d021d1acdac00e78e4aa45f8593d68d2ebb65d743fbccc8ad6f4767b1d539be4 [INFO] running `Command { std: "docker" "start" "-a" "d021d1acdac00e78e4aa45f8593d68d2ebb65d743fbccc8ad6f4767b1d539be4", kill_on_drop: false }` [INFO] [stderr] Compiling assert-panic v1.0.1 [INFO] [stderr] Compiling all_asserts v2.3.3 [INFO] [stderr] Compiling tesap-std v0.2.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `array_write_drop` [INFO] [stdout] --> src/vector.rs:9:93 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::mem_utils::{array_alloc, array_realloc, array_dealloc, array_init, array_deinit, array_write_drop, array_write_no_drop}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/vector.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | if (len == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 28 - if (len == 0) { [INFO] [stdout] 28 + if len == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/vector.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | let mut c = Self::new_empty(size); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/vector.rs:290:9 [INFO] [stdout] | [INFO] [stdout] 290 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/vector.rs:283:13 [INFO] [stdout] | [INFO] [stdout] 283 | fn from(mut from: Vec) -> Self { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::alloc::dealloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/mem_utils.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | / alloc::dealloc( [INFO] [stdout] 29 | | ptr as *mut u8, [INFO] [stdout] 30 | | layout [INFO] [stdout] 31 | | ) [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mem_utils.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | pub unsafe fn array_dealloc(ptr: *mut T, size: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::write` is unsafe and requires unsafe block [INFO] [stdout] --> src/mem_utils.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | ptr::write(ptr.add(i), init_value.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mem_utils.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | pub unsafe fn array_init(ptr: *mut T, size: usize, init_value: &T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/mem_utils.rs:38:20 [INFO] [stdout] | [INFO] [stdout] 38 | ptr::write(ptr.add(i), init_value.clone()); [INFO] [stdout] | ^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::drop_in_place` is unsafe and requires unsafe block [INFO] [stdout] --> src/mem_utils.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | ptr::drop_in_place(ptr.add(i) as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mem_utils.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 43 | pub unsafe fn array_deinit(ptr: *mut T, size: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/mem_utils.rs:46:28 [INFO] [stdout] | [INFO] [stdout] 46 | ptr::drop_in_place(ptr.add(i) as *mut T); [INFO] [stdout] | ^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::write` is unsafe and requires unsafe block [INFO] [stdout] --> src/mem_utils.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | ptr.add(index).write(value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mem_utils.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub unsafe fn array_write_no_drop(ptr: *mut T, index: usize, value: T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/mem_utils.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | ptr.add(index).write(value); [INFO] [stdout] | ^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mem_utils.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | *ptr.add(index) = value [INFO] [stdout] | ^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mem_utils.rs:74:1 [INFO] [stdout] | [INFO] [stdout] 74 | pub unsafe fn array_write_drop(ptr: *mut T, index: usize, value: T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/mem_utils.rs:75:6 [INFO] [stdout] | [INFO] [stdout] 75 | *ptr.add(index) = value [INFO] [stdout] | ^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `array_write_drop` is never used [INFO] [stdout] --> src/mem_utils.rs:74:15 [INFO] [stdout] | [INFO] [stdout] 74 | pub unsafe fn array_write_drop(ptr: *mut T, index: usize, value: T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/vector.rs:229:13 [INFO] [stdout] | [INFO] [stdout] 229 | write!(f, "{:}", val); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 229 | let _ = write!(f, "{:}", val); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.44s [INFO] running `Command { std: "docker" "inspect" "d021d1acdac00e78e4aa45f8593d68d2ebb65d743fbccc8ad6f4767b1d539be4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d021d1acdac00e78e4aa45f8593d68d2ebb65d743fbccc8ad6f4767b1d539be4", kill_on_drop: false }` [INFO] [stdout] d021d1acdac00e78e4aa45f8593d68d2ebb65d743fbccc8ad6f4767b1d539be4 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5be0888fad21eda8df85449840aaa72a208b88ee75e670914ed2b9cf76cfafef [INFO] running `Command { std: "docker" "start" "-a" "5be0888fad21eda8df85449840aaa72a208b88ee75e670914ed2b9cf76cfafef", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `array_write_drop` [INFO] [stdout] --> src/vector.rs:9:93 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::mem_utils::{array_alloc, array_realloc, array_dealloc, array_init, array_deinit, array_write_drop, array_write_no_drop}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling tesap-std v0.2.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/vector.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | if (len == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 28 - if (len == 0) { [INFO] [stdout] 28 + if len == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/vector.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | let mut c = Self::new_empty(size); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/vector.rs:290:9 [INFO] [stdout] | [INFO] [stdout] 290 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/vector.rs:283:13 [INFO] [stdout] | [INFO] [stdout] 283 | fn from(mut from: Vec) -> Self { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::alloc::dealloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/mem_utils.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | / alloc::dealloc( [INFO] [stdout] 29 | | ptr as *mut u8, [INFO] [stdout] 30 | | layout [INFO] [stdout] 31 | | ) [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mem_utils.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | pub unsafe fn array_dealloc(ptr: *mut T, size: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::write` is unsafe and requires unsafe block [INFO] [stdout] --> src/mem_utils.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | ptr::write(ptr.add(i), init_value.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mem_utils.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | pub unsafe fn array_init(ptr: *mut T, size: usize, init_value: &T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/mem_utils.rs:38:20 [INFO] [stdout] | [INFO] [stdout] 38 | ptr::write(ptr.add(i), init_value.clone()); [INFO] [stdout] | ^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::drop_in_place` is unsafe and requires unsafe block [INFO] [stdout] --> src/mem_utils.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | ptr::drop_in_place(ptr.add(i) as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mem_utils.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 43 | pub unsafe fn array_deinit(ptr: *mut T, size: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/mem_utils.rs:46:28 [INFO] [stdout] | [INFO] [stdout] 46 | ptr::drop_in_place(ptr.add(i) as *mut T); [INFO] [stdout] | ^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::write` is unsafe and requires unsafe block [INFO] [stdout] --> src/mem_utils.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | ptr.add(index).write(value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mem_utils.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub unsafe fn array_write_no_drop(ptr: *mut T, index: usize, value: T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/mem_utils.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | ptr.add(index).write(value); [INFO] [stdout] | ^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mem_utils.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | *ptr.add(index) = value [INFO] [stdout] | ^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mem_utils.rs:74:1 [INFO] [stdout] | [INFO] [stdout] 74 | pub unsafe fn array_write_drop(ptr: *mut T, index: usize, value: T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/mem_utils.rs:75:6 [INFO] [stdout] | [INFO] [stdout] 75 | *ptr.add(index) = value [INFO] [stdout] | ^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `array_write_drop` is never used [INFO] [stdout] --> src/mem_utils.rs:74:15 [INFO] [stdout] | [INFO] [stdout] 74 | pub unsafe fn array_write_drop(ptr: *mut T, index: usize, value: T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/vector.rs:229:13 [INFO] [stdout] | [INFO] [stdout] 229 | write!(f, "{:}", val); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 229 | let _ = write!(f, "{:}", val); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stdout] warning: unused import: `Bin` [INFO] [stdout] --> tests/test_bytes.rs:13:46 [INFO] [stdout] | [INFO] [stdout] 13 | use tesap_std::bytes::{Bins, Bytes, Hex, Bin, DebugBytes}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `test_parametrized` [INFO] [stdout] --> tests/test_vector.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | macro_rules! test_parametrized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `array_write_drop` [INFO] [stdout] --> src/vector.rs:9:93 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::mem_utils::{array_alloc, array_realloc, array_dealloc, array_init, array_deinit, array_write_drop, array_write_no_drop}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/vector.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | if (len == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 28 - if (len == 0) { [INFO] [stdout] 28 + if len == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test_vector.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | let mut v = Vector::::new_init(3, &10); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> tests/test_vector.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | let mut v = Vector::::new_init(3, &s); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test_vector.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let mut s = String::from("asdf"); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test_vector.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let mut v = Vector::::new_init(3, &s); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test_vector.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | let mut v: Vector = Vector::new(0); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test_vector.rs:77:13 [INFO] [stdout] | [INFO] [stdout] 77 | let mut s = String::from("asdf"); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test_vector.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | let mut c = Vector::::new_init(3, &s); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test_vector.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 84 | let mut s = String::from("asdf"); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test_vector.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | let mut c = Vector::::new_init(3, &s); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test_vector.rs:100:13 [INFO] [stdout] | [INFO] [stdout] 100 | let mut s = String::from("asdf"); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test_vector.rs:113:13 [INFO] [stdout] | [INFO] [stdout] 113 | let mut s = String::from("asdf"); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test_vector.rs:129:13 [INFO] [stdout] | [INFO] [stdout] 129 | let mut v = Vector::::new_init(3, &10); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v_view` [INFO] [stdout] --> tests/test_vector.rs:199:17 [INFO] [stdout] | [INFO] [stdout] 199 | let mut v_view: Vector = Vector { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_v_view` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test_vector.rs:184:13 [INFO] [stdout] | [INFO] [stdout] 184 | let mut c: Vector = Vector { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test_vector.rs:199:13 [INFO] [stdout] | [INFO] [stdout] 199 | let mut v_view: Vector = Vector { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test_vector.rs:244:13 [INFO] [stdout] | [INFO] [stdout] 244 | let mut c: Vector = Vector::from_slice_clone(&["x".to_string(), "y".to_string(), "z".to_string()]); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/vector.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | let mut c = Self::new_empty(size); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/vector.rs:290:9 [INFO] [stdout] | [INFO] [stdout] 290 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/vector.rs:283:13 [INFO] [stdout] | [INFO] [stdout] 283 | fn from(mut from: Vec) -> Self { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::alloc::dealloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/mem_utils.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | / alloc::dealloc( [INFO] [stdout] 29 | | ptr as *mut u8, [INFO] [stdout] 30 | | layout [INFO] [stdout] 31 | | ) [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mem_utils.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | pub unsafe fn array_dealloc(ptr: *mut T, size: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::write` is unsafe and requires unsafe block [INFO] [stdout] --> src/mem_utils.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | ptr::write(ptr.add(i), init_value.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mem_utils.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | pub unsafe fn array_init(ptr: *mut T, size: usize, init_value: &T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/mem_utils.rs:38:20 [INFO] [stdout] | [INFO] [stdout] 38 | ptr::write(ptr.add(i), init_value.clone()); [INFO] [stdout] | ^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::drop_in_place` is unsafe and requires unsafe block [INFO] [stdout] --> src/mem_utils.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | ptr::drop_in_place(ptr.add(i) as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mem_utils.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 43 | pub unsafe fn array_deinit(ptr: *mut T, size: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/mem_utils.rs:46:28 [INFO] [stdout] | [INFO] [stdout] 46 | ptr::drop_in_place(ptr.add(i) as *mut T); [INFO] [stdout] | ^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::write` is unsafe and requires unsafe block [INFO] [stdout] --> src/mem_utils.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | ptr.add(index).write(value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mem_utils.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub unsafe fn array_write_no_drop(ptr: *mut T, index: usize, value: T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/mem_utils.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | ptr.add(index).write(value); [INFO] [stdout] | ^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mem_utils.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | *ptr.add(index) = value [INFO] [stdout] | ^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mem_utils.rs:74:1 [INFO] [stdout] | [INFO] [stdout] 74 | pub unsafe fn array_write_drop(ptr: *mut T, index: usize, value: T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/mem_utils.rs:75:6 [INFO] [stdout] | [INFO] [stdout] 75 | *ptr.add(index) = value [INFO] [stdout] | ^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `array_write_drop` is never used [INFO] [stdout] --> src/mem_utils.rs:74:15 [INFO] [stdout] | [INFO] [stdout] 74 | pub unsafe fn array_write_drop(ptr: *mut T, index: usize, value: T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/vector.rs:229:13 [INFO] [stdout] | [INFO] [stdout] 229 | write!(f, "{:}", val); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 229 | let _ = write!(f, "{:}", val); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.85s [INFO] running `Command { std: "docker" "inspect" "5be0888fad21eda8df85449840aaa72a208b88ee75e670914ed2b9cf76cfafef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5be0888fad21eda8df85449840aaa72a208b88ee75e670914ed2b9cf76cfafef", kill_on_drop: false }` [INFO] [stdout] 5be0888fad21eda8df85449840aaa72a208b88ee75e670914ed2b9cf76cfafef [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 1ed8279d4a3ad188d1fe045ac18c2916917402437a4bbbc7d58cf067161b52be [INFO] running `Command { std: "docker" "start" "-a" "1ed8279d4a3ad188d1fe045ac18c2916917402437a4bbbc7d58cf067161b52be", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `array_write_drop` [INFO] [stderr] --> src/vector.rs:9:93 [INFO] [stderr] | [INFO] [stderr] 9 | use crate::mem_utils::{array_alloc, array_realloc, array_dealloc, array_init, array_deinit, array_write_drop, array_write_no_drop}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/vector.rs:28:12 [INFO] [stderr] | [INFO] [stderr] 28 | if (len == 0) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 28 - if (len == 0) { [INFO] [stderr] 28 + if len == 0 { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/vector.rs:52:13 [INFO] [stderr] | [INFO] [stderr] 52 | let mut c = Self::new_empty(size); [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/vector.rs:290:9 [INFO] [stderr] | [INFO] [stderr] 290 | unsafe { [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/vector.rs:283:13 [INFO] [stderr] | [INFO] [stderr] 283 | fn from(mut from: Vec) -> Self { [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `std::alloc::dealloc` is unsafe and requires unsafe block [INFO] [stderr] --> src/mem_utils.rs:28:5 [INFO] [stderr] | [INFO] [stderr] 28 | / alloc::dealloc( [INFO] [stderr] 29 | | ptr as *mut u8, [INFO] [stderr] 30 | | layout [INFO] [stderr] 31 | | ) [INFO] [stderr] | |_____^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/mem_utils.rs:25:1 [INFO] [stderr] | [INFO] [stderr] 25 | pub unsafe fn array_dealloc(ptr: *mut T, size: usize) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = note: `#[warn(unsafe_op_in_unsafe_fn)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `std::ptr::write` is unsafe and requires unsafe block [INFO] [stderr] --> src/mem_utils.rs:38:9 [INFO] [stderr] | [INFO] [stderr] 38 | ptr::write(ptr.add(i), init_value.clone()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/mem_utils.rs:35:1 [INFO] [stderr] | [INFO] [stderr] 35 | pub unsafe fn array_init(ptr: *mut T, size: usize, init_value: &T) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block [INFO] [stderr] --> src/mem_utils.rs:38:20 [INFO] [stderr] | [INFO] [stderr] 38 | ptr::write(ptr.add(i), init_value.clone()); [INFO] [stderr] | ^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `std::ptr::drop_in_place` is unsafe and requires unsafe block [INFO] [stderr] --> src/mem_utils.rs:46:9 [INFO] [stderr] | [INFO] [stderr] 46 | ptr::drop_in_place(ptr.add(i) as *mut T); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/mem_utils.rs:43:1 [INFO] [stderr] | [INFO] [stderr] 43 | pub unsafe fn array_deinit(ptr: *mut T, size: usize) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block [INFO] [stderr] --> src/mem_utils.rs:46:28 [INFO] [stderr] | [INFO] [stderr] 46 | ptr::drop_in_place(ptr.add(i) as *mut T); [INFO] [stderr] | ^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::write` is unsafe and requires unsafe block [INFO] [stderr] --> src/mem_utils.rs:70:5 [INFO] [stderr] | [INFO] [stderr] 70 | ptr.add(index).write(value); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/mem_utils.rs:68:1 [INFO] [stderr] | [INFO] [stderr] 68 | pub unsafe fn array_write_no_drop(ptr: *mut T, index: usize, value: T) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block [INFO] [stderr] --> src/mem_utils.rs:70:5 [INFO] [stderr] | [INFO] [stderr] 70 | ptr.add(index).write(value); [INFO] [stderr] | ^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stderr] --> src/mem_utils.rs:75:5 [INFO] [stderr] | [INFO] [stderr] 75 | *ptr.add(index) = value [INFO] [stderr] | ^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/mem_utils.rs:74:1 [INFO] [stderr] | [INFO] [stderr] 74 | pub unsafe fn array_write_drop(ptr: *mut T, index: usize, value: T) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block [INFO] [stderr] --> src/mem_utils.rs:75:6 [INFO] [stderr] | [INFO] [stderr] 75 | *ptr.add(index) = value [INFO] [stderr] | ^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning: function `array_write_drop` is never used [INFO] [stderr] --> src/mem_utils.rs:74:15 [INFO] [stderr] | [INFO] [stderr] 74 | pub unsafe fn array_write_drop(ptr: *mut T, index: usize, value: T) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/vector.rs:229:13 [INFO] [stderr] | [INFO] [stderr] 229 | write!(f, "{:}", val); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 229 | let _ = write!(f, "{:}", val); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0133`. [INFO] [stderr] warning: `tesap-std` (lib) generated 16 warnings (run `cargo fix --lib -p tesap-std` to apply 9 suggestions) [INFO] [stderr] warning: unused import: `Bin` [INFO] [stderr] --> tests/test_bytes.rs:13:46 [INFO] [stderr] | [INFO] [stderr] 13 | use tesap_std::bytes::{Bins, Bytes, Hex, Bin, DebugBytes}; [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused macro definition: `test_parametrized` [INFO] [stderr] --> tests/test_vector.rs:2:14 [INFO] [stderr] | [INFO] [stderr] 2 | macro_rules! test_parametrized { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_macros)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test_vector.rs:19:13 [INFO] [stderr] | [INFO] [stderr] 19 | let mut v = Vector::::new_init(3, &10); [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `v` [INFO] [stderr] --> tests/test_vector.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | let mut v = Vector::::new_init(3, &s); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test_vector.rs:26:13 [INFO] [stderr] | [INFO] [stderr] 26 | let mut s = String::from("asdf"); [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test_vector.rs:27:13 [INFO] [stderr] | [INFO] [stderr] 27 | let mut v = Vector::::new_init(3, &s); [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test_vector.rs:32:13 [INFO] [stderr] | [INFO] [stderr] 32 | let mut v: Vector = Vector::new(0); [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test_vector.rs:77:13 [INFO] [stderr] | [INFO] [stderr] 77 | let mut s = String::from("asdf"); [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test_vector.rs:78:13 [INFO] [stderr] | [INFO] [stderr] 78 | let mut c = Vector::::new_init(3, &s); [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test_vector.rs:84:13 [INFO] [stderr] | [INFO] [stderr] 84 | let mut s = String::from("asdf"); [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test_vector.rs:85:13 [INFO] [stderr] | [INFO] [stderr] 85 | let mut c = Vector::::new_init(3, &s); [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test_vector.rs:100:13 [INFO] [stderr] | [INFO] [stderr] 100 | let mut s = String::from("asdf"); [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test_vector.rs:113:13 [INFO] [stderr] | [INFO] [stderr] 113 | let mut s = String::from("asdf"); [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test_vector.rs:129:13 [INFO] [stderr] | [INFO] [stderr] 129 | let mut v = Vector::::new_init(3, &10); [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `v_view` [INFO] [stderr] --> tests/test_vector.rs:199:17 [INFO] [stderr] | [INFO] [stderr] 199 | let mut v_view: Vector = Vector { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_v_view` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test_vector.rs:184:13 [INFO] [stderr] | [INFO] [stderr] 184 | let mut c: Vector = Vector { [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test_vector.rs:199:13 [INFO] [stderr] | [INFO] [stderr] 199 | let mut v_view: Vector = Vector { [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test_vector.rs:244:13 [INFO] [stderr] | [INFO] [stderr] 244 | let mut c: Vector = Vector::from_slice_clone(&["x".to_string(), "y".to_string(), "z".to_string()]); [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: `tesap-std` (test "test_bytes") generated 1 warning (run `cargo fix --test "test_bytes"` to apply 1 suggestion) [INFO] [stderr] warning: `tesap-std` (test "test_vector") generated 17 warnings (run `cargo fix --test "test_vector"` to apply 14 suggestions) [INFO] [stderr] warning: `tesap-std` (lib test) generated 16 warnings (16 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/tesap_std-266d015fa246d6d8) [INFO] [stdout] [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] [stderr] Running tests/test_bytes.rs (/opt/rustwide/target/debug/deps/test_bytes-5b86636193214711) [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test tests::test_from_std_vec ... ok [INFO] [stdout] test tests::test_into_std_vec ... ok [INFO] [stdout] test tests::test_from_vec ... ok [INFO] [stdout] test tests::test_into_vec ... ok [INFO] [stdout] test tests::test_print ... ok [INFO] [stdout] test tests::test_compare_pairwise_s1 ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running tests/test_vector.rs (/opt/rustwide/target/debug/deps/test_vector-c8b13b1044615024) [INFO] [stdout] [INFO] [stdout] running 22 tests [INFO] [stdout] test tests::test_as_slice_operations ... ok [INFO] [stdout] test tests::test_as_slice_str ... ok [INFO] [stdout] test tests::test_debug ... ok [INFO] [stdout] test tests::test_as_slice ... ok [INFO] [stdout] test tests::test_deref_iter ... ok [INFO] [stdout] test tests::test_deref_join ... ok [INFO] [stdout] test tests::test_from_std_vec ... ok [INFO] [stdout] test tests::test_index_get ... ok [INFO] [stdout] test tests::test_index_get_mut_ref_set ... ok [INFO] [stdout] test tests::test_index_set ... ok [INFO] [stdout] test tests::test_into_std_vec ... ok [INFO] [stdout] test tests::test_new_empty ... ok [INFO] [stdout] test tests::test_new_init_clone_type ... ok [INFO] [stdout] test tests::test_push_multiple ... ok [INFO] [stdout] test tests::test_std_string ... ok [INFO] [stdout] test tests::test_vector_to_std_vec_from_raw_parts ... ok [INFO] [stdout] test tests::test_str ... ok [INFO] [stdout] test tests::test_push_empty ... ok [INFO] [stdout] test tests::test_new_init_trivial_type ... ok [INFO] [stdout] test tests::test_pop_till_empty ... ok [INFO] [stdout] test tests::test_deref ... ok [INFO] [stdout] test tests::test_index_out_of_bounds ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 22 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s [INFO] [stdout] [INFO] [stderr] Doc-tests tesap_std [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/vector.rs:28:12 [INFO] [stderr] | [INFO] [stderr] 28 | if (len == 0) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 28 - if (len == 0) { [INFO] [stderr] 28 + if len == 0 { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [INFO] [stdout] [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] running `Command { std: "docker" "inspect" "1ed8279d4a3ad188d1fe045ac18c2916917402437a4bbbc7d58cf067161b52be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1ed8279d4a3ad188d1fe045ac18c2916917402437a4bbbc7d58cf067161b52be", kill_on_drop: false }` [INFO] [stdout] 1ed8279d4a3ad188d1fe045ac18c2916917402437a4bbbc7d58cf067161b52be