[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] checking djmill0326/hapt-vm/8507cea2227ad7819a4903b6b602b7da31b80091 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdjmill0326%2Fhapt-vm" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/djmill0326/hapt-vm on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "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-tc1/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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a9417f10c0a1f12a197bc178b3a68cfe7a727266c118eee84c03de1a01a778ff [INFO] running `Command { std: "docker" "start" "-a" "a9417f10c0a1f12a197bc178b3a68cfe7a727266c118eee84c03de1a01a778ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a9417f10c0a1f12a197bc178b3a68cfe7a727266c118eee84c03de1a01a778ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a9417f10c0a1f12a197bc178b3a68cfe7a727266c118eee84c03de1a01a778ff", kill_on_drop: false }` [INFO] [stdout] a9417f10c0a1f12a197bc178b3a68cfe7a727266c118eee84c03de1a01a778ff [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8a7e4a582a5457afe560c28c2a37673ea57a35ef3abd09291a11d138f2d34713 [INFO] running `Command { std: "docker" "start" "-a" "8a7e4a582a5457afe560c28c2a37673ea57a35ef3abd09291a11d138f2d34713", kill_on_drop: false }` [INFO] [stderr] Checking hapt-vm v0.1.0 (/opt/rustwide/workdir) [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 issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 14 | unsafe { addr_of_mut!(ARBITRATOR) } [INFO] [stdout] | ~~~~~~~~~~~~~ + [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 issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 14 | unsafe { addr_of_mut!(ARBITRATOR) } [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [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: 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: 11 warnings emitted [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: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.26s [INFO] running `Command { std: "docker" "inspect" "8a7e4a582a5457afe560c28c2a37673ea57a35ef3abd09291a11d138f2d34713", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8a7e4a582a5457afe560c28c2a37673ea57a35ef3abd09291a11d138f2d34713", kill_on_drop: false }` [INFO] [stdout] 8a7e4a582a5457afe560c28c2a37673ea57a35ef3abd09291a11d138f2d34713