[INFO] fetching crate novusk_syscalls 0.2.1... [INFO] checking novusk_syscalls-0.2.1 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] extracting crate novusk_syscalls 0.2.1 into /workspace/builds/worker-7-tc2/source [INFO] started tweaking crates.io crate novusk_syscalls 0.2.1 [INFO] finished tweaking crates.io crate novusk_syscalls 0.2.1 [INFO] tweaked toml for crates.io crate novusk_syscalls 0.2.1 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate novusk_syscalls 0.2.1 on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate novusk_syscalls 0.2.1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7e31f179b60e3f455b596e67d3cc328583e9d92b4303bf0944c0cfaa550ba99d [INFO] running `Command { std: "docker" "start" "-a" "7e31f179b60e3f455b596e67d3cc328583e9d92b4303bf0944c0cfaa550ba99d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7e31f179b60e3f455b596e67d3cc328583e9d92b4303bf0944c0cfaa550ba99d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7e31f179b60e3f455b596e67d3cc328583e9d92b4303bf0944c0cfaa550ba99d", kill_on_drop: false }` [INFO] [stdout] 7e31f179b60e3f455b596e67d3cc328583e9d92b4303bf0944c0cfaa550ba99d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a310ca50308cde17cc0a9b154f59c25c2e7b80757064b5b6718ebe3bc4513d4c [INFO] running `Command { std: "docker" "start" "-a" "a310ca50308cde17cc0a9b154f59c25c2e7b80757064b5b6718ebe3bc4513d4c", kill_on_drop: false }` [INFO] [stderr] Checking novusk_syscalls v0.2.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `sys_arg1` [INFO] [stdout] --> src/empty.rs:5:36 [INFO] [stdout] | [INFO] [stdout] 5 | pub unsafe extern "C" fn sys_empty(sys_arg1: u8, sys_arg2: u8, sys_arg3: u8) -> u8 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sys_arg1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sys_arg2` [INFO] [stdout] --> src/empty.rs:5:50 [INFO] [stdout] | [INFO] [stdout] 5 | pub unsafe extern "C" fn sys_empty(sys_arg1: u8, sys_arg2: u8, sys_arg3: u8) -> u8 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sys_arg2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sys_arg3` [INFO] [stdout] --> src/empty.rs:5:64 [INFO] [stdout] | [INFO] [stdout] 5 | pub unsafe extern "C" fn sys_empty(sys_arg1: u8, sys_arg2: u8, sys_arg3: u8) -> u8 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sys_arg3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sys_arg1` [INFO] [stdout] --> src/empty.rs:5:36 [INFO] [stdout] | [INFO] [stdout] 5 | pub unsafe extern "C" fn sys_empty(sys_arg1: u8, sys_arg2: u8, sys_arg3: u8) -> u8 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sys_arg1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sys_arg2` [INFO] [stdout] --> src/empty.rs:5:50 [INFO] [stdout] | [INFO] [stdout] 5 | pub unsafe extern "C" fn sys_empty(sys_arg1: u8, sys_arg2: u8, sys_arg3: u8) -> u8 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sys_arg2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sys_arg3` [INFO] [stdout] --> src/empty.rs:5:64 [INFO] [stdout] | [INFO] [stdout] 5 | pub unsafe extern "C" fn sys_empty(sys_arg1: u8, sys_arg2: u8, sys_arg3: u8) -> u8 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sys_arg3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ret` is never read [INFO] [stdout] --> src/table.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | let mut ret = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/table.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let mut syscalls = self.syscalls.as_mut().unwrap(); [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: value assigned to `ret` is never read [INFO] [stdout] --> src/table.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | let mut ret = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/table.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | let mut syscalls = self.syscalls.as_mut().unwrap(); [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] error[E0601]: `main` function not found in crate `write` [INFO] [stdout] --> examples/write.rs:4:2 [INFO] [stdout] | [INFO] [stdout] 4 | } [INFO] [stdout] | ^ consider adding a `main` function to `examples/write.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sys_arg3` [INFO] [stdout] --> examples/write.rs:1:64 [INFO] [stdout] | [INFO] [stdout] 1 | pub unsafe extern "C" fn sys_write(sys_arg1: u8, sys_arg2: u8, sys_arg3: u8) -> u8 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sys_arg3` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sys_arg3` [INFO] [stdout] --> examples/write.rs:1:64 [INFO] [stdout] | [INFO] [stdout] 1 | pub unsafe extern "C" fn sys_write(sys_arg1: u8, sys_arg2: u8, sys_arg3: u8) -> u8 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sys_arg3` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> examples/table.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | SYSCALL_TABLE.start_init(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> examples/table.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | SYSCALL_TABLE.set_name("Novusk System call Example Table"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> examples/table.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | SYSCALL_TABLE.add_syscall(SysCall::new("sys_write", 1, sys_write)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> examples/table.rs:21:59 [INFO] [stdout] | [INFO] [stdout] 21 | println!("\nUsing \"{}\" as a system call table", SYSCALL_TABLE.systable_name); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> examples/table.rs:22:31 [INFO] [stdout] | [INFO] [stdout] 22 | println!("Empty: {}", SYSCALL_TABLE.make_call(999, 0, 0, 0)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> examples/table.rs:23:33 [INFO] [stdout] | [INFO] [stdout] 23 | println!("\nWrite: {}", SYSCALL_TABLE.make_call(1, b'A', 0, 0)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> examples/table.rs:24:46 [INFO] [stdout] | [INFO] [stdout] 24 | println!("Non existent syscall: {}", SYSCALL_TABLE.make_call(2, 0, 0, 0,)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `novusk_syscalls` (example "write") due to 1 previous error; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `sys_arg3` [INFO] [stdout] --> examples/write.rs:1:64 [INFO] [stdout] | [INFO] [stdout] 1 | pub unsafe extern "C" fn sys_write(sys_arg1: u8, sys_arg2: u8, sys_arg3: u8) -> u8 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sys_arg3` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "a310ca50308cde17cc0a9b154f59c25c2e7b80757064b5b6718ebe3bc4513d4c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a310ca50308cde17cc0a9b154f59c25c2e7b80757064b5b6718ebe3bc4513d4c", kill_on_drop: false }` [INFO] [stdout] a310ca50308cde17cc0a9b154f59c25c2e7b80757064b5b6718ebe3bc4513d4c