[INFO] cloning repository https://github.com/Creativious/SharedMemory
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Creativious/SharedMemory" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCreativious%2FSharedMemory", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCreativious%2FSharedMemory'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] e88218194e65de19917f1b7902089212f2c32cde
[INFO] checking Creativious/SharedMemory against master#292be5c7c05138d753bbd4b30db7a3f1a5c914f7 for pr-148271
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCreativious%2FSharedMemory" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Creativious/SharedMemory
[INFO] finished tweaking git repo https://github.com/Creativious/SharedMemory
[INFO] tweaked toml for git repo https://github.com/Creativious/SharedMemory written to /workspace/builds/worker-2-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Creativious/SharedMemory on toolchain 292be5c7c05138d753bbd4b30db7a3f1a5c914f7
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+292be5c7c05138d753bbd4b30db7a3f1a5c914f7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Creativious/SharedMemory 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" "+292be5c7c05138d753bbd4b30db7a3f1a5c914f7" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+292be5c7c05138d753bbd4b30db7a3f1a5c914f7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 25f6d991b42d6c4fd798cd2833c8fa21e1712080bbeabff916dc1c2ca6f9c34d
[INFO] running `Command { std: "docker" "start" "-a" "25f6d991b42d6c4fd798cd2833c8fa21e1712080bbeabff916dc1c2ca6f9c34d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "25f6d991b42d6c4fd798cd2833c8fa21e1712080bbeabff916dc1c2ca6f9c34d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "25f6d991b42d6c4fd798cd2833c8fa21e1712080bbeabff916dc1c2ca6f9c34d", kill_on_drop: false }`
[INFO] [stdout] 25f6d991b42d6c4fd798cd2833c8fa21e1712080bbeabff916dc1c2ca6f9c34d
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+292be5c7c05138d753bbd4b30db7a3f1a5c914f7" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] dbb898385335a968a4fd0f2cef77ecc881dde89145c2b7043befe766b69c6bfb
[INFO] running `Command { std: "docker" "start" "-a" "dbb898385335a968a4fd0f2cef77ecc881dde89145c2b7043befe766b69c6bfb", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.151
[INFO] [stderr]    Compiling winapi v0.3.9
[INFO] [stderr]     Checking shared_memory v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::io::Error`
[INFO] [stdout]   --> src/lib.rs:10:9
[INFO] [stdout]    |
[INFO] [stdout] 10 |     use std::io::Error;
[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 import: `c_int`
[INFO] [stdout]   --> src/lib.rs:34:23
[INFO] [stdout]    |
[INFO] [stdout] 34 |     use libc::{off_t, c_int, c_void as lin_c_void, size_t, shm_open, mmap, PROT_READ, PROT_WRITE, MAP_SHARED, O_RDWR, O_CREAT, O_EXCL, cl...
[INFO] [stdout]    |                       ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:311:24
[INFO] [stdout]     |
[INFO] [stdout] 311 |                     if (!self.p_buf.is_null()) {
[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] 311 -                     if (!self.p_buf.is_null()) {
[INFO] [stdout] 311 +                     if !self.p_buf.is_null()  {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:314:24
[INFO] [stdout]     |
[INFO] [stdout] 314 |                     if (self.is_create) {
[INFO] [stdout]     |                        ^              ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 314 -                     if (self.is_create) {
[INFO] [stdout] 314 +                     if self.is_create  {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/lib.rs:124:27
[INFO] [stdout]     |
[INFO] [stdout] 124 |                 return Ok(t);
[INFO] [stdout]     |                        -- ^ expected `SharedMemory`, found `()`
[INFO] [stdout]     |                        |
[INFO] [stdout]     |                        arguments to this enum variant are incorrect
[INFO] [stdout]     |
[INFO] [stdout] help: the type constructed contains `()` due to the type of the argument passed
[INFO] [stdout]    --> src/lib.rs:124:24
[INFO] [stdout]     |
[INFO] [stdout] 124 |                 return Ok(t);
[INFO] [stdout]     |                        ^^^-^
[INFO] [stdout]     |                           |
[INFO] [stdout]     |                           this argument influences the type of `Ok`
[INFO] [stdout] note: tuple variant defined here
[INFO] [stdout]    --> /rustc/292be5c7c05138d753bbd4b30db7a3f1a5c914f7/library/core/src/result.rs:561:5
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `shared_memory` (lib) due to 1 previous error; 4 warnings emitted
[INFO] [stdout] warning: unused import: `std::io::Error`
[INFO] [stdout]   --> src/lib.rs:10:9
[INFO] [stdout]    |
[INFO] [stdout] 10 |     use std::io::Error;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: unused import: `c_int`
[INFO] [stdout]   --> src/lib.rs:34:23
[INFO] [stdout]    |
[INFO] [stdout] 34 |     use libc::{off_t, c_int, c_void as lin_c_void, size_t, shm_open, mmap, PROT_READ, PROT_WRITE, MAP_SHARED, O_RDWR, O_CREAT, O_EXCL, cl...
[INFO] [stdout]    |                       ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:311:24
[INFO] [stdout]     |
[INFO] [stdout] 311 |                     if (!self.p_buf.is_null()) {
[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] 311 -                     if (!self.p_buf.is_null()) {
[INFO] [stdout] 311 +                     if !self.p_buf.is_null()  {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:314:24
[INFO] [stdout]     |
[INFO] [stdout] 314 |                     if (self.is_create) {
[INFO] [stdout]     |                        ^              ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 314 -                     if (self.is_create) {
[INFO] [stdout] 314 +                     if self.is_create  {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `super::*`
[INFO] [stdout]    --> src/lib.rs:327:9
[INFO] [stdout]     |
[INFO] [stdout] 327 |     use super::*;
[INFO] [stdout]     |         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/lib.rs:124:27
[INFO] [stdout]     |
[INFO] [stdout] 124 |                 return Ok(t);
[INFO] [stdout]     |                        -- ^ expected `SharedMemory`, found `()`
[INFO] [stdout]     |                        |
[INFO] [stdout]     |                        arguments to this enum variant are incorrect
[INFO] [stdout]     |
[INFO] [stdout] help: the type constructed contains `()` due to the type of the argument passed
[INFO] [stdout]    --> src/lib.rs:124:24
[INFO] [stdout]     |
[INFO] [stdout] 124 |                 return Ok(t);
[INFO] [stdout]     |                        ^^^-^
[INFO] [stdout]     |                           |
[INFO] [stdout]     |                           this argument influences the type of `Ok`
[INFO] [stdout] note: tuple variant defined here
[INFO] [stdout]    --> /rustc/292be5c7c05138d753bbd4b30db7a3f1a5c914f7/library/core/src/result.rs:561:5
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `shared_memory` (lib test) due to 1 previous error; 5 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "dbb898385335a968a4fd0f2cef77ecc881dde89145c2b7043befe766b69c6bfb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "dbb898385335a968a4fd0f2cef77ecc881dde89145c2b7043befe766b69c6bfb", kill_on_drop: false }`
[INFO] [stdout] dbb898385335a968a4fd0f2cef77ecc881dde89145c2b7043befe766b69c6bfb
