[INFO] fetching crate pikchr-sys 0.1.1... [INFO] testing pikchr-sys-0.1.1 against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210-1 [INFO] extracting crate pikchr-sys 0.1.1 into /workspace/builds/worker-3-tc2/source [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-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate pikchr-sys 0.1.1 on toolchain dec9417b8611e34e787a3e4c37686b5131f9e5c5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 29 packages to latest compatible versions [INFO] [stderr] Adding bindgen v0.53.3 (available: v0.72.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f9e10ab8bdf39fef1992b94eeaf28a869e0b742e718acb44322cf7912da2f860 [INFO] running `Command { std: "docker" "start" "-a" "f9e10ab8bdf39fef1992b94eeaf28a869e0b742e718acb44322cf7912da2f860", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f9e10ab8bdf39fef1992b94eeaf28a869e0b742e718acb44322cf7912da2f860", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f9e10ab8bdf39fef1992b94eeaf28a869e0b742e718acb44322cf7912da2f860", kill_on_drop: false }` [INFO] [stdout] f9e10ab8bdf39fef1992b94eeaf28a869e0b742e718acb44322cf7912da2f860 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7fd5868f3fdcb8a6def466a012333d865e251aca5ac90da46ead8851abec92d0 [INFO] running `Command { std: "docker" "start" "-a" "7fd5868f3fdcb8a6def466a012333d865e251aca5ac90da46ead8851abec92d0", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.106 [INFO] [stderr] Compiling quote v1.0.45 [INFO] [stderr] Compiling memchr v2.8.0 [INFO] [stderr] Compiling bindgen v0.53.3 [INFO] [stderr] Compiling shlex v0.1.1 [INFO] [stderr] Compiling clang-sys v0.29.3 [INFO] [stderr] Compiling nom v5.1.3 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling libloading v0.5.2 [INFO] [stderr] Compiling cexpr v0.4.0 [INFO] [stderr] Compiling pikchr-sys v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] warning: pikchr-sys@0.1.1: pikchr.y: In function 'pik_error_context': [INFO] [stderr] warning: pikchr-sys@0.1.1: pikchr.y:2478:40: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=] [INFO] [stderr] warning: pikchr-sys@0.1.1: pikchr.y:2478:5: note: 'snprintf' output between 13 and 20 bytes into a destination of size 19 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.43s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: bindgen v0.53.3 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "7fd5868f3fdcb8a6def466a012333d865e251aca5ac90da46ead8851abec92d0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7fd5868f3fdcb8a6def466a012333d865e251aca5ac90da46ead8851abec92d0", kill_on_drop: false }` [INFO] [stdout] 7fd5868f3fdcb8a6def466a012333d865e251aca5ac90da46ead8851abec92d0 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 614b87ec221b465b7d2130acf228e1eadd7ac803bb9aa0831d475dd715b50831 [INFO] running `Command { std: "docker" "start" "-a" "614b87ec221b465b7d2130acf228e1eadd7ac803bb9aa0831d475dd715b50831", kill_on_drop: false }` [INFO] [stderr] Compiling clang-sys v0.29.3 [INFO] [stderr] Compiling bindgen v0.53.3 [INFO] [stderr] Compiling pikchr-sys v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] warning: pikchr-sys@0.1.1: pikchr.y: In function 'pik_error_context': [INFO] [stderr] warning: pikchr-sys@0.1.1: pikchr.y:2478:40: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=] [INFO] [stderr] warning: pikchr-sys@0.1.1: pikchr.y:2478:5: note: 'snprintf' output between 13 and 20 bytes into a destination of size 19 [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 10.00s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: bindgen v0.53.3 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "614b87ec221b465b7d2130acf228e1eadd7ac803bb9aa0831d475dd715b50831", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "614b87ec221b465b7d2130acf228e1eadd7ac803bb9aa0831d475dd715b50831", kill_on_drop: false }` [INFO] [stdout] 614b87ec221b465b7d2130acf228e1eadd7ac803bb9aa0831d475dd715b50831 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] eaeb71e01776c7ee127a2e9c5d31cded6b1e4272dec733d9a57ca54f46a07fa6 [INFO] running `Command { std: "docker" "start" "-a" "eaeb71e01776c7ee127a2e9c5d31cded6b1e4272dec733d9a57ca54f46a07fa6", kill_on_drop: false }` [INFO] [stderr] warning: pikchr-sys@0.1.1: pikchr.y: In function 'pik_error_context': [INFO] [stderr] warning: pikchr-sys@0.1.1: pikchr.y:2478:40: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=] [INFO] [stderr] warning: pikchr-sys@0.1.1: pikchr.y:2478:5: note: 'snprintf' output between 13 and 20 bytes into a destination of size 19 [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: bindgen v0.53.3 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/pikchr_sys-4849a1ff60bf7ce9) [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[E0425]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/lib.rs:23:16 [INFO] [stdout] | [INFO] [stdout] 23 | let mut width: c_int = 0; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these type aliases [INFO] [stdout] | [INFO] [stdout] 21 + use std::ffi::c_int; [INFO] [stdout] | [INFO] [stdout] 21 + use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] 21 + use core::ffi::c_int; [INFO] [stdout] | [INFO] [stdout] 21 + use libc::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/lib.rs:24:17 [INFO] [stdout] | [INFO] [stdout] 24 | let mut height: c_int = 0; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these type aliases [INFO] [stdout] | [INFO] [stdout] 21 + use std::ffi::c_int; [INFO] [stdout] | [INFO] [stdout] 21 + use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] 21 + use core::ffi::c_int; [INFO] [stdout] | [INFO] [stdout] 21 + use libc::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `CString` in this scope [INFO] [stdout] --> src/lib.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | let input = CString::new(input)?; [INFO] [stdout] | ^^^^^^^ use of undeclared type `CString` [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 25 - let input = CString::new(input)?; [INFO] [stdout] 25 + let input = String::new(input)?; [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 21 + use std::ffi::CString; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `c_char` in this scope [INFO] [stdout] --> src/lib.rs:27:15 [INFO] [stdout] | [INFO] [stdout] 27 | 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] 27 - let res: *mut c_char = unsafe { [INFO] [stdout] 27 + let res: *mut char = unsafe { [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these type aliases [INFO] [stdout] | [INFO] [stdout] 21 + use std::ffi::c_char; [INFO] [stdout] | [INFO] [stdout] 21 + use std::os::raw::c_char; [INFO] [stdout] | [INFO] [stdout] 21 + use core::ffi::c_char; [INFO] [stdout] | [INFO] [stdout] 21 + use libc::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] 28 | pikchr( [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 21 + use pikchr_sys::pikchr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `c_char` in this scope [INFO] [stdout] --> src/lib.rs:29:34 [INFO] [stdout] | [INFO] [stdout] 29 | 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] 29 - input.as_ptr() as *const c_char, [INFO] [stdout] 29 + input.as_ptr() as *const char, [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these type aliases [INFO] [stdout] | [INFO] [stdout] 21 + use std::ffi::c_char; [INFO] [stdout] | [INFO] [stdout] 21 + use std::os::raw::c_char; [INFO] [stdout] | [INFO] [stdout] 21 + use core::ffi::c_char; [INFO] [stdout] | [INFO] [stdout] 21 + use libc::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] 31 | PIKCHR_PLAINTEXT_ERRORS, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 21 + use pikchr_sys::PIKCHR_PLAINTEXT_ERRORS; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/lib.rs:32:28 [INFO] [stdout] | [INFO] [stdout] 32 | &mut width as *mut c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these type aliases [INFO] [stdout] | [INFO] [stdout] 21 + use std::ffi::c_int; [INFO] [stdout] | [INFO] [stdout] 21 + use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] 21 + use core::ffi::c_int; [INFO] [stdout] | [INFO] [stdout] 21 + use libc::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `c_int` in this scope [INFO] [stdout] --> src/lib.rs:33:29 [INFO] [stdout] | [INFO] [stdout] 33 | &mut height as *mut c_int, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these type aliases [INFO] [stdout] | [INFO] [stdout] 21 + use std::ffi::c_int; [INFO] [stdout] | [INFO] [stdout] 21 + use std::os::raw::c_int; [INFO] [stdout] | [INFO] [stdout] 21 + use core::ffi::c_int; [INFO] [stdout] | [INFO] [stdout] 21 + use libc::c_int; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `CStr` in this scope [INFO] [stdout] --> src/lib.rs:37:21 [INFO] [stdout] | [INFO] [stdout] 37 | let cstr = unsafe { CStr::from_ptr(res) }; [INFO] [stdout] | ^^^^ use of undeclared type `CStr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 21 + 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] 40 | 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] 21 + use libc::free; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/lib.rs:40:27 [INFO] [stdout] | [INFO] [stdout] 40 | 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] 21 + use std::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 21 + use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] 21 + use core::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 21 + use libc::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 12 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [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.15s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "eaeb71e01776c7ee127a2e9c5d31cded6b1e4272dec733d9a57ca54f46a07fa6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eaeb71e01776c7ee127a2e9c5d31cded6b1e4272dec733d9a57ca54f46a07fa6", kill_on_drop: false }` [INFO] [stdout] eaeb71e01776c7ee127a2e9c5d31cded6b1e4272dec733d9a57ca54f46a07fa6