[INFO] cloning repository https://github.com/demandre/rust-ppm [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/demandre/rust-ppm" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdemandre%2Frust-ppm", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdemandre%2Frust-ppm'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ce5a92401e90405980bd13e34f4bda2b7e3da397 [INFO] testing demandre/rust-ppm against try#03a1ea71b075ab964b5278bc6e74cd6c52c36ee0 for pr-74409 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdemandre%2Frust-ppm" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/demandre/rust-ppm on toolchain 03a1ea71b075ab964b5278bc6e74cd6c52c36ee0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/demandre/rust-ppm [INFO] finished tweaking git repo https://github.com/demandre/rust-ppm [INFO] tweaked toml for git repo https://github.com/demandre/rust-ppm written to /workspace/builds/worker-3/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 975689c74b1bb4e45509278bd75edb9b15d581133a34ac3b31d37b09b3a65d30 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "975689c74b1bb4e45509278bd75edb9b15d581133a34ac3b31d37b09b3a65d30", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "975689c74b1bb4e45509278bd75edb9b15d581133a34ac3b31d37b09b3a65d30", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "975689c74b1bb4e45509278bd75edb9b15d581133a34ac3b31d37b09b3a65d30", kill_on_drop: false }` [INFO] [stdout] 975689c74b1bb4e45509278bd75edb9b15d581133a34ac3b31d37b09b3a65d30 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] b3548eab3e0ed68f71ffb354103ff8ce9d9e56aeac148b4b2cc31a31e9e6aed4 [INFO] running `Command { std: "docker" "start" "-a" "b3548eab3e0ed68f71ffb354103ff8ce9d9e56aeac148b4b2cc31a31e9e6aed4", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.19 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.35 [INFO] [stderr] Compiling proc-macro-hack v0.5.18 [INFO] [stderr] Compiling serde_json v1.0.56 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling regex-syntax v0.6.18 [INFO] [stderr] Compiling unindent v0.1.6 [INFO] [stderr] Compiling inventory v0.1.7 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling smallvec v1.4.1 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling unicode-width v0.1.8 [INFO] [stderr] Compiling either v1.5.3 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling ppm v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling lock_api v0.3.4 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling itertools v0.8.2 [INFO] [stderr] Compiling parking_lot_core v0.7.2 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling clap v2.33.1 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling parking_lot v0.10.2 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling paste-impl v0.1.18 [INFO] [stderr] Compiling paste v0.1.18 [INFO] [stderr] Compiling regex v1.3.9 [INFO] [stderr] Compiling pyo3-derive-backend v0.9.2 [INFO] [stderr] Compiling serde_derive v1.0.114 [INFO] [stderr] Compiling inventory-impl v0.1.7 [INFO] [stderr] Compiling ghost v0.1.2 [INFO] [stderr] Compiling indoc-impl v0.3.6 [INFO] [stderr] Compiling ctor v0.1.15 [INFO] [stderr] Compiling dict_derive v0.2.0 [INFO] [stderr] Compiling pyo3cls v0.9.2 [INFO] [stderr] Compiling indoc v0.3.6 [INFO] [stderr] Compiling serde v1.0.114 [INFO] [stderr] Compiling pyo3 v0.9.2 [INFO] [stdout] warning: unused imports: `Grayscalable`, `Invertable` [INFO] [stdout] --> src/lib.rs:6:27 [INFO] [stdout] | [INFO] [stdout] 6 | use ppma_wrapper::image::{Invertable, Grayscalable, Image}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `invert` [INFO] [stdout] --> src/ppma_wrapper.rs:157:8 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn invert(mut img : Image) -> Image { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `grayscale` [INFO] [stdout] --> src/ppma_wrapper.rs:162:8 [INFO] [stdout] | [INFO] [stdout] 162 | pub fn grayscale(mut img : Image) -> Image { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `py` [INFO] [stdout] --> src/lib.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | fn ppm(py: Python, m: &PyModule) -> PyResult<()> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_py` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `std::string::String`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:16:37 [INFO] [stdout] | [INFO] [stdout] 16 | pub extern fn read_ppm(input_name : String) -> PyResult { [INFO] [stdout] | ^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(improper_ctypes_definitions)]` on by default [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `std::result::Result`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:16:49 [INFO] [stdout] | [INFO] [stdout] 16 | pub extern fn read_ppm(input_name : String) -> PyResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `std::string::String`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:22:41 [INFO] [stdout] | [INFO] [stdout] 22 | pub extern fn write_ppm(file_out_name : String, image: Image) { [INFO] [stdout] | ^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `ppma_wrapper::image::Image`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:22:56 [INFO] [stdout] | [INFO] [stdout] 22 | pub extern fn write_ppm(file_out_name : String, image: Image) { [INFO] [stdout] | ^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/ppma_wrapper/image.rs:59:1 [INFO] [stdout] | [INFO] [stdout] 59 | / pub struct Image { [INFO] [stdout] 60 | | pub width: u32, [INFO] [stdout] 61 | | pub height: u32, [INFO] [stdout] 62 | | content: Vec [INFO] [stdout] 63 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `std::result::Result`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:28:55 [INFO] [stdout] | [INFO] [stdout] 28 | pub extern fn create_ppm(xsize : i32, ysize : i32) -> PyResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `ppma_wrapper::image::Image`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:34:30 [INFO] [stdout] | [INFO] [stdout] 34 | pub extern fn invert(image : Image) -> PyResult { [INFO] [stdout] | ^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/ppma_wrapper/image.rs:59:1 [INFO] [stdout] | [INFO] [stdout] 59 | / pub struct Image { [INFO] [stdout] 60 | | pub width: u32, [INFO] [stdout] 61 | | pub height: u32, [INFO] [stdout] 62 | | content: Vec [INFO] [stdout] 63 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `std::result::Result`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:34:40 [INFO] [stdout] | [INFO] [stdout] 34 | pub extern fn invert(image : Image) -> PyResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `ppma_wrapper::image::Image`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:40:33 [INFO] [stdout] | [INFO] [stdout] 40 | pub extern fn grayscale(image : Image) -> PyResult { [INFO] [stdout] | ^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/ppma_wrapper/image.rs:59:1 [INFO] [stdout] | [INFO] [stdout] 59 | / pub struct Image { [INFO] [stdout] 60 | | pub width: u32, [INFO] [stdout] 61 | | pub height: u32, [INFO] [stdout] 62 | | content: Vec [INFO] [stdout] 63 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `std::result::Result`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:40:43 [INFO] [stdout] | [INFO] [stdout] 40 | pub extern fn grayscale(image : Image) -> PyResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 47s [INFO] running `Command { std: "docker" "inspect" "b3548eab3e0ed68f71ffb354103ff8ce9d9e56aeac148b4b2cc31a31e9e6aed4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b3548eab3e0ed68f71ffb354103ff8ce9d9e56aeac148b4b2cc31a31e9e6aed4", kill_on_drop: false }` [INFO] [stdout] b3548eab3e0ed68f71ffb354103ff8ce9d9e56aeac148b4b2cc31a31e9e6aed4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 45ddd0358bfd63625b68195c72326c9a6482b4f6cab154ccc05513b27363cb54 [INFO] running `Command { std: "docker" "start" "-a" "45ddd0358bfd63625b68195c72326c9a6482b4f6cab154ccc05513b27363cb54", kill_on_drop: false }` [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling rayon-core v1.7.1 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling half v1.6.0 [INFO] [stderr] Compiling oorandom v11.1.2 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling memoffset v0.5.5 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling rayon v1.3.1 [INFO] [stderr] Compiling itertools v0.9.0 [INFO] [stderr] Compiling plotters v0.2.15 [INFO] [stderr] Compiling walkdir v2.3.1 [INFO] [stderr] Compiling tinytemplate v1.1.0 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling serde_cbor v0.11.1 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling csv-core v0.1.10 [INFO] [stderr] Compiling regex-automata v0.1.9 [INFO] [stderr] Compiling crossbeam-queue v0.2.3 [INFO] [stderr] Compiling cast v0.2.3 [INFO] [stderr] Compiling bstr v0.2.13 [INFO] [stderr] Compiling crossbeam-deque v0.7.3 [INFO] [stderr] Compiling criterion-plot v0.4.3 [INFO] [stderr] Compiling csv v1.1.3 [INFO] [stderr] Compiling criterion v0.3.3 [INFO] [stderr] Compiling ppm v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Grayscalable`, `Invertable` [INFO] [stdout] --> src/lib.rs:6:27 [INFO] [stdout] | [INFO] [stdout] 6 | use ppma_wrapper::image::{Invertable, Grayscalable, Image}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `py` [INFO] [stdout] --> src/lib.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | fn ppm(py: Python, m: &PyModule) -> PyResult<()> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_py` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `std::string::String`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:16:37 [INFO] [stdout] | [INFO] [stdout] 16 | pub extern fn read_ppm(input_name : String) -> PyResult { [INFO] [stdout] | ^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(improper_ctypes_definitions)]` on by default [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `std::result::Result`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:16:49 [INFO] [stdout] | [INFO] [stdout] 16 | pub extern fn read_ppm(input_name : String) -> PyResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `std::string::String`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:22:41 [INFO] [stdout] | [INFO] [stdout] 22 | pub extern fn write_ppm(file_out_name : String, image: Image) { [INFO] [stdout] | ^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `ppma_wrapper::image::Image`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:22:56 [INFO] [stdout] | [INFO] [stdout] 22 | pub extern fn write_ppm(file_out_name : String, image: Image) { [INFO] [stdout] | ^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/ppma_wrapper/image.rs:59:1 [INFO] [stdout] | [INFO] [stdout] 59 | / pub struct Image { [INFO] [stdout] 60 | | pub width: u32, [INFO] [stdout] 61 | | pub height: u32, [INFO] [stdout] 62 | | content: Vec [INFO] [stdout] 63 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `std::result::Result`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:28:55 [INFO] [stdout] | [INFO] [stdout] 28 | pub extern fn create_ppm(xsize : i32, ysize : i32) -> PyResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `ppma_wrapper::image::Image`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:34:30 [INFO] [stdout] | [INFO] [stdout] 34 | pub extern fn invert(image : Image) -> PyResult { [INFO] [stdout] | ^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/ppma_wrapper/image.rs:59:1 [INFO] [stdout] | [INFO] [stdout] 59 | / pub struct Image { [INFO] [stdout] 60 | | pub width: u32, [INFO] [stdout] 61 | | pub height: u32, [INFO] [stdout] 62 | | content: Vec [INFO] [stdout] 63 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `std::result::Result`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:34:40 [INFO] [stdout] | [INFO] [stdout] 34 | pub extern fn invert(image : Image) -> PyResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `ppma_wrapper::image::Image`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:40:33 [INFO] [stdout] | [INFO] [stdout] 40 | pub extern fn grayscale(image : Image) -> PyResult { [INFO] [stdout] | ^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> src/ppma_wrapper/image.rs:59:1 [INFO] [stdout] | [INFO] [stdout] 59 | / pub struct Image { [INFO] [stdout] 60 | | pub width: u32, [INFO] [stdout] 61 | | pub height: u32, [INFO] [stdout] 62 | | content: Vec [INFO] [stdout] 63 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `std::result::Result`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:40:43 [INFO] [stdout] | [INFO] [stdout] 40 | pub extern fn grayscale(image : Image) -> PyResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `invert` [INFO] [stdout] --> src/ppma_wrapper.rs:157:8 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn invert(mut img : Image) -> Image { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `grayscale` [INFO] [stdout] --> src/ppma_wrapper.rs:162:8 [INFO] [stdout] | [INFO] [stdout] 162 | pub fn grayscale(mut img : Image) -> Image { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 45.79s [INFO] running `Command { std: "docker" "inspect" "45ddd0358bfd63625b68195c72326c9a6482b4f6cab154ccc05513b27363cb54", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "45ddd0358bfd63625b68195c72326c9a6482b4f6cab154ccc05513b27363cb54", kill_on_drop: false }` [INFO] [stdout] 45ddd0358bfd63625b68195c72326c9a6482b4f6cab154ccc05513b27363cb54 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 81825efa589f3750a2b3234b40dcd702611a6871e64a0805fe4482004e443a6d [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "81825efa589f3750a2b3234b40dcd702611a6871e64a0805fe4482004e443a6d", kill_on_drop: false }` [INFO] [stderr] warning: function is never used: `invert` [INFO] [stderr] --> src/ppma_wrapper.rs:157:8 [INFO] [stderr] | [INFO] [stderr] 157 | pub fn invert(mut img : Image) -> Image { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `grayscale` [INFO] [stderr] --> src/ppma_wrapper.rs:162:8 [INFO] [stderr] | [INFO] [stderr] 162 | pub fn grayscale(mut img : Image) -> Image { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Grayscalable`, `Invertable` [INFO] [stderr] --> src/lib.rs:6:27 [INFO] [stderr] | [INFO] [stderr] 6 | use ppma_wrapper::image::{Invertable, Grayscalable, Image}; [INFO] [stderr] | ^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `py` [INFO] [stderr] --> src/lib.rs:45:8 [INFO] [stderr] | [INFO] [stderr] 45 | fn ppm(py: Python, m: &PyModule) -> PyResult<()> { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_py` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `extern` fn uses type `std::string::String`, which is not FFI-safe [INFO] [stderr] --> src/lib.rs:16:37 [INFO] [stderr] | [INFO] [stderr] 16 | pub extern fn read_ppm(input_name : String) -> PyResult { [INFO] [stderr] | ^^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(improper_ctypes_definitions)]` on by default [INFO] [stderr] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stderr] = note: this struct has unspecified layout [INFO] [stderr] [INFO] [stderr] warning: `extern` fn uses type `std::result::Result`, which is not FFI-safe [INFO] [stderr] --> src/lib.rs:16:49 [INFO] [stderr] | [INFO] [stderr] 16 | pub extern fn read_ppm(input_name : String) -> PyResult { [INFO] [stderr] | ^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stderr] = note: enum has no representation hint [INFO] [stderr] [INFO] [stderr] warning: `extern` fn uses type `std::string::String`, which is not FFI-safe [INFO] [stderr] --> src/lib.rs:22:41 [INFO] [stderr] | [INFO] [stderr] 22 | pub extern fn write_ppm(file_out_name : String, image: Image) { [INFO] [stderr] | ^^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stderr] = note: this struct has unspecified layout [INFO] [stderr] [INFO] [stderr] warning: `extern` fn uses type `ppma_wrapper::image::Image`, which is not FFI-safe [INFO] [stderr] --> src/lib.rs:22:56 [INFO] [stderr] | [INFO] [stderr] 22 | pub extern fn write_ppm(file_out_name : String, image: Image) { [INFO] [stderr] | ^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stderr] = note: this struct has unspecified layout [INFO] [stderr] note: the type is defined here [INFO] [stderr] --> src/ppma_wrapper/image.rs:59:1 [INFO] [stderr] | [INFO] [stderr] 59 | / pub struct Image { [INFO] [stderr] 60 | | pub width: u32, [INFO] [stderr] 61 | | pub height: u32, [INFO] [stderr] 62 | | content: Vec [INFO] [stderr] 63 | | } [INFO] [stderr] | |_^ [INFO] [stderr] [INFO] [stderr] warning: `extern` fn uses type `std::result::Result`, which is not FFI-safe [INFO] [stderr] --> src/lib.rs:28:55 [INFO] [stderr] | [INFO] [stderr] 28 | pub extern fn create_ppm(xsize : i32, ysize : i32) -> PyResult { [INFO] [stderr] | ^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stderr] = note: enum has no representation hint [INFO] [stderr] [INFO] [stderr] warning: `extern` fn uses type `ppma_wrapper::image::Image`, which is not FFI-safe [INFO] [stderr] --> src/lib.rs:34:30 [INFO] [stderr] | [INFO] [stderr] 34 | pub extern fn invert(image : Image) -> PyResult { [INFO] [stderr] | ^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stderr] = note: this struct has unspecified layout [INFO] [stderr] note: the type is defined here [INFO] [stderr] --> src/ppma_wrapper/image.rs:59:1 [INFO] [stderr] | [INFO] [stderr] 59 | / pub struct Image { [INFO] [stderr] 60 | | pub width: u32, [INFO] [stderr] 61 | | pub height: u32, [INFO] [stderr] 62 | | content: Vec [INFO] [stderr] 63 | | } [INFO] [stderr] | |_^ [INFO] [stderr] [INFO] [stderr] warning: `extern` fn uses type `std::result::Result`, which is not FFI-safe [INFO] [stderr] --> src/lib.rs:34:40 [INFO] [stderr] | [INFO] [stderr] 34 | pub extern fn invert(image : Image) -> PyResult { [INFO] [stderr] | ^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stderr] = note: enum has no representation hint [INFO] [stderr] [INFO] [stderr] warning: `extern` fn uses type `ppma_wrapper::image::Image`, which is not FFI-safe [INFO] [stderr] --> src/lib.rs:40:33 [INFO] [stderr] | [INFO] [stderr] 40 | pub extern fn grayscale(image : Image) -> PyResult { [INFO] [stderr] | ^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stderr] = note: this struct has unspecified layout [INFO] [stderr] note: the type is defined here [INFO] [stderr] --> src/ppma_wrapper/image.rs:59:1 [INFO] [stderr] | [INFO] [stderr] 59 | / pub struct Image { [INFO] [stderr] 60 | | pub width: u32, [INFO] [stderr] 61 | | pub height: u32, [INFO] [stderr] 62 | | content: Vec [INFO] [stderr] 63 | | } [INFO] [stderr] | |_^ [INFO] [stderr] [INFO] [stderr] warning: `extern` fn uses type `std::result::Result`, which is not FFI-safe [INFO] [stderr] --> src/lib.rs:40:43 [INFO] [stderr] | [INFO] [stderr] 40 | pub extern fn grayscale(image : Image) -> PyResult { [INFO] [stderr] | ^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stderr] = note: enum has no representation hint [INFO] [stderr] [INFO] [stderr] warning: 11 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.34s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/ppm-29cbce3b55edad7a [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 [INFO] [stdout] [INFO] [stderr] Running /opt/rustwide/target/debug/deps/ppm-42d2bb4d474e05a6 [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 [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "81825efa589f3750a2b3234b40dcd702611a6871e64a0805fe4482004e443a6d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "81825efa589f3750a2b3234b40dcd702611a6871e64a0805fe4482004e443a6d", kill_on_drop: false }` [INFO] [stdout] 81825efa589f3750a2b3234b40dcd702611a6871e64a0805fe4482004e443a6d