[INFO] cloning repository https://github.com/t4rrxnce/supplement5_p2_1 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/t4rrxnce/supplement5_p2_1" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ft4rrxnce%2Fsupplement5_p2_1", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ft4rrxnce%2Fsupplement5_p2_1'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1f59888e255a46380b0cdd5148bd26f9ee7910c7 [INFO] checking t4rrxnce/supplement5_p2_1 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ft4rrxnce%2Fsupplement5_p2_1" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/t4rrxnce/supplement5_p2_1 [INFO] finished tweaking git repo https://github.com/t4rrxnce/supplement5_p2_1 [INFO] tweaked toml for git repo https://github.com/t4rrxnce/supplement5_p2_1 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/t4rrxnce/supplement5_p2_1 on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/t4rrxnce/supplement5_p2_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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ce3396b97ffee511ecd2b0c1cde4728f1ecfcda25d39741a7b0935d726d5bf1e [INFO] running `Command { std: "docker" "start" "-a" "ce3396b97ffee511ecd2b0c1cde4728f1ecfcda25d39741a7b0935d726d5bf1e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ce3396b97ffee511ecd2b0c1cde4728f1ecfcda25d39741a7b0935d726d5bf1e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ce3396b97ffee511ecd2b0c1cde4728f1ecfcda25d39741a7b0935d726d5bf1e", kill_on_drop: false }` [INFO] [stdout] ce3396b97ffee511ecd2b0c1cde4728f1ecfcda25d39741a7b0935d726d5bf1e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a87fd6ce259eda1fe4dcb64ab8763a3be3206dc1a536e1a5149f342a3e867eb9 [INFO] running `Command { std: "docker" "start" "-a" "a87fd6ce259eda1fe4dcb64ab8763a3be3206dc1a536e1a5149f342a3e867eb9", kill_on_drop: false }` [INFO] [stderr] Checking supplement5_p2_1 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:64:20 [INFO] [stdout] | [INFO] [stdout] 64 | bytes[i] = *ptr.add(i); [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/lib.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | pub unsafe fn float_to_bytes(num: f32) -> [u8; 4] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::const_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:64:21 [INFO] [stdout] | [INFO] [stdout] 64 | bytes[i] = *ptr.add(i); [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] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:64:20 [INFO] [stdout] | [INFO] [stdout] 64 | bytes[i] = *ptr.add(i); [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/lib.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | pub unsafe fn float_to_bytes(num: f32) -> [u8; 4] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::const_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:64:21 [INFO] [stdout] | [INFO] [stdout] 64 | bytes[i] = *ptr.add(i); [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] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `call_function_on_bool` in this scope [INFO] [stdout] --> tests/lib_tests.rs:51:18 [INFO] [stdout] | [INFO] [stdout] 51 | let result = call_function_on_bool(|x| !x, num); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn call_function_on_int(f: fn(i32) -> i32, num: i32) -> i32 { [INFO] [stdout] | --------------------------------------------------------------- similarly named function `call_function_on_int` defined here [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 51 - let result = call_function_on_bool(|x| !x, num); [INFO] [stdout] 51 + let result = call_function_on_int(|x| !x, num); [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use supplement5_p2_1::call_function_on_bool; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> tests/lib_tests.rs:42:20 [INFO] [stdout] | [INFO] [stdout] 42 | bytes[i] = *ptr.add(i); [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] --> tests/lib_tests.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | pub unsafe fn float_to_bytes(num: f32) -> [u8; 4] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::const_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> tests/lib_tests.rs:42:21 [INFO] [stdout] | [INFO] [stdout] 42 | bytes[i] = *ptr.add(i); [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] Some errors have detailed explanations: E0133, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] error: could not compile `supplement5_p2_1` (test "lib_tests") due to 1 previous error; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "a87fd6ce259eda1fe4dcb64ab8763a3be3206dc1a536e1a5149f342a3e867eb9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a87fd6ce259eda1fe4dcb64ab8763a3be3206dc1a536e1a5149f342a3e867eb9", kill_on_drop: false }` [INFO] [stdout] a87fd6ce259eda1fe4dcb64ab8763a3be3206dc1a536e1a5149f342a3e867eb9