[INFO] cloning repository https://github.com/parisholley/rust-ptrbug [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/parisholley/rust-ptrbug" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fparisholley%2Frust-ptrbug", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fparisholley%2Frust-ptrbug'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 96fb797297a4e26f0d5e6a4bb6860c929a87157c [INFO] testing parisholley/rust-ptrbug against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fparisholley%2Frust-ptrbug" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/parisholley/rust-ptrbug on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/parisholley/rust-ptrbug [INFO] finished tweaking git repo https://github.com/parisholley/rust-ptrbug [INFO] tweaked toml for git repo https://github.com/parisholley/rust-ptrbug written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/parisholley/rust-ptrbug already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7b185e044067e7e09f90a7371b00c93b54f9b8745e8e0926ee3382fae0752a35 [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" "7b185e044067e7e09f90a7371b00c93b54f9b8745e8e0926ee3382fae0752a35", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7b185e044067e7e09f90a7371b00c93b54f9b8745e8e0926ee3382fae0752a35", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7b185e044067e7e09f90a7371b00c93b54f9b8745e8e0926ee3382fae0752a35", kill_on_drop: false }` [INFO] [stdout] 7b185e044067e7e09f90a7371b00c93b54f9b8745e8e0926ee3382fae0752a35 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "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] 3d3c3c9befa998582eee51f916335eb84157138dc01df6c8d6596b903e0fd56e [INFO] running `Command { std: "docker" "start" "-a" "3d3c3c9befa998582eee51f916335eb84157138dc01df6c8d6596b903e0fd56e", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.65 [INFO] [stderr] Compiling cc v1.0.46 [INFO] [stderr] Compiling test-sys v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `NonNull` [INFO] [stdout] --> src/lib.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | use std::ptr::{NonNull}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `poolStruct` should have an upper camel case name [INFO] [stdout] --> src/bind.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub type poolStruct = poolStructT; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `PoolStruct` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `engineStruct` should have an upper camel case name [INFO] [stdout] --> src/bind.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub type engineStruct = engineStructT; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `EngineStruct` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `workerStruct` should have an upper camel case name [INFO] [stdout] --> src/bind.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub type workerStruct = workerStructT; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `WorkerStruct` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cstr_ptr` [INFO] [stdout] --> src/lib.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let cstr_ptr = cstr.into_raw(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cstr_ptr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `engine` [INFO] [stdout] --> src/lib.rs:74:17 [INFO] [stdout] | [INFO] [stdout] 74 | let mut engine:MaybeUninit = unsafe { MaybeUninit::uninit()}; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_engine` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | let mut engine:MaybeUninit = unsafe { MaybeUninit::uninit()}; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:77:17 [INFO] [stdout] | [INFO] [stdout] 77 | let mut engine = MaybeUninit::uninit(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:74:52 [INFO] [stdout] | [INFO] [stdout] 74 | let mut engine:MaybeUninit = unsafe { MaybeUninit::uninit()}; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | unsafe{ [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Engine` [INFO] [stdout] --> src/lib.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct Engine{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `assert_engine` [INFO] [stdout] --> src/lib.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn assert_engine(engine:*mut engineStruct){ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `do_get_release_worker` [INFO] [stdout] --> src/lib.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn do_get_release_worker(engine: *mut engineStruct) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `panic_static` [INFO] [stdout] --> src/lib.rs:39:1 [INFO] [stdout] | [INFO] [stdout] 39 | static panic_static:&str = "this static str should not cause panic"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `panic_string` [INFO] [stdout] --> src/lib.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 41 | const panic_string:&str = "this const str should not cause panic"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `should_not_cause_panic_println` [INFO] [stdout] --> src/lib.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn should_not_cause_panic_println(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `should_not_cause_panic_cstring` [INFO] [stdout] --> src/lib.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | fn should_not_cause_panic_cstring(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `should_not_cause_panic_str` [INFO] [stdout] --> src/lib.rs:52:4 [INFO] [stdout] | [INFO] [stdout] 52 | fn should_not_cause_panic_str(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `should_not_cause_panic_static_vec` [INFO] [stdout] --> src/lib.rs:56:4 [INFO] [stdout] | [INFO] [stdout] 56 | fn should_not_cause_panic_static_vec(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `should_not_cause_panic_static_to_string` [INFO] [stdout] --> src/lib.rs:60:4 [INFO] [stdout] | [INFO] [stdout] 60 | fn should_not_cause_panic_static_to_string(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `should_not_cause_panic_const_to_string` [INFO] [stdout] --> src/lib.rs:64:4 [INFO] [stdout] | [INFO] [stdout] 64 | fn should_not_cause_panic_const_to_string(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `should_not_cause_panic_to_string` [INFO] [stdout] --> src/lib.rs:68:4 [INFO] [stdout] | [INFO] [stdout] 68 | fn should_not_cause_panic_to_string(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/lib.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn new() -> Engine{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_release_worker` [INFO] [stdout] --> src/lib.rs:117:8 [INFO] [stdout] | [INFO] [stdout] 117 | fn get_release_worker(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `startEngine` [INFO] [stdout] --> src/bind.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn startEngine(engine: *mut engineStruct); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `getWorker` [INFO] [stdout] --> src/bind.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn getWorker(engine: *const engineStruct) -> *mut workerStruct; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `releaseWorker` [INFO] [stdout] --> src/bind.rs:119:5 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn releaseWorker(worker: *mut workerStruct) -> ::std::os::raw::c_int; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0554]: `#![feature]` may not be used on the stable release channel [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(test)] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0554]: `#![feature]` may not be used on the stable release channel [INFO] [stdout] --> src/lib.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(maybe_uninit_ref)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `maybe_uninit_ref` has been stable since 1.55.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(maybe_uninit_ref)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `panic_static` should have an upper case name [INFO] [stdout] --> src/lib.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | static panic_static:&str = "this static str should not cause panic"; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper case: `PANIC_STATIC` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `panic_string` should have an upper case name [INFO] [stdout] --> src/lib.rs:41:7 [INFO] [stdout] | [INFO] [stdout] 41 | const panic_string:&str = "this const str should not cause panic"; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper case: `PANIC_STRING` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0554`. [INFO] [stdout] [INFO] [stderr] error: could not compile `test-sys` due to 3 previous errors; 30 warnings emitted [INFO] running `Command { std: "docker" "inspect" "3d3c3c9befa998582eee51f916335eb84157138dc01df6c8d6596b903e0fd56e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3d3c3c9befa998582eee51f916335eb84157138dc01df6c8d6596b903e0fd56e", kill_on_drop: false }` [INFO] [stdout] 3d3c3c9befa998582eee51f916335eb84157138dc01df6c8d6596b903e0fd56e