[INFO] cloning repository https://github.com/djmill0326/hapt-vm [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/djmill0326/hapt-vm" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdjmill0326%2Fhapt-vm", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdjmill0326%2Fhapt-vm'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8507cea2227ad7819a4903b6b602b7da31b80091 [INFO] testing djmill0326/hapt-vm against try#a7ce54db9b096bd1098d07c645b489195a667c9f for pr-137940-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdjmill0326%2Fhapt-vm" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/djmill0326/hapt-vm on toolchain a7ce54db9b096bd1098d07c645b489195a667c9f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/djmill0326/hapt-vm [INFO] finished tweaking git repo https://github.com/djmill0326/hapt-vm [INFO] tweaked toml for git repo https://github.com/djmill0326/hapt-vm written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/djmill0326/hapt-vm 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" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "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-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e29c672f65f8a55a51a9b9593173e3bb2326b491b1855a1fd3bca3c27e0be20e [INFO] running `Command { std: "docker" "start" "-a" "e29c672f65f8a55a51a9b9593173e3bb2326b491b1855a1fd3bca3c27e0be20e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e29c672f65f8a55a51a9b9593173e3bb2326b491b1855a1fd3bca3c27e0be20e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e29c672f65f8a55a51a9b9593173e3bb2326b491b1855a1fd3bca3c27e0be20e", kill_on_drop: false }` [INFO] [stdout] e29c672f65f8a55a51a9b9593173e3bb2326b491b1855a1fd3bca3c27e0be20e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4d336249fe76abcc4176250959227cdcde20635e6947f796bad79c2266e6a655 [INFO] running `Command { std: "docker" "start" "-a" "4d336249fe76abcc4176250959227cdcde20635e6947f796bad79c2266e6a655", kill_on_drop: false }` [INFO] [stderr] Compiling hapt-vm v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/file.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 119 | _ => Interrupt::interrupt(self, code, data) [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/file.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 101 | FileOptions::Info => { [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 104 | FileOptions::Read => { [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 109 | FileOptions::Write => { [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 114 | FileOptions::Flush => { [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 119 | _ => Interrupt::interrupt(self, code, data) [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HaptVM` is never constructed [INFO] [stdout] --> src/vm.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct HaptVM { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get` is never used [INFO] [stdout] --> src/device.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Device<'a>: Clone + Sized { [INFO] [stdout] | ------ method in this trait [INFO] [stdout] 6 | fn get(&self) -> impl Device; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Named` is never used [INFO] [stdout] --> src/device.rs:21:11 [INFO] [stdout] | [INFO] [stdout] 21 | pub trait Named<'a> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/file.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Handle<'a>(pub usize, pub &'a PhantomPinned); [INFO] [stdout] | ------ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] = note: `Handle` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Info`, `Read`, `Write`, and `Flush` are never constructed [INFO] [stdout] --> src/file.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 88 | pub enum FileOptions { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 89 | Info = 0, [INFO] [stdout] | ^^^^ [INFO] [stdout] 90 | Read = 1, [INFO] [stdout] | ^^^^ [INFO] [stdout] 91 | Write = 2, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 92 | Flush = 3 [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FileOptions` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `io`, `read`, `write`, and `flush` are never used [INFO] [stdout] --> src/file.rs:123:8 [INFO] [stdout] | [INFO] [stdout] 95 | pub trait FileIO: Interrupt + Info { [INFO] [stdout] | ------ methods in this trait [INFO] [stdout] ... [INFO] [stdout] 123 | fn io(&self, option: FileOptions, data: Option) -> Result { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 128 | fn read(&self, data: Handle) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | fn write(&self, data: Handle) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | fn flush(&self) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pop_handle` is never used [INFO] [stdout] --> src/global.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn pop_handle<'a>(index: usize) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle` is never used [INFO] [stdout] --> src/global.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn handle<'a>(index: usize) -> Option> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/js/event_loop.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | struct Worker(usize); [INFO] [stdout] | ------ ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `Worker` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/global.rs:12:59 [INFO] [stdout] | [INFO] [stdout] 12 | let handle: *mut Handle = std::mem::transmute(FILE_HANDLES.get_unchecked_mut(HANDLE_INDEX)); [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 shared reference to mutable static is discouraged [INFO] [stdout] --> src/global.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 15 | Some(FILE_HANDLES.get_unchecked(HANDLE_INDEX - 1)) [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 shared reference to mutable static is discouraged [INFO] [stdout] --> src/global.rs:29:26 [INFO] [stdout] | [INFO] [stdout] 29 | let handle = FILE_HANDLES.get_unchecked(index); [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 is discouraged [INFO] [stdout] --> src/global.rs:31:43 [INFO] [stdout] | [INFO] [stdout] 31 | let handle_to_overwrite = FILE_HANDLES.get_unchecked_mut(range.start); [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 is discouraged [INFO] [stdout] --> src/global.rs:32:41 [INFO] [stdout] | [INFO] [stdout] 32 | *handle_to_overwrite = *FILE_HANDLES.get_unchecked(range.start + 1); [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 shared reference to mutable static is discouraged [INFO] [stdout] --> src/global.rs:41:14 [INFO] [stdout] | [INFO] [stdout] 41 | unsafe { FILE_HANDLES.get(index).copied() } [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 is discouraged [INFO] [stdout] --> src/js/event_loop.rs:14:14 [INFO] [stdout] | [INFO] [stdout] 14 | unsafe { &mut ARBITRATOR } [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] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 14 | unsafe { &raw mut ARBITRATOR } [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.65s [INFO] running `Command { std: "docker" "inspect" "4d336249fe76abcc4176250959227cdcde20635e6947f796bad79c2266e6a655", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4d336249fe76abcc4176250959227cdcde20635e6947f796bad79c2266e6a655", kill_on_drop: false }` [INFO] [stdout] 4d336249fe76abcc4176250959227cdcde20635e6947f796bad79c2266e6a655 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8e718fde92b58b8b6362b50fab79c0df1ee5bb67d8cb02ca6625a8c3a12c7f94 [INFO] running `Command { std: "docker" "start" "-a" "8e718fde92b58b8b6362b50fab79c0df1ee5bb67d8cb02ca6625a8c3a12c7f94", kill_on_drop: false }` [INFO] [stderr] Compiling hapt-vm v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/file.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 119 | _ => Interrupt::interrupt(self, code, data) [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/file.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 101 | FileOptions::Info => { [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 104 | FileOptions::Read => { [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 109 | FileOptions::Write => { [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 114 | FileOptions::Flush => { [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 119 | _ => Interrupt::interrupt(self, code, data) [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HaptVM` is never constructed [INFO] [stdout] --> src/vm.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct HaptVM { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get` is never used [INFO] [stdout] --> src/device.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Device<'a>: Clone + Sized { [INFO] [stdout] | ------ method in this trait [INFO] [stdout] 6 | fn get(&self) -> impl Device; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Named` is never used [INFO] [stdout] --> src/device.rs:21:11 [INFO] [stdout] | [INFO] [stdout] 21 | pub trait Named<'a> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/file.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Handle<'a>(pub usize, pub &'a PhantomPinned); [INFO] [stdout] | ------ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] = note: `Handle` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Info`, `Read`, `Write`, and `Flush` are never constructed [INFO] [stdout] --> src/file.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 88 | pub enum FileOptions { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 89 | Info = 0, [INFO] [stdout] | ^^^^ [INFO] [stdout] 90 | Read = 1, [INFO] [stdout] | ^^^^ [INFO] [stdout] 91 | Write = 2, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 92 | Flush = 3 [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FileOptions` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `io`, `read`, `write`, and `flush` are never used [INFO] [stdout] --> src/file.rs:123:8 [INFO] [stdout] | [INFO] [stdout] 95 | pub trait FileIO: Interrupt + Info { [INFO] [stdout] | ------ methods in this trait [INFO] [stdout] ... [INFO] [stdout] 123 | fn io(&self, option: FileOptions, data: Option) -> Result { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 128 | fn read(&self, data: Handle) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | fn write(&self, data: Handle) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | fn flush(&self) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pop_handle` is never used [INFO] [stdout] --> src/global.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn pop_handle<'a>(index: usize) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle` is never used [INFO] [stdout] --> src/global.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn handle<'a>(index: usize) -> Option> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/js/event_loop.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | struct Worker(usize); [INFO] [stdout] | ------ ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `Worker` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/global.rs:12:59 [INFO] [stdout] | [INFO] [stdout] 12 | let handle: *mut Handle = std::mem::transmute(FILE_HANDLES.get_unchecked_mut(HANDLE_INDEX)); [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 shared reference to mutable static is discouraged [INFO] [stdout] --> src/global.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 15 | Some(FILE_HANDLES.get_unchecked(HANDLE_INDEX - 1)) [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 shared reference to mutable static is discouraged [INFO] [stdout] --> src/global.rs:29:26 [INFO] [stdout] | [INFO] [stdout] 29 | let handle = FILE_HANDLES.get_unchecked(index); [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 is discouraged [INFO] [stdout] --> src/global.rs:31:43 [INFO] [stdout] | [INFO] [stdout] 31 | let handle_to_overwrite = FILE_HANDLES.get_unchecked_mut(range.start); [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 is discouraged [INFO] [stdout] --> src/global.rs:32:41 [INFO] [stdout] | [INFO] [stdout] 32 | *handle_to_overwrite = *FILE_HANDLES.get_unchecked(range.start + 1); [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 shared reference to mutable static is discouraged [INFO] [stdout] --> src/global.rs:41:14 [INFO] [stdout] | [INFO] [stdout] 41 | unsafe { FILE_HANDLES.get(index).copied() } [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 is discouraged [INFO] [stdout] --> src/js/event_loop.rs:14:14 [INFO] [stdout] | [INFO] [stdout] 14 | unsafe { &mut ARBITRATOR } [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] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 14 | unsafe { &raw mut ARBITRATOR } [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.41s [INFO] running `Command { std: "docker" "inspect" "8e718fde92b58b8b6362b50fab79c0df1ee5bb67d8cb02ca6625a8c3a12c7f94", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8e718fde92b58b8b6362b50fab79c0df1ee5bb67d8cb02ca6625a8c3a12c7f94", kill_on_drop: false }` [INFO] [stdout] 8e718fde92b58b8b6362b50fab79c0df1ee5bb67d8cb02ca6625a8c3a12c7f94 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] dddb8b600e6153f82683dbffa35d0bca5beb077565226e83079becc8ef4c1d00 [INFO] running `Command { std: "docker" "start" "-a" "dddb8b600e6153f82683dbffa35d0bca5beb077565226e83079becc8ef4c1d00", kill_on_drop: false }` [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/file.rs:119:13 [INFO] [stderr] | [INFO] [stderr] 119 | _ => Interrupt::interrupt(self, code, data) [INFO] [stderr] | ^ no value can reach this [INFO] [stderr] | [INFO] [stderr] note: multiple earlier patterns match some of the same values [INFO] [stderr] --> src/file.rs:119:13 [INFO] [stderr] | [INFO] [stderr] 101 | FileOptions::Info => { [INFO] [stderr] | ----------------- matches some of the same values [INFO] [stderr] ... [INFO] [stderr] 104 | FileOptions::Read => { [INFO] [stderr] | ----------------- matches some of the same values [INFO] [stderr] ... [INFO] [stderr] 109 | FileOptions::Write => { [INFO] [stderr] | ------------------ matches some of the same values [INFO] [stderr] ... [INFO] [stderr] 114 | FileOptions::Flush => { [INFO] [stderr] | ------------------ matches some of the same values [INFO] [stderr] ... [INFO] [stderr] 119 | _ => Interrupt::interrupt(self, code, data) [INFO] [stderr] | ^ collectively making this unreachable [INFO] [stderr] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stderr] [INFO] [stderr] warning: struct `HaptVM` is never constructed [INFO] [stderr] --> src/vm.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | struct HaptVM { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: method `get` is never used [INFO] [stderr] --> src/device.rs:6:8 [INFO] [stderr] | [INFO] [stderr] 5 | pub trait Device<'a>: Clone + Sized { [INFO] [stderr] | ------ method in this trait [INFO] [stderr] 6 | fn get(&self) -> impl Device; [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: trait `Named` is never used [INFO] [stderr] --> src/device.rs:21:11 [INFO] [stderr] | [INFO] [stderr] 21 | pub trait Named<'a> { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `0` and `1` are never read [INFO] [stderr] --> src/file.rs:6:23 [INFO] [stderr] | [INFO] [stderr] 6 | pub struct Handle<'a>(pub usize, pub &'a PhantomPinned); [INFO] [stderr] | ------ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | fields in this struct [INFO] [stderr] | [INFO] [stderr] = help: consider removing these fields [INFO] [stderr] = note: `Handle` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: variants `Info`, `Read`, `Write`, and `Flush` are never constructed [INFO] [stderr] --> src/file.rs:89:5 [INFO] [stderr] | [INFO] [stderr] 88 | pub enum FileOptions { [INFO] [stderr] | ----------- variants in this enum [INFO] [stderr] 89 | Info = 0, [INFO] [stderr] | ^^^^ [INFO] [stderr] 90 | Read = 1, [INFO] [stderr] | ^^^^ [INFO] [stderr] 91 | Write = 2, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 92 | Flush = 3 [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `FileOptions` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: methods `io`, `read`, `write`, and `flush` are never used [INFO] [stderr] --> src/file.rs:123:8 [INFO] [stderr] | [INFO] [stderr] 95 | pub trait FileIO: Interrupt + Info { [INFO] [stderr] | ------ methods in this trait [INFO] [stderr] ... [INFO] [stderr] 123 | fn io(&self, option: FileOptions, data: Option) -> Result { [INFO] [stderr] | ^^ [INFO] [stderr] ... [INFO] [stderr] 128 | fn read(&self, data: Handle) -> Result { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 132 | fn write(&self, data: Handle) -> Result { [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 136 | fn flush(&self) -> Result { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `pop_handle` is never used [INFO] [stderr] --> src/global.rs:26:8 [INFO] [stderr] | [INFO] [stderr] 26 | pub fn pop_handle<'a>(index: usize) -> Option> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `handle` is never used [INFO] [stderr] --> src/global.rs:40:8 [INFO] [stderr] | [INFO] [stderr] 40 | pub fn handle<'a>(index: usize) -> Option> { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/js/event_loop.rs:4:15 [INFO] [stderr] | [INFO] [stderr] 4 | struct Worker(usize); [INFO] [stderr] | ------ ^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this struct [INFO] [stderr] | [INFO] [stderr] = help: consider removing this field [INFO] [stderr] = note: `Worker` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged [INFO] [stderr] --> src/global.rs:12:59 [INFO] [stderr] | [INFO] [stderr] 12 | let handle: *mut Handle = std::mem::transmute(FILE_HANDLES.get_unchecked_mut(HANDLE_INDEX)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static is discouraged [INFO] [stderr] --> src/global.rs:15:18 [INFO] [stderr] | [INFO] [stderr] 15 | Some(FILE_HANDLES.get_unchecked(HANDLE_INDEX - 1)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static is discouraged [INFO] [stderr] --> src/global.rs:29:26 [INFO] [stderr] | [INFO] [stderr] 29 | let handle = FILE_HANDLES.get_unchecked(index); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged [INFO] [stderr] --> src/global.rs:31:43 [INFO] [stderr] | [INFO] [stderr] 31 | let handle_to_overwrite = FILE_HANDLES.get_unchecked_mut(range.start); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static is discouraged [INFO] [stderr] --> src/global.rs:32:41 [INFO] [stderr] | [INFO] [stderr] 32 | *handle_to_overwrite = *FILE_HANDLES.get_unchecked(range.start + 1); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static is discouraged [INFO] [stderr] --> src/global.rs:41:14 [INFO] [stderr] | [INFO] [stderr] 41 | unsafe { FILE_HANDLES.get(index).copied() } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged [INFO] [stderr] --> src/js/event_loop.rs:14:14 [INFO] [stderr] | [INFO] [stderr] 14 | unsafe { &mut ARBITRATOR } [INFO] [stderr] | ^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] help: use `&raw mut` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 14 | unsafe { &raw mut ARBITRATOR } [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: `hapt-vm` (bin "hapt-vm" test) generated 17 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/hapt_vm-f328515725eb575d) [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; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "dddb8b600e6153f82683dbffa35d0bca5beb077565226e83079becc8ef4c1d00", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dddb8b600e6153f82683dbffa35d0bca5beb077565226e83079becc8ef4c1d00", kill_on_drop: false }` [INFO] [stdout] dddb8b600e6153f82683dbffa35d0bca5beb077565226e83079becc8ef4c1d00