[INFO] fetching crate pikchr-sys 0.1.1...
[INFO] testing pikchr-sys-0.1.1 against beta-2022-07-10 for beta-1.63-1
[INFO] extracting crate pikchr-sys 0.1.1 into /workspace/builds/worker-4/source
[INFO] validating manifest of crates.io crate pikchr-sys 0.1.1 on toolchain beta-2022-07-10
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-07-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate pikchr-sys 0.1.1
[INFO] finished tweaking crates.io crate pikchr-sys 0.1.1
[INFO] tweaked toml for crates.io crate pikchr-sys 0.1.1 written to /workspace/builds/worker-4/source/Cargo.toml
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-07-10" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }`
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-07-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:5873ed620acfc3295992aedd9294443d62a478a48ba243bc5e6c4f5abaffa05f" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-07-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] b60ca673a8d92d871bfb50ca69b7c7c9fb5140e727a9395392b4a0e3633c0590
[INFO] running `Command { std: "docker" "start" "-a" "b60ca673a8d92d871bfb50ca69b7c7c9fb5140e727a9395392b4a0e3633c0590", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "b60ca673a8d92d871bfb50ca69b7c7c9fb5140e727a9395392b4a0e3633c0590", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b60ca673a8d92d871bfb50ca69b7c7c9fb5140e727a9395392b4a0e3633c0590", kill_on_drop: false }`
[INFO] [stdout] b60ca673a8d92d871bfb50ca69b7c7c9fb5140e727a9395392b4a0e3633c0590
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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=warn" "-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:5873ed620acfc3295992aedd9294443d62a478a48ba243bc5e6c4f5abaffa05f" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-07-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] f23756f4e9e4559ffdf2e1d806cd74cb496b735d3819ada82d19038ceae59d6d
[INFO] running `Command { std: "docker" "start" "-a" "f23756f4e9e4559ffdf2e1d806cd74cb496b735d3819ada82d19038ceae59d6d", kill_on_drop: false }`
[INFO] [stderr]    Compiling cc v1.0.73
[INFO] [stderr]    Compiling glob v0.3.0
[INFO] [stderr]    Compiling version_check v0.9.4
[INFO] [stderr]    Compiling memchr v2.5.0
[INFO] [stderr]    Compiling proc-macro2 v1.0.40
[INFO] [stderr]    Compiling libc v0.2.126
[INFO] [stderr]    Compiling quote v1.0.20
[INFO] [stderr]    Compiling unicode-ident v1.0.1
[INFO] [stderr]    Compiling bindgen v0.53.3
[INFO] [stderr]    Compiling regex-syntax v0.6.27
[INFO] [stderr]    Compiling cfg-if v0.1.10
[INFO] [stderr]    Compiling lazy_static v1.4.0
[INFO] [stderr]    Compiling lazycell v1.3.0
[INFO] [stderr]    Compiling rustc-hash v1.1.0
[INFO] [stderr]    Compiling shlex v0.1.1
[INFO] [stderr]    Compiling peeking_take_while v0.1.2
[INFO] [stderr]    Compiling bitflags v1.3.2
[INFO] [stderr]    Compiling clang-sys v0.29.3
[INFO] [stderr]    Compiling nom v5.1.2
[INFO] [stderr]    Compiling libloading v0.5.2
[INFO] [stderr]    Compiling regex v1.6.0
[INFO] [stderr]    Compiling cexpr v0.4.0
[INFO] [stderr]    Compiling pikchr-sys v0.1.1 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 15.77s
[INFO] running `Command { std: "docker" "inspect" "f23756f4e9e4559ffdf2e1d806cd74cb496b735d3819ada82d19038ceae59d6d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f23756f4e9e4559ffdf2e1d806cd74cb496b735d3819ada82d19038ceae59d6d", kill_on_drop: false }`
[INFO] [stdout] f23756f4e9e4559ffdf2e1d806cd74cb496b735d3819ada82d19038ceae59d6d
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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=warn" "-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:5873ed620acfc3295992aedd9294443d62a478a48ba243bc5e6c4f5abaffa05f" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-07-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 0ae6394c7acf5d6fa50299bc3433fec8ac00eab8d9a9e82e7a358fc2605a29cf
[INFO] running `Command { std: "docker" "start" "-a" "0ae6394c7acf5d6fa50299bc3433fec8ac00eab8d9a9e82e7a358fc2605a29cf", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]    Compiling pikchr-sys v0.1.1 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 0.72s
[INFO] running `Command { std: "docker" "inspect" "0ae6394c7acf5d6fa50299bc3433fec8ac00eab8d9a9e82e7a358fc2605a29cf", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0ae6394c7acf5d6fa50299bc3433fec8ac00eab8d9a9e82e7a358fc2605a29cf", kill_on_drop: false }`
[INFO] [stdout] 0ae6394c7acf5d6fa50299bc3433fec8ac00eab8d9a9e82e7a358fc2605a29cf
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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=warn" "-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:5873ed620acfc3295992aedd9294443d62a478a48ba243bc5e6c4f5abaffa05f" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-07-10" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] a5e8c43e843ce03086e3169a51310bc585c3bb77dd59eb8e01ae9e9cfc083b28
[INFO] running `Command { std: "docker" "start" "-a" "a5e8c43e843ce03086e3169a51310bc585c3bb77dd59eb8e01ae9e9cfc083b28", kill_on_drop: false }`
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 0.07s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/pikchr_sys-878f0777c76017ff)
[INFO] [stdout] 
[INFO] [stdout] running 1 test
[INFO] [stdout] test tests::simple_raw_box ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]    Doc-tests pikchr-sys
[INFO] [stdout] 
[INFO] [stdout] running 1 test
[INFO] [stdout] test src/lib.rs - (line 21) - compile ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/lib.rs - (line 21) stdout ----
[INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope
[INFO] [stdout]  --> src/lib.rs:23:16
[INFO] [stdout]   |
[INFO] [stdout] 4 | let mut width: c_int = 0;
[INFO] [stdout]   |                ^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]   |
[INFO] [stdout] 2 | use core::ffi::c_int;
[INFO] [stdout]   |
[INFO] [stdout] 2 | use libc::c_int;
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::os::raw::c_int;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope
[INFO] [stdout]  --> src/lib.rs:24:17
[INFO] [stdout]   |
[INFO] [stdout] 5 | let mut height: c_int = 0;
[INFO] [stdout]   |                 ^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]   |
[INFO] [stdout] 2 | use core::ffi::c_int;
[INFO] [stdout]   |
[INFO] [stdout] 2 | use libc::c_int;
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::os::raw::c_int;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CString`
[INFO] [stdout]  --> src/lib.rs:25:13
[INFO] [stdout]   |
[INFO] [stdout] 6 |   let input = CString::new(input)?;
[INFO] [stdout]   |               ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: a struct with a similar name exists
[INFO] [stdout]   |
[INFO] [stdout] 6 | let input = String::new(input)?;
[INFO] [stdout]   |             ~~~~~~
[INFO] [stdout] help: consider importing this type alias
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::ffi::CString;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `c_char` in this scope
[INFO] [stdout]  --> src/lib.rs:27:15
[INFO] [stdout]   |
[INFO] [stdout] 8 | let res: *mut c_char = unsafe {
[INFO] [stdout]   |               ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: a builtin type with a similar name exists
[INFO] [stdout]   |
[INFO] [stdout] 8 | let res: *mut char = unsafe {
[INFO] [stdout]   |               ~~~~
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]   |
[INFO] [stdout] 2 | use core::ffi::c_char;
[INFO] [stdout]   |
[INFO] [stdout] 2 | use libc::c_char;
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::os::raw::c_char;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `pikchr` in this scope
[INFO] [stdout]  --> src/lib.rs:28:5
[INFO] [stdout]   |
[INFO] [stdout] 9 |     pikchr(
[INFO] [stdout]   |     ^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]   |
[INFO] [stdout] 2 | use pikchr_sys::pikchr;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `c_char` in this scope
[INFO] [stdout]   --> src/lib.rs:29:34
[INFO] [stdout]    |
[INFO] [stdout] 10 |         input.as_ptr() as *const c_char,
[INFO] [stdout]    |                                  ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: a builtin type with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout] 10 |         input.as_ptr() as *const char,
[INFO] [stdout]    |                                  ~~~~
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout] 2  | use core::ffi::c_char;
[INFO] [stdout]    |
[INFO] [stdout] 2  | use libc::c_char;
[INFO] [stdout]    |
[INFO] [stdout] 2  | use std::os::raw::c_char;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `PIKCHR_PLAINTEXT_ERRORS` in this scope
[INFO] [stdout]   --> src/lib.rs:31:9
[INFO] [stdout]    |
[INFO] [stdout] 12 |         PIKCHR_PLAINTEXT_ERRORS,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this constant
[INFO] [stdout]    |
[INFO] [stdout] 2  | use pikchr_sys::PIKCHR_PLAINTEXT_ERRORS;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope
[INFO] [stdout]   --> src/lib.rs:32:28
[INFO] [stdout]    |
[INFO] [stdout] 13 |         &mut width as *mut c_int,
[INFO] [stdout]    |                            ^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout] 2  | use core::ffi::c_int;
[INFO] [stdout]    |
[INFO] [stdout] 2  | use libc::c_int;
[INFO] [stdout]    |
[INFO] [stdout] 2  | use std::os::raw::c_int;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope
[INFO] [stdout]   --> src/lib.rs:33:29
[INFO] [stdout]    |
[INFO] [stdout] 14 |         &mut height as *mut c_int,
[INFO] [stdout]    |                             ^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout] 2  | use core::ffi::c_int;
[INFO] [stdout]    |
[INFO] [stdout] 2  | use libc::c_int;
[INFO] [stdout]    |
[INFO] [stdout] 2  | use std::os::raw::c_int;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CStr`
[INFO] [stdout]   --> src/lib.rs:37:21
[INFO] [stdout]    |
[INFO] [stdout] 18 | let cstr = unsafe { CStr::from_ptr(res) };
[INFO] [stdout]    |                     ^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout] 2  | use core::ffi::CStr;
[INFO] [stdout]    |
[INFO] [stdout] 2  | use std::ffi::CStr;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `free` in this scope
[INFO] [stdout]   --> src/lib.rs:40:10
[INFO] [stdout]    |
[INFO] [stdout] 21 | unsafe { free(res as *mut c_void) };
[INFO] [stdout]    |          ^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]    |
[INFO] [stdout] 2  | use libc::free;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope
[INFO] [stdout]   --> src/lib.rs:40:27
[INFO] [stdout]    |
[INFO] [stdout] 21 | unsafe { free(res as *mut c_void) };
[INFO] [stdout]    |                           ^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout] 2  | use core::ffi::c_void;
[INFO] [stdout]    |
[INFO] [stdout] 2  | use libc::c_void;
[INFO] [stdout]    |
[INFO] [stdout] 2  | use std::ffi::c_void;
[INFO] [stdout]    |
[INFO] [stdout] 2  | use std::os::raw::c_void;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]   --> src/lib.rs:25:32
[INFO] [stdout]    |
[INFO] [stdout] 2  |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_21_0() {
[INFO] [stdout]    |  ______________________________________-
[INFO] [stdout] 3  | | let input = "box \"example\"";
[INFO] [stdout] 4  | | let mut width: c_int = 0;
[INFO] [stdout] 5  | | let mut height: c_int = 0;
[INFO] [stdout] 6  | | let input = CString::new(input)?;
[INFO] [stdout]    | |                                ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout] ...  |
[INFO] [stdout] 21 | | unsafe { free(res as *mut c_void) };
[INFO] [stdout] 22 | | } _doctest_main_src_lib_rs_21_0() }
[INFO] [stdout]    | |_- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `FromResidual<_>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 13 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0425, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/lib.rs - (line 21)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.17s
[INFO] [stdout] 
[INFO] [stderr] error: test failed, to rerun pass '--doc'
[INFO] running `Command { std: "docker" "inspect" "a5e8c43e843ce03086e3169a51310bc585c3bb77dd59eb8e01ae9e9cfc083b28", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a5e8c43e843ce03086e3169a51310bc585c3bb77dd59eb8e01ae9e9cfc083b28", kill_on_drop: false }`
[INFO] [stdout] a5e8c43e843ce03086e3169a51310bc585c3bb77dd59eb8e01ae9e9cfc083b28
