[INFO] cloning repository https://github.com/serxka/pros-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/serxka/pros-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fserxka%2Fpros-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fserxka%2Fpros-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ec8373da8956b2e26977e8b24d67e791f21421af [INFO] checking serxka/pros-rs against master#75dbd5b8c3e3e3e7673caa890422e654d39b815e for pr-95985 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fserxka%2Fpros-rs" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/serxka/pros-rs on toolchain 75dbd5b8c3e3e3e7673caa890422e654d39b815e [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+75dbd5b8c3e3e3e7673caa890422e654d39b815e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-5/source/.cargo/config [INFO] removed /workspace/builds/worker-5/source/rust-toolchain.toml [INFO] started tweaking git repo https://github.com/serxka/pros-rs [INFO] finished tweaking git repo https://github.com/serxka/pros-rs [INFO] tweaked toml for git repo https://github.com/serxka/pros-rs written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/serxka/pros-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+75dbd5b8c3e3e3e7673caa890422e654d39b815e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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:83125433e4fff17b1ac56874832f668d9df75ee638575aca552b68e127bedee9" "/opt/rustwide/cargo-home/bin/cargo" "+75dbd5b8c3e3e3e7673caa890422e654d39b815e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f93ff87c98f5382aa0eaeda0c37057d4fab008b1122b21cb6fd403253fa8bd9b [INFO] running `Command { std: "docker" "start" "-a" "f93ff87c98f5382aa0eaeda0c37057d4fab008b1122b21cb6fd403253fa8bd9b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f93ff87c98f5382aa0eaeda0c37057d4fab008b1122b21cb6fd403253fa8bd9b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f93ff87c98f5382aa0eaeda0c37057d4fab008b1122b21cb6fd403253fa8bd9b", kill_on_drop: false }` [INFO] [stdout] f93ff87c98f5382aa0eaeda0c37057d4fab008b1122b21cb6fd403253fa8bd9b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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:83125433e4fff17b1ac56874832f668d9df75ee638575aca552b68e127bedee9" "/opt/rustwide/cargo-home/bin/cargo" "+75dbd5b8c3e3e3e7673caa890422e654d39b815e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7053c547fe3b9fd582330452c9ce800fc9f18d834f8d2878c5d1c440b6b11e24 [INFO] running `Command { std: "docker" "start" "-a" "7053c547fe3b9fd582330452c9ce800fc9f18d834f8d2878c5d1c440b6b11e24", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.121 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling proc-macro2 v1.0.33 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Compiling syn v1.0.82 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling crc32fast v1.3.0 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling unicode-width v0.1.9 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling bindgen v0.59.2 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling libloading v0.7.2 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling termcolor v1.1.2 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling shlex v1.1.0 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling paste v1.0.7 [INFO] [stderr] Checking smallvec v1.7.0 [INFO] [stderr] Compiling clang-sys v1.3.0 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling nom v7.1.1 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Checking math v0.1.0 (/opt/rustwide/workdir/math) [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling flate2 v1.0.22 [INFO] [stderr] Compiling which v4.2.5 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Checking libc-print v0.1.17 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling env_logger v0.9.0 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling zip v0.5.13 [INFO] [stderr] Compiling pros v0.2.2 (/opt/rustwide/workdir) [INFO] [stdout] error[E0152]: found duplicate lang item `oom` [INFO] [stdout] --> src/lib.rs:146:1 [INFO] [stdout] | [INFO] [stdout] 146 | fn alloc_error(layout: Layout) -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the lang item is first defined in crate `std` (which `test` depends on) [INFO] [stdout] = note: first definition in `std` loaded from /opt/rustwide/rustup-home/toolchains/75dbd5b8c3e3e3e7673caa890422e654d39b815e/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-7b2106000b625742.rlib [INFO] [stdout] = note: second definition in the local crate (`pros`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0152]: found duplicate lang item `panic_impl` [INFO] [stdout] --> src/lib.rs:152:1 [INFO] [stdout] | [INFO] [stdout] 152 | fn panic(info: &core::panic::PanicInfo) -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the lang item is first defined in crate `std` (which `test` depends on) [INFO] [stdout] = note: first definition in `std` loaded from /opt/rustwide/rustup-home/toolchains/75dbd5b8c3e3e3e7673caa890422e654d39b815e/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-7b2106000b625742.rlib [INFO] [stdout] = note: second definition in the local crate (`pros`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/devices/controller.rs:110:47 [INFO] [stdout] | [INFO] [stdout] 110 | controller_set_text(self.id, line, column, cstring.as_ptr()); [INFO] [stdout] | ------------------- ^^^^^^^^^^^^^^^^ expected `i8`, found `u8` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected raw pointer `*const i8` [INFO] [stdout] found raw pointer `*const u8` [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/target/debug/build/pros-9ce3afee2e460bcb/out/bindings.rs:3:91381 [INFO] [stdout] | [INFO] [stdout] 3 | ...e operation"] # [doc = " failed, setting errno."] pub fn controller_set_text (id : controller_id_e_t , line : u8 , col : u8 , str_ : *... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/devices/controller.rs:152:31 [INFO] [stdout] | [INFO] [stdout] 152 | controller_rumble(self.id, cstr.as_ptr()); [INFO] [stdout] | ----------------- ^^^^^^^^^^^^^ expected `i8`, found `u8` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected raw pointer `*const i8` [INFO] [stdout] found raw pointer `*const u8` [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/target/debug/build/pros-9ce3afee2e460bcb/out/bindings.rs:3:94636 [INFO] [stdout] | [INFO] [stdout] 3 | ...he operation"] # [doc = " failed, setting errno."] pub fn controller_rumble (id : controller_id_e_t , rumble_pattern : * const libc ::... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0605]: non-primitive cast: `&[i8]` as `&[u8]` [INFO] [stdout] --> src/rtos.rs:36:16 [INFO] [stdout] | [INFO] [stdout] 36 | let slice = core::slice::from_raw_parts(name, libc::strlen(name)) as &[u8]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/rtos.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 113 | let res = bindings::task_create( [INFO] [stdout] | --------------------- arguments to this function are incorrect [INFO] [stdout] ... [INFO] [stdout] 118 | name.as_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^ expected `i8`, found `u8` [INFO] [stdout] | [INFO] [stdout] = note: expected raw pointer `*const i8` [INFO] [stdout] found raw pointer `*const u8` [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/target/debug/build/pros-9ce3afee2e460bcb/out/bindings.rs:3:149232 [INFO] [stdout] | [INFO] [stdout] 3 | ...or hints as"] # [doc = " to why task_create failed."] pub fn task_create (function : task_fn_t , parameters : * mut libc :: c_void , p... [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0605. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `pros` due to 5 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/devices/controller.rs:110:47 [INFO] [stdout] | [INFO] [stdout] 110 | controller_set_text(self.id, line, column, cstring.as_ptr()); [INFO] [stdout] | ------------------- ^^^^^^^^^^^^^^^^ expected `i8`, found `u8` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected raw pointer `*const i8` [INFO] [stdout] found raw pointer `*const u8` [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/target/debug/build/pros-9ce3afee2e460bcb/out/bindings.rs:3:91381 [INFO] [stdout] | [INFO] [stdout] 3 | ...e operation"] # [doc = " failed, setting errno."] pub fn controller_set_text (id : controller_id_e_t , line : u8 , col : u8 , str_ : *... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/devices/controller.rs:152:31 [INFO] [stdout] | [INFO] [stdout] 152 | controller_rumble(self.id, cstr.as_ptr()); [INFO] [stdout] | ----------------- ^^^^^^^^^^^^^ expected `i8`, found `u8` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected raw pointer `*const i8` [INFO] [stdout] found raw pointer `*const u8` [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/target/debug/build/pros-9ce3afee2e460bcb/out/bindings.rs:3:94636 [INFO] [stdout] | [INFO] [stdout] 3 | ...he operation"] # [doc = " failed, setting errno."] pub fn controller_rumble (id : controller_id_e_t , rumble_pattern : * const libc ::... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0605]: non-primitive cast: `&[i8]` as `&[u8]` [INFO] [stdout] --> src/rtos.rs:36:16 [INFO] [stdout] | [INFO] [stdout] 36 | let slice = core::slice::from_raw_parts(name, libc::strlen(name)) as &[u8]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/rtos.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 113 | let res = bindings::task_create( [INFO] [stdout] | --------------------- arguments to this function are incorrect [INFO] [stdout] ... [INFO] [stdout] 118 | name.as_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^ expected `i8`, found `u8` [INFO] [stdout] | [INFO] [stdout] = note: expected raw pointer `*const i8` [INFO] [stdout] found raw pointer `*const u8` [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/target/debug/build/pros-9ce3afee2e460bcb/out/bindings.rs:3:149232 [INFO] [stdout] | [INFO] [stdout] 3 | ...or hints as"] # [doc = " to why task_create failed."] pub fn task_create (function : task_fn_t , parameters : * mut libc :: c_void , p... [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0152, E0308, E0605. [INFO] [stdout] [INFO] [stderr] error: could not compile `pros` due to 7 previous errors [INFO] [stdout] For more information about an error, try `rustc --explain E0152`. [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "7053c547fe3b9fd582330452c9ce800fc9f18d834f8d2878c5d1c440b6b11e24", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7053c547fe3b9fd582330452c9ce800fc9f18d834f8d2878c5d1c440b6b11e24", kill_on_drop: false }` [INFO] [stdout] 7053c547fe3b9fd582330452c9ce800fc9f18d834f8d2878c5d1c440b6b11e24