[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#eafdee2dfae8c2233b74f98b123308be7ccefcc6 for pr-79296 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdemandre%2Frust-ppm" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/demandre/rust-ppm on toolchain eafdee2dfae8c2233b74f98b123308be7ccefcc6 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+eafdee2dfae8c2233b74f98b123308be7ccefcc6" "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-6/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+eafdee2dfae8c2233b74f98b123308be7ccefcc6" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+eafdee2dfae8c2233b74f98b123308be7ccefcc6" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded unindent v0.1.7 [INFO] [stderr] Downloaded oorandom v11.1.3 [INFO] [stderr] Downloaded pyo3-derive-backend v0.9.2 [INFO] [stderr] Downloaded pyo3cls v0.9.2 [INFO] [stderr] Downloaded dict_derive v0.2.0 [INFO] [stderr] Downloaded csv v1.1.5 [INFO] [stderr] Downloaded pyo3 v0.9.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+eafdee2dfae8c2233b74f98b123308be7ccefcc6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1ff0044437923da966e72d71bf9be21d3be6158b25858727d4372784a74505eb [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" "1ff0044437923da966e72d71bf9be21d3be6158b25858727d4372784a74505eb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1ff0044437923da966e72d71bf9be21d3be6158b25858727d4372784a74505eb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1ff0044437923da966e72d71bf9be21d3be6158b25858727d4372784a74505eb", kill_on_drop: false }` [INFO] [stdout] 1ff0044437923da966e72d71bf9be21d3be6158b25858727d4372784a74505eb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+eafdee2dfae8c2233b74f98b123308be7ccefcc6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d9a725637a8dc40ee34f23247efeeb3d57fbfdc7c093ca4409326013278e0dfd [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" "d9a725637a8dc40ee34f23247efeeb3d57fbfdc7c093ca4409326013278e0dfd", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.53 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling regex-syntax v0.6.21 [INFO] [stderr] Compiling unindent v0.1.7 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling smallvec v1.5.0 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling inventory v0.1.9 [INFO] [stderr] Compiling cc v1.0.65 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling lock_api v0.3.4 [INFO] [stderr] Compiling paste-impl v0.1.18 [INFO] [stderr] Compiling itertools v0.8.2 [INFO] [stderr] Compiling parking_lot_core v0.7.2 [INFO] [stderr] Compiling clap v2.33.3 [INFO] [stderr] Compiling parking_lot v0.10.2 [INFO] [stderr] Compiling paste v0.1.18 [INFO] [stderr] Compiling ppm v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling regex v1.4.2 [INFO] [stderr] Compiling pyo3-derive-backend v0.9.2 [INFO] [stderr] Compiling serde_derive v1.0.117 [INFO] [stderr] Compiling inventory-impl v0.1.9 [INFO] [stderr] Compiling indoc-impl v0.3.6 [INFO] [stderr] Compiling ctor v0.1.16 [INFO] [stderr] Compiling ghost v0.1.2 [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.117 [INFO] [stderr] Compiling serde_json v1.0.59 [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: 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: 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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/ppma_wrapper.rs:105:71 [INFO] [stdout] | [INFO] [stdout] 105 | CString::new(file_out_name).expect("CString::new failed").as_ptr(), [INFO] [stdout] | --------------------------------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/ppma_wrapper.rs:136:68 [INFO] [stdout] | [INFO] [stdout] 136 | CString::new(input_name).expect("CString::new failed").as_ptr(), [INFO] [stdout] | ------------------------------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/ppma_wrapper.rs:105:71 [INFO] [stdout] | [INFO] [stdout] 105 | CString::new(file_out_name).expect("CString::new failed").as_ptr(), [INFO] [stdout] | --------------------------------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/ppma_wrapper.rs:136:68 [INFO] [stdout] | [INFO] [stdout] 136 | CString::new(input_name).expect("CString::new failed").as_ptr(), [INFO] [stdout] | ------------------------------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `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 `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 `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 `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 `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: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 48s [INFO] running `Command { std: "docker" "inspect" "d9a725637a8dc40ee34f23247efeeb3d57fbfdc7c093ca4409326013278e0dfd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d9a725637a8dc40ee34f23247efeeb3d57fbfdc7c093ca4409326013278e0dfd", kill_on_drop: false }` [INFO] [stdout] d9a725637a8dc40ee34f23247efeeb3d57fbfdc7c093ca4409326013278e0dfd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+eafdee2dfae8c2233b74f98b123308be7ccefcc6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2ee1eb07e682620678a09ee240d56d49f9b1035ceee750552264f36c01a69930 [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" "2ee1eb07e682620678a09ee240d56d49f9b1035ceee750552264f36c01a69930", kill_on_drop: false }` [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling rayon-core v1.9.0 [INFO] [stderr] Compiling half v1.6.0 [INFO] [stderr] Compiling oorandom v11.1.3 [INFO] [stderr] Compiling crossbeam-utils v0.8.1 [INFO] [stderr] Compiling memoffset v0.6.1 [INFO] [stderr] Compiling rayon v1.5.0 [INFO] [stderr] Compiling itertools v0.9.0 [INFO] [stderr] Compiling cast v0.2.3 [INFO] [stderr] Compiling plotters v0.2.15 [INFO] [stderr] Compiling tinytemplate v1.1.0 [INFO] [stderr] Compiling serde_cbor v0.11.1 [INFO] [stderr] Compiling regex-automata v0.1.9 [INFO] [stderr] Compiling csv-core v0.1.10 [INFO] [stderr] Compiling crossbeam-epoch v0.9.1 [INFO] [stderr] Compiling crossbeam-channel v0.5.0 [INFO] [stderr] Compiling bstr v0.2.14 [INFO] [stderr] Compiling criterion-plot v0.4.3 [INFO] [stderr] Compiling crossbeam-deque v0.8.0 [INFO] [stderr] Compiling csv v1.1.5 [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: 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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/ppma_wrapper.rs:105:71 [INFO] [stdout] | [INFO] [stdout] 105 | CString::new(file_out_name).expect("CString::new failed").as_ptr(), [INFO] [stdout] | --------------------------------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/ppma_wrapper.rs:136:68 [INFO] [stdout] | [INFO] [stdout] 136 | CString::new(input_name).expect("CString::new failed").as_ptr(), [INFO] [stdout] | ------------------------------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/ppma_wrapper.rs:105:71 [INFO] [stdout] | [INFO] [stdout] 105 | CString::new(file_out_name).expect("CString::new failed").as_ptr(), [INFO] [stdout] | --------------------------------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/ppma_wrapper.rs:136:68 [INFO] [stdout] | [INFO] [stdout] 136 | CString::new(input_name).expect("CString::new failed").as_ptr(), [INFO] [stdout] | ------------------------------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `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 `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 `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 `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 `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: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 48.75s [INFO] running `Command { std: "docker" "inspect" "2ee1eb07e682620678a09ee240d56d49f9b1035ceee750552264f36c01a69930", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2ee1eb07e682620678a09ee240d56d49f9b1035ceee750552264f36c01a69930", kill_on_drop: false }` [INFO] [stdout] 2ee1eb07e682620678a09ee240d56d49f9b1035ceee750552264f36c01a69930 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+eafdee2dfae8c2233b74f98b123308be7ccefcc6" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] d4d448af3a005d4d137428966b365b68201d11f1e788483994a84d8911813c29 [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" "d4d448af3a005d4d137428966b365b68201d11f1e788483994a84d8911813c29", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/ppma_wrapper.rs:105:71 [INFO] [stderr] | [INFO] [stderr] 105 | CString::new(file_out_name).expect("CString::new failed").as_ptr(), [INFO] [stderr] | --------------------------------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/ppma_wrapper.rs:136:68 [INFO] [stderr] | [INFO] [stderr] 136 | CString::new(input_name).expect("CString::new failed").as_ptr(), [INFO] [stderr] | ------------------------------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: `extern` fn uses type `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 `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 `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 `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 `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: 13 warnings emitted [INFO] [stderr] [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: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/ppma_wrapper.rs:105:71 [INFO] [stderr] | [INFO] [stderr] 105 | CString::new(file_out_name).expect("CString::new failed").as_ptr(), [INFO] [stderr] | --------------------------------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/ppma_wrapper.rs:136:68 [INFO] [stderr] | [INFO] [stderr] 136 | CString::new(input_name).expect("CString::new failed").as_ptr(), [INFO] [stderr] | ------------------------------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: 4 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 11.03s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/ppm-001a8a63e4e3a5e3 [INFO] [stderr] Running /opt/rustwide/target/debug/deps/ppm-b563683c762204e1 [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] [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" "d4d448af3a005d4d137428966b365b68201d11f1e788483994a84d8911813c29", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d4d448af3a005d4d137428966b365b68201d11f1e788483994a84d8911813c29", kill_on_drop: false }` [INFO] [stdout] d4d448af3a005d4d137428966b365b68201d11f1e788483994a84d8911813c29