[INFO] fetching crate novusk_syscalls 0.2.1... [INFO] checking novusk_syscalls-0.2.1 against try#c659ee110de67e82444e4b6c8407c1a9af9c2cf6 for pr-145608-1 [INFO] extracting crate novusk_syscalls 0.2.1 into /workspace/builds/worker-5-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-5-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate novusk_syscalls 0.2.1 on toolchain c659ee110de67e82444e4b6c8407c1a9af9c2cf6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "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" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2b7110a6a125ddef7d95c380a0ad5aae5e253116168c19af253037f6fc92703f [INFO] running `Command { std: "docker" "start" "-a" "2b7110a6a125ddef7d95c380a0ad5aae5e253116168c19af253037f6fc92703f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2b7110a6a125ddef7d95c380a0ad5aae5e253116168c19af253037f6fc92703f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2b7110a6a125ddef7d95c380a0ad5aae5e253116168c19af253037f6fc92703f", kill_on_drop: false }` [INFO] [stdout] 2b7110a6a125ddef7d95c380a0ad5aae5e253116168c19af253037f6fc92703f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 57e966ffd84407fbdc3c71f6503cf976e22a1b51cc978c22847abdfe9d79a3f7 [INFO] running `Command { std: "docker" "start" "-a" "57e966ffd84407fbdc3c71f6503cf976e22a1b51cc978c22847abdfe9d79a3f7", 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: 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: 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: 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] 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] [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] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stderr] error: could not compile `novusk_syscalls` (example "write") due to 1 previous error; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "57e966ffd84407fbdc3c71f6503cf976e22a1b51cc978c22847abdfe9d79a3f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "57e966ffd84407fbdc3c71f6503cf976e22a1b51cc978c22847abdfe9d79a3f7", kill_on_drop: false }` [INFO] [stdout] 57e966ffd84407fbdc3c71f6503cf976e22a1b51cc978c22847abdfe9d79a3f7