[INFO] cloning repository https://github.com/djmill0326/iBootloader [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/djmill0326/iBootloader" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdjmill0326%2FiBootloader", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdjmill0326%2FiBootloader'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 43412e77b14ca8a8788be66a7fd6be5704bde6b5 [INFO] checking djmill0326/iBootloader/43412e77b14ca8a8788be66a7fd6be5704bde6b5 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdjmill0326%2FiBootloader" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/djmill0326/iBootloader on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/djmill0326/iBootloader [INFO] finished tweaking git repo https://github.com/djmill0326/iBootloader [INFO] tweaked toml for git repo https://github.com/djmill0326/iBootloader written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/djmill0326/iBootloader 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4976765fcd2d923618669f789983657cdbf0b43c07462baef4f5fcf5011a6d21 [INFO] running `Command { std: "docker" "start" "-a" "4976765fcd2d923618669f789983657cdbf0b43c07462baef4f5fcf5011a6d21", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4976765fcd2d923618669f789983657cdbf0b43c07462baef4f5fcf5011a6d21", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4976765fcd2d923618669f789983657cdbf0b43c07462baef4f5fcf5011a6d21", kill_on_drop: false }` [INFO] [stdout] 4976765fcd2d923618669f789983657cdbf0b43c07462baef4f5fcf5011a6d21 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ef7d6caa4758c86de66d431c672bbd7689ca8193d8600009205fd6074e4897f6 [INFO] running `Command { std: "docker" "start" "-a" "ef7d6caa4758c86de66d431c672bbd7689ca8193d8600009205fd6074e4897f6", kill_on_drop: false }` [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.90 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Compiling bumpalo v3.14.0 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling wasm-bindgen v0.2.90 [INFO] [stderr] Checking iBootloader v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused macro definition: `map` [INFO] [stdout] --> haptloader/bootloader.rs:277:18 [INFO] [stdout] | [INFO] [stdout] 277 | macro_rules! map { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `map` [INFO] [stdout] --> haptloader/bootloader.rs:277:18 [INFO] [stdout] | [INFO] [stdout] 277 | macro_rules! map { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.90 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.90 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.90 [INFO] [stderr] Checking hapt-rt v1.0.0 (/opt/rustwide/workdir/hapt-rt) [INFO] [stdout] warning: unused macro definition: `map` [INFO] [stdout] --> hapt-rt/src/bootloader.rs:277:18 [INFO] [stdout] | [INFO] [stdout] 277 | macro_rules! map { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `map` [INFO] [stdout] --> hapt-rt/src/bootloader.rs:277:18 [INFO] [stdout] | [INFO] [stdout] 277 | macro_rules! map { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> haptloader/bootloader.rs:68:42 [INFO] [stdout] | [INFO] [stdout] 68 | Ok((unsafe { std::mem::transmute(&LOCAL_STORAGE) }, 0xFFFF + key)) [INFO] [stdout] | ^^^^^^^^^^^^^^ shared 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 shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 68 | Ok((unsafe { std::mem::transmute(addr_of!(LOCAL_STORAGE)) }, 0xFFFF + key)) [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> haptloader/bootloader.rs:119:67 [INFO] [stdout] | [INFO] [stdout] 119 | META.get(0).map_or_else(|| eprintln!("get failure"), |x| Proxy::send(port)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> haptloader/bootloader.rs:147:23 [INFO] [stdout] | [INFO] [stdout] 147 | fn call_super(x: Interner) -> Metaloader { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> haptloader/bootloader.rs:193:20 [INFO] [stdout] | [INFO] [stdout] 193 | fn send(data: T) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> haptloader/bootloader.rs:166:39 [INFO] [stdout] | [INFO] [stdout] 166 | let _ = iters.iter().map(|x| println!("{:?}", global_proxy!(haptloader/v1).0)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] ... [INFO] [stdout] 230 | call!([haptloader/Proxy] <= { cleanup(); x } =>) [INFO] [stdout] | ------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `stdcall` which comes from the expansion of the macro `call` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> haptloader/bootloader.rs:235:21 [INFO] [stdout] | [INFO] [stdout] 235 | fn merge(x: T, ext: Proxy) -> isize { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `RESET_0` is never used [INFO] [stdout] --> haptloader/bootloader.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | static RESET_0: [I16;2] = xy!(unsafe [LOCAL_STORAGE[0], LOCAL_STORAGE[1]]); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `RESET_1` is never used [INFO] [stdout] --> haptloader/bootloader.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | static RESET_1: [I16;2] = xy!(unsafe [LOCAL_STORAGE[1], LOCAL_STORAGE[2]]); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `RESET_2` is never used [INFO] [stdout] --> haptloader/bootloader.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | static RESET_2: [I16;2] = xy!(unsafe [LOCAL_STORAGE[2], LOCAL_STORAGE[3]]); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `RESET_VECTORS` is never used [INFO] [stdout] --> haptloader/bootloader.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | static RESET_VECTORS: [I16;3] = [RESET_0[0], RESET_1[0], RESET_2[0]]; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `RESET_A` is never used [INFO] [stdout] --> haptloader/bootloader.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | static RESET_A: u8 = RESET_VECTORS[0].0 as u8; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `RESET_B` is never used [INFO] [stdout] --> haptloader/bootloader.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | static RESET_B: u8 = RESET_VECTORS[0].1 as u8; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `RESET_C` is never used [INFO] [stdout] --> haptloader/bootloader.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | static RESET_C: u8 = RESET_VECTORS[0].0 as u8; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `RESET_D` is never used [INFO] [stdout] --> haptloader/bootloader.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | static RESET_D: u8 = RESET_VECTORS[0].1 as u8; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `JUMPER_A` is never used [INFO] [stdout] --> haptloader/bootloader.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | static JUMPER_A: [u8; 4] = [RESET_A, RESET_B, RESET_C, RESET_D]; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `JUMPER_B` is never used [INFO] [stdout] --> haptloader/bootloader.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | static JUMPER_B: [u8; 4] = [RESET_D, RESET_C, RESET_B, RESET_A]; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INT` is never used [INFO] [stdout] --> haptloader/bootloader.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | static INT: [u8; 4] = JUMPER_A; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `LONG` is never used [INFO] [stdout] --> haptloader/bootloader.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | static LONG: [u8; 8] = [RESET_A, RESET_B, RESET_C, RESET_D, RESET_D, RESET_C, RESET_B, RESET_A]; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `U16` is never used [INFO] [stdout] --> haptloader/bootloader.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | static U16: I16 = I16 (0, 0); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `U32` is never used [INFO] [stdout] --> haptloader/bootloader.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | static U32: [I16; 2] = xy!(unsafe INT); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `U64` is never used [INFO] [stdout] --> haptloader/bootloader.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | static U64: [u32; 2] = xy!(unsafe LONG); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get` is never used [INFO] [stdout] --> haptloader/bootloader.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | fn get(key: usize) -> u64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_jumper` is never used [INFO] [stdout] --> haptloader/bootloader.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | fn set_jumper(key: usize, value: I16) -> Output { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_pin` is never used [INFO] [stdout] --> haptloader/bootloader.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | fn set_pin(key: usize, value: I16) -> Output { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_vector` is never used [INFO] [stdout] --> haptloader/bootloader.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 79 | fn set_vector(key: usize, value: I16) -> Output { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `LOADER` is never used [INFO] [stdout] --> haptloader/bootloader.rs:101:12 [INFO] [stdout] | [INFO] [stdout] 101 | static LOADER: Metaloader = global_proxy!(haptloader/v1); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hapt_storage` is never used [INFO] [stdout] --> haptloader/bootloader.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | fn hapt_storage() -> Interner { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cleanup` is never used [INFO] [stdout] --> haptloader/bootloader.rs:107:8 [INFO] [stdout] | [INFO] [stdout] 107 | fn cleanup() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Metaloader` is never constructed [INFO] [stdout] --> haptloader/bootloader.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 112 | struct Metaloader(i128); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `META` is never used [INFO] [stdout] --> haptloader/bootloader.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 114 | static META: [Metaloader; 3] = [Metaloader(42), Metaloader(0), Metaloader(1)]; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `PROXY` is never used [INFO] [stdout] --> haptloader/bootloader.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 115 | static PROXY: Metaloader = Metaloader(42); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `get_hashcode`, `init`, and `get` are never used [INFO] [stdout] --> haptloader/bootloader.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 117 | impl Metaloader { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] 118 | fn get_hashcode(port: &Proxy) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | fn init(name: &str, id: i128) -> Metaloader { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | fn get(hash: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Superclass` is never used [INFO] [stdout] --> haptloader/bootloader.rs:137:11 [INFO] [stdout] | [INFO] [stdout] 137 | trait Superclass { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Fn` is never used [INFO] [stdout] --> haptloader/bootloader.rs:153:11 [INFO] [stdout] | [INFO] [stdout] 153 | trait Fn: Superclass + Sized { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `send` and `recv` are never used [INFO] [stdout] --> haptloader/bootloader.rs:193:12 [INFO] [stdout] | [INFO] [stdout] 192 | impl Proxy { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] 193 | fn send(data: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | fn recv(hook: &mut Interner) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProxyPass` is never constructed [INFO] [stdout] --> haptloader/bootloader.rs:206:12 [INFO] [stdout] | [INFO] [stdout] 206 | struct ProxyPass( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ProxyTrait` is never used [INFO] [stdout] --> haptloader/bootloader.rs:234:11 [INFO] [stdout] | [INFO] [stdout] 234 | trait ProxyTrait: Superclass { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `U16` is never used [INFO] [stdout] --> haptloader/bootloader.rs:250:10 [INFO] [stdout] | [INFO] [stdout] 250 | type U16 = Proxy; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `U24` is never constructed [INFO] [stdout] --> haptloader/bootloader.rs:252:12 [INFO] [stdout] | [INFO] [stdout] 252 | struct U24(U16, i8); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `U48` is never constructed [INFO] [stdout] --> haptloader/bootloader.rs:253:12 [INFO] [stdout] | [INFO] [stdout] 253 | struct U48(U24, U16, i8); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Intern` is never used [INFO] [stdout] --> haptloader/bootloader.rs:258:11 [INFO] [stdout] | [INFO] [stdout] 258 | trait Intern: Send + Unpin {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> haptloader/bootloader.rs:262:15 [INFO] [stdout] | [INFO] [stdout] 262 | struct Rc(Gc, I16); [INFO] [stdout] | -- ^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> haptloader/header.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct File(usize); [INFO] [stdout] | ---- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> haptloader/header.rs:17:20 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Version(u8, u8, Semver); [INFO] [stdout] | ------- ^^ ^^ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `version` are never read [INFO] [stdout] --> haptloader/header.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct HeaderItem { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 38 | name: Arc, [INFO] [stdout] | ^^^^ [INFO] [stdout] 39 | version: Version [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `header` and `data` are never read [INFO] [stdout] --> haptloader/header.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct HeaderData { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 52 | header: HeaderItem, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 53 | data: HeaderItem [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `header` and `function` are never read [INFO] [stdout] --> haptloader/header.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct HeaderFunction { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 66 | header: HeaderItem, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 67 | function: HeaderData [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> haptloader/header.rs:79:19 [INFO] [stdout] | [INFO] [stdout] 79 | pub struct Header(HeaderItem, HeaderFunction, HeaderData); [INFO] [stdout] | ------ ^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `header`, `intern`, `data`, and `functions` are never read [INFO] [stdout] --> haptloader/header.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 84 | pub struct ParseState { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 85 | header: HeaderItem, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 86 | intern: HeaderData, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 87 | data: HeaderData, [INFO] [stdout] | ^^^^ [INFO] [stdout] 88 | functions: HeaderFunction [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> haptloader/header.rs:102:23 [INFO] [stdout] | [INFO] [stdout] 102 | pub struct Parser(ParseState); [INFO] [stdout] | ------ ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> haptloader/header.rs:112:23 [INFO] [stdout] | [INFO] [stdout] 112 | pub struct Header(super::Header, parser::Parser); [INFO] [stdout] | ------ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 52 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> haptloader/bootloader.rs:68:42 [INFO] [stdout] | [INFO] [stdout] 68 | Ok((unsafe { std::mem::transmute(&LOCAL_STORAGE) }, 0xFFFF + key)) [INFO] [stdout] | ^^^^^^^^^^^^^^ shared 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 shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 68 | Ok((unsafe { std::mem::transmute(addr_of!(LOCAL_STORAGE)) }, 0xFFFF + key)) [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> haptloader/bootloader.rs:119:67 [INFO] [stdout] | [INFO] [stdout] 119 | META.get(0).map_or_else(|| eprintln!("get failure"), |x| Proxy::send(port)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> haptloader/bootloader.rs:147:23 [INFO] [stdout] | [INFO] [stdout] 147 | fn call_super(x: Interner) -> Metaloader { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> haptloader/bootloader.rs:193:20 [INFO] [stdout] | [INFO] [stdout] 193 | fn send(data: T) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> haptloader/bootloader.rs:166:39 [INFO] [stdout] | [INFO] [stdout] 166 | let _ = iters.iter().map(|x| println!("{:?}", global_proxy!(haptloader/v1).0)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] ... [INFO] [stdout] 230 | call!([haptloader/Proxy] <= { cleanup(); x } =>) [INFO] [stdout] | ------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `stdcall` which comes from the expansion of the macro `call` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> haptloader/bootloader.rs:235:21 [INFO] [stdout] | [INFO] [stdout] 235 | fn merge(x: T, ext: Proxy) -> isize { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `RESET_0` is never used [INFO] [stdout] --> haptloader/bootloader.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | static RESET_0: [I16;2] = xy!(unsafe [LOCAL_STORAGE[0], LOCAL_STORAGE[1]]); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `RESET_1` is never used [INFO] [stdout] --> haptloader/bootloader.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | static RESET_1: [I16;2] = xy!(unsafe [LOCAL_STORAGE[1], LOCAL_STORAGE[2]]); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `RESET_2` is never used [INFO] [stdout] --> haptloader/bootloader.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | static RESET_2: [I16;2] = xy!(unsafe [LOCAL_STORAGE[2], LOCAL_STORAGE[3]]); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `RESET_VECTORS` is never used [INFO] [stdout] --> haptloader/bootloader.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | static RESET_VECTORS: [I16;3] = [RESET_0[0], RESET_1[0], RESET_2[0]]; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `RESET_A` is never used [INFO] [stdout] --> haptloader/bootloader.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | static RESET_A: u8 = RESET_VECTORS[0].0 as u8; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `RESET_B` is never used [INFO] [stdout] --> haptloader/bootloader.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | static RESET_B: u8 = RESET_VECTORS[0].1 as u8; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `RESET_C` is never used [INFO] [stdout] --> haptloader/bootloader.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | static RESET_C: u8 = RESET_VECTORS[0].0 as u8; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `RESET_D` is never used [INFO] [stdout] --> haptloader/bootloader.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | static RESET_D: u8 = RESET_VECTORS[0].1 as u8; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `JUMPER_A` is never used [INFO] [stdout] --> haptloader/bootloader.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | static JUMPER_A: [u8; 4] = [RESET_A, RESET_B, RESET_C, RESET_D]; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `JUMPER_B` is never used [INFO] [stdout] --> haptloader/bootloader.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | static JUMPER_B: [u8; 4] = [RESET_D, RESET_C, RESET_B, RESET_A]; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INT` is never used [INFO] [stdout] --> haptloader/bootloader.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | static INT: [u8; 4] = JUMPER_A; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `LONG` is never used [INFO] [stdout] --> haptloader/bootloader.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | static LONG: [u8; 8] = [RESET_A, RESET_B, RESET_C, RESET_D, RESET_D, RESET_C, RESET_B, RESET_A]; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `U16` is never used [INFO] [stdout] --> haptloader/bootloader.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | static U16: I16 = I16 (0, 0); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `U32` is never used [INFO] [stdout] --> haptloader/bootloader.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | static U32: [I16; 2] = xy!(unsafe INT); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `U64` is never used [INFO] [stdout] --> haptloader/bootloader.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | static U64: [u32; 2] = xy!(unsafe LONG); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get` is never used [INFO] [stdout] --> haptloader/bootloader.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | fn get(key: usize) -> u64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_jumper` is never used [INFO] [stdout] --> haptloader/bootloader.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | fn set_jumper(key: usize, value: I16) -> Output { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_pin` is never used [INFO] [stdout] --> haptloader/bootloader.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | fn set_pin(key: usize, value: I16) -> Output { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_vector` is never used [INFO] [stdout] --> haptloader/bootloader.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 79 | fn set_vector(key: usize, value: I16) -> Output { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `LOADER` is never used [INFO] [stdout] --> haptloader/bootloader.rs:101:12 [INFO] [stdout] | [INFO] [stdout] 101 | static LOADER: Metaloader = global_proxy!(haptloader/v1); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hapt_storage` is never used [INFO] [stdout] --> haptloader/bootloader.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | fn hapt_storage() -> Interner { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cleanup` is never used [INFO] [stdout] --> haptloader/bootloader.rs:107:8 [INFO] [stdout] | [INFO] [stdout] 107 | fn cleanup() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Metaloader` is never constructed [INFO] [stdout] --> haptloader/bootloader.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 112 | struct Metaloader(i128); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `META` is never used [INFO] [stdout] --> haptloader/bootloader.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 114 | static META: [Metaloader; 3] = [Metaloader(42), Metaloader(0), Metaloader(1)]; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `PROXY` is never used [INFO] [stdout] --> haptloader/bootloader.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 115 | static PROXY: Metaloader = Metaloader(42); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `get_hashcode`, `init`, and `get` are never used [INFO] [stdout] --> haptloader/bootloader.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 117 | impl Metaloader { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] 118 | fn get_hashcode(port: &Proxy) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | fn init(name: &str, id: i128) -> Metaloader { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | fn get(hash: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Superclass` is never used [INFO] [stdout] --> haptloader/bootloader.rs:137:11 [INFO] [stdout] | [INFO] [stdout] 137 | trait Superclass { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Fn` is never used [INFO] [stdout] --> haptloader/bootloader.rs:153:11 [INFO] [stdout] | [INFO] [stdout] 153 | trait Fn: Superclass + Sized { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `send` and `recv` are never used [INFO] [stdout] --> haptloader/bootloader.rs:193:12 [INFO] [stdout] | [INFO] [stdout] 192 | impl Proxy { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] 193 | fn send(data: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | fn recv(hook: &mut Interner) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProxyPass` is never constructed [INFO] [stdout] --> haptloader/bootloader.rs:206:12 [INFO] [stdout] | [INFO] [stdout] 206 | struct ProxyPass( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ProxyTrait` is never used [INFO] [stdout] --> haptloader/bootloader.rs:234:11 [INFO] [stdout] | [INFO] [stdout] 234 | trait ProxyTrait: Superclass { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `U16` is never used [INFO] [stdout] --> haptloader/bootloader.rs:250:10 [INFO] [stdout] | [INFO] [stdout] 250 | type U16 = Proxy; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `U24` is never constructed [INFO] [stdout] --> haptloader/bootloader.rs:252:12 [INFO] [stdout] | [INFO] [stdout] 252 | struct U24(U16, i8); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `U48` is never constructed [INFO] [stdout] --> haptloader/bootloader.rs:253:12 [INFO] [stdout] | [INFO] [stdout] 253 | struct U48(U24, U16, i8); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Intern` is never used [INFO] [stdout] --> haptloader/bootloader.rs:258:11 [INFO] [stdout] | [INFO] [stdout] 258 | trait Intern: Send + Unpin {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> haptloader/bootloader.rs:262:15 [INFO] [stdout] | [INFO] [stdout] 262 | struct Rc(Gc, I16); [INFO] [stdout] | -- ^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> haptloader/header.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct File(usize); [INFO] [stdout] | ---- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> haptloader/header.rs:17:20 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Version(u8, u8, Semver); [INFO] [stdout] | ------- ^^ ^^ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `version` are never read [INFO] [stdout] --> haptloader/header.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct HeaderItem { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 38 | name: Arc, [INFO] [stdout] | ^^^^ [INFO] [stdout] 39 | version: Version [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `header` and `data` are never read [INFO] [stdout] --> haptloader/header.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct HeaderData { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 52 | header: HeaderItem, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 53 | data: HeaderItem [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `header` and `function` are never read [INFO] [stdout] --> haptloader/header.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct HeaderFunction { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 66 | header: HeaderItem, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 67 | function: HeaderData [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> haptloader/header.rs:79:19 [INFO] [stdout] | [INFO] [stdout] 79 | pub struct Header(HeaderItem, HeaderFunction, HeaderData); [INFO] [stdout] | ------ ^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `header`, `intern`, `data`, and `functions` are never read [INFO] [stdout] --> haptloader/header.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 84 | pub struct ParseState { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 85 | header: HeaderItem, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 86 | intern: HeaderData, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 87 | data: HeaderData, [INFO] [stdout] | ^^^^ [INFO] [stdout] 88 | functions: HeaderFunction [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> haptloader/header.rs:102:23 [INFO] [stdout] | [INFO] [stdout] 102 | pub struct Parser(ParseState); [INFO] [stdout] | ------ ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> haptloader/header.rs:112:23 [INFO] [stdout] | [INFO] [stdout] 112 | pub struct Header(super::Header, parser::Parser); [INFO] [stdout] | ------ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 52 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> hapt-rt/src/bootloader.rs:68:42 [INFO] [stdout] | [INFO] [stdout] 68 | Ok((unsafe { std::mem::transmute(&LOCAL_STORAGE) }, 0xFFFF + key)) [INFO] [stdout] | ^^^^^^^^^^^^^^ shared 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 shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 68 | Ok((unsafe { std::mem::transmute(addr_of!(LOCAL_STORAGE)) }, 0xFFFF + key)) [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> hapt-rt/src/bootloader.rs:119:67 [INFO] [stdout] | [INFO] [stdout] 119 | META.get(0).map_or_else(|| eprintln!("get failure"), |x| Proxy::send(port)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> hapt-rt/src/bootloader.rs:147:23 [INFO] [stdout] | [INFO] [stdout] 147 | fn call_super(x: Interner) -> Metaloader { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> hapt-rt/src/bootloader.rs:193:20 [INFO] [stdout] | [INFO] [stdout] 193 | fn send(data: T) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> hapt-rt/src/bootloader.rs:166:39 [INFO] [stdout] | [INFO] [stdout] 166 | let _ = iters.iter().map(|x| println!("{:?}", global_proxy!(haptloader/v1).0)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] ... [INFO] [stdout] 230 | call!([haptloader/Proxy] <= { cleanup(); x } =>) [INFO] [stdout] | ------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `stdcall` which comes from the expansion of the macro `call` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> hapt-rt/src/bootloader.rs:235:21 [INFO] [stdout] | [INFO] [stdout] 235 | fn merge(x: T, ext: Proxy) -> isize { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function cannot return without recursing [INFO] [stdout] --> hapt-rt/src/bootloader.rs:314:5 [INFO] [stdout] | [INFO] [stdout] 314 | pub fn init() -> Result<(usize, usize), ()> { init() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ------ recursive call site [INFO] [stdout] | | [INFO] [stdout] | cannot return without recursing [INFO] [stdout] | [INFO] [stdout] = help: a `loop` may express intention better if this is on purpose [INFO] [stdout] = note: `#[warn(unconditional_recursion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `RESET_0` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | static RESET_0: [I16;2] = xy!(unsafe [LOCAL_STORAGE[0], LOCAL_STORAGE[1]]); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `RESET_1` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | static RESET_1: [I16;2] = xy!(unsafe [LOCAL_STORAGE[1], LOCAL_STORAGE[2]]); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `RESET_2` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | static RESET_2: [I16;2] = xy!(unsafe [LOCAL_STORAGE[2], LOCAL_STORAGE[3]]); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `RESET_VECTORS` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | static RESET_VECTORS: [I16;3] = [RESET_0[0], RESET_1[0], RESET_2[0]]; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `RESET_A` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | static RESET_A: u8 = RESET_VECTORS[0].0 as u8; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `RESET_B` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | static RESET_B: u8 = RESET_VECTORS[0].1 as u8; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `RESET_C` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | static RESET_C: u8 = RESET_VECTORS[0].0 as u8; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `RESET_D` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | static RESET_D: u8 = RESET_VECTORS[0].1 as u8; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `JUMPER_A` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | static JUMPER_A: [u8; 4] = [RESET_A, RESET_B, RESET_C, RESET_D]; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `JUMPER_B` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | static JUMPER_B: [u8; 4] = [RESET_D, RESET_C, RESET_B, RESET_A]; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INT` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | static INT: [u8; 4] = JUMPER_A; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `LONG` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | static LONG: [u8; 8] = [RESET_A, RESET_B, RESET_C, RESET_D, RESET_D, RESET_C, RESET_B, RESET_A]; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `U16` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | static U16: I16 = I16 (0, 0); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `U32` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | static U32: [I16; 2] = xy!(unsafe INT); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `U64` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | static U64: [u32; 2] = xy!(unsafe LONG); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | fn get(key: usize) -> u64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_jumper` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | fn set_jumper(key: usize, value: I16) -> Output { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_pin` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | fn set_pin(key: usize, value: I16) -> Output { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_vector` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 79 | fn set_vector(key: usize, value: I16) -> Output { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `LOADER` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:101:12 [INFO] [stdout] | [INFO] [stdout] 101 | static LOADER: Metaloader = global_proxy!(haptloader/v1); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hapt_storage` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | fn hapt_storage() -> Interner { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cleanup` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:107:8 [INFO] [stdout] | [INFO] [stdout] 107 | fn cleanup() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Metaloader` is never constructed [INFO] [stdout] --> hapt-rt/src/bootloader.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 112 | struct Metaloader(i128); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `META` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 114 | static META: [Metaloader; 3] = [Metaloader(42), Metaloader(0), Metaloader(1)]; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `PROXY` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 115 | static PROXY: Metaloader = Metaloader(42); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `get_hashcode`, `init`, and `get` are never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 117 | impl Metaloader { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] 118 | fn get_hashcode(port: &Proxy) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | fn init(name: &str, id: i128) -> Metaloader { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | fn get(hash: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Superclass` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:137:11 [INFO] [stdout] | [INFO] [stdout] 137 | trait Superclass { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Fn` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:153:11 [INFO] [stdout] | [INFO] [stdout] 153 | trait Fn: Superclass + Sized { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `send` and `recv` are never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:193:12 [INFO] [stdout] | [INFO] [stdout] 192 | impl Proxy { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] 193 | fn send(data: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | fn recv(hook: &mut Interner) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProxyPass` is never constructed [INFO] [stdout] --> hapt-rt/src/bootloader.rs:206:12 [INFO] [stdout] | [INFO] [stdout] 206 | struct ProxyPass( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ProxyTrait` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:234:11 [INFO] [stdout] | [INFO] [stdout] 234 | trait ProxyTrait: Superclass { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `U16` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:250:10 [INFO] [stdout] | [INFO] [stdout] 250 | type U16 = Proxy; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `U24` is never constructed [INFO] [stdout] --> hapt-rt/src/bootloader.rs:252:12 [INFO] [stdout] | [INFO] [stdout] 252 | struct U24(U16, i8); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `U48` is never constructed [INFO] [stdout] --> hapt-rt/src/bootloader.rs:253:12 [INFO] [stdout] | [INFO] [stdout] 253 | struct U48(U24, U16, i8); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Intern` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:258:11 [INFO] [stdout] | [INFO] [stdout] 258 | trait Intern: Send + Unpin {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> hapt-rt/src/bootloader.rs:262:15 [INFO] [stdout] | [INFO] [stdout] 262 | struct Rc(Gc, I16); [INFO] [stdout] | -- ^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:314:12 [INFO] [stdout] | [INFO] [stdout] 314 | pub fn init() -> Result<(usize, usize), ()> { init() } [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 45 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> hapt-rt/src/bootloader.rs:68:42 [INFO] [stdout] | [INFO] [stdout] 68 | Ok((unsafe { std::mem::transmute(&LOCAL_STORAGE) }, 0xFFFF + key)) [INFO] [stdout] | ^^^^^^^^^^^^^^ shared 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 shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 68 | Ok((unsafe { std::mem::transmute(addr_of!(LOCAL_STORAGE)) }, 0xFFFF + key)) [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> hapt-rt/src/bootloader.rs:119:67 [INFO] [stdout] | [INFO] [stdout] 119 | META.get(0).map_or_else(|| eprintln!("get failure"), |x| Proxy::send(port)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> hapt-rt/src/bootloader.rs:147:23 [INFO] [stdout] | [INFO] [stdout] 147 | fn call_super(x: Interner) -> Metaloader { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> hapt-rt/src/bootloader.rs:193:20 [INFO] [stdout] | [INFO] [stdout] 193 | fn send(data: T) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> hapt-rt/src/bootloader.rs:166:39 [INFO] [stdout] | [INFO] [stdout] 166 | let _ = iters.iter().map(|x| println!("{:?}", global_proxy!(haptloader/v1).0)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] ... [INFO] [stdout] 230 | call!([haptloader/Proxy] <= { cleanup(); x } =>) [INFO] [stdout] | ------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `stdcall` which comes from the expansion of the macro `call` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> hapt-rt/src/bootloader.rs:235:21 [INFO] [stdout] | [INFO] [stdout] 235 | fn merge(x: T, ext: Proxy) -> isize { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function cannot return without recursing [INFO] [stdout] --> hapt-rt/src/bootloader.rs:314:5 [INFO] [stdout] | [INFO] [stdout] 314 | pub fn init() -> Result<(usize, usize), ()> { init() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ------ recursive call site [INFO] [stdout] | | [INFO] [stdout] | cannot return without recursing [INFO] [stdout] | [INFO] [stdout] = help: a `loop` may express intention better if this is on purpose [INFO] [stdout] = note: `#[warn(unconditional_recursion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `RESET_0` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | static RESET_0: [I16;2] = xy!(unsafe [LOCAL_STORAGE[0], LOCAL_STORAGE[1]]); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `RESET_1` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | static RESET_1: [I16;2] = xy!(unsafe [LOCAL_STORAGE[1], LOCAL_STORAGE[2]]); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `RESET_2` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | static RESET_2: [I16;2] = xy!(unsafe [LOCAL_STORAGE[2], LOCAL_STORAGE[3]]); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `RESET_VECTORS` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | static RESET_VECTORS: [I16;3] = [RESET_0[0], RESET_1[0], RESET_2[0]]; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `RESET_A` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | static RESET_A: u8 = RESET_VECTORS[0].0 as u8; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `RESET_B` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | static RESET_B: u8 = RESET_VECTORS[0].1 as u8; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `RESET_C` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | static RESET_C: u8 = RESET_VECTORS[0].0 as u8; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `RESET_D` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | static RESET_D: u8 = RESET_VECTORS[0].1 as u8; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `JUMPER_A` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | static JUMPER_A: [u8; 4] = [RESET_A, RESET_B, RESET_C, RESET_D]; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `JUMPER_B` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | static JUMPER_B: [u8; 4] = [RESET_D, RESET_C, RESET_B, RESET_A]; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INT` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | static INT: [u8; 4] = JUMPER_A; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `LONG` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | static LONG: [u8; 8] = [RESET_A, RESET_B, RESET_C, RESET_D, RESET_D, RESET_C, RESET_B, RESET_A]; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `U16` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | static U16: I16 = I16 (0, 0); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `U32` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | static U32: [I16; 2] = xy!(unsafe INT); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `U64` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | static U64: [u32; 2] = xy!(unsafe LONG); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | fn get(key: usize) -> u64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_jumper` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | fn set_jumper(key: usize, value: I16) -> Output { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_pin` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | fn set_pin(key: usize, value: I16) -> Output { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_vector` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 79 | fn set_vector(key: usize, value: I16) -> Output { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `LOADER` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:101:12 [INFO] [stdout] | [INFO] [stdout] 101 | static LOADER: Metaloader = global_proxy!(haptloader/v1); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hapt_storage` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | fn hapt_storage() -> Interner { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cleanup` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:107:8 [INFO] [stdout] | [INFO] [stdout] 107 | fn cleanup() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Metaloader` is never constructed [INFO] [stdout] --> hapt-rt/src/bootloader.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 112 | struct Metaloader(i128); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `META` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 114 | static META: [Metaloader; 3] = [Metaloader(42), Metaloader(0), Metaloader(1)]; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `PROXY` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 115 | static PROXY: Metaloader = Metaloader(42); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `get_hashcode`, `init`, and `get` are never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 117 | impl Metaloader { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] 118 | fn get_hashcode(port: &Proxy) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | fn init(name: &str, id: i128) -> Metaloader { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | fn get(hash: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Superclass` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:137:11 [INFO] [stdout] | [INFO] [stdout] 137 | trait Superclass { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Fn` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:153:11 [INFO] [stdout] | [INFO] [stdout] 153 | trait Fn: Superclass + Sized { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `send` and `recv` are never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:193:12 [INFO] [stdout] | [INFO] [stdout] 192 | impl Proxy { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] 193 | fn send(data: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | fn recv(hook: &mut Interner) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProxyPass` is never constructed [INFO] [stdout] --> hapt-rt/src/bootloader.rs:206:12 [INFO] [stdout] | [INFO] [stdout] 206 | struct ProxyPass( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ProxyTrait` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:234:11 [INFO] [stdout] | [INFO] [stdout] 234 | trait ProxyTrait: Superclass { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `U16` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:250:10 [INFO] [stdout] | [INFO] [stdout] 250 | type U16 = Proxy; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `U24` is never constructed [INFO] [stdout] --> hapt-rt/src/bootloader.rs:252:12 [INFO] [stdout] | [INFO] [stdout] 252 | struct U24(U16, i8); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `U48` is never constructed [INFO] [stdout] --> hapt-rt/src/bootloader.rs:253:12 [INFO] [stdout] | [INFO] [stdout] 253 | struct U48(U24, U16, i8); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Intern` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:258:11 [INFO] [stdout] | [INFO] [stdout] 258 | trait Intern: Send + Unpin {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> hapt-rt/src/bootloader.rs:262:15 [INFO] [stdout] | [INFO] [stdout] 262 | struct Rc(Gc, I16); [INFO] [stdout] | -- ^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init` is never used [INFO] [stdout] --> hapt-rt/src/bootloader.rs:314:12 [INFO] [stdout] | [INFO] [stdout] 314 | pub fn init() -> Result<(usize, usize), ()> { init() } [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 45 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 31.30s [INFO] running `Command { std: "docker" "inspect" "ef7d6caa4758c86de66d431c672bbd7689ca8193d8600009205fd6074e4897f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ef7d6caa4758c86de66d431c672bbd7689ca8193d8600009205fd6074e4897f6", kill_on_drop: false }` [INFO] [stdout] ef7d6caa4758c86de66d431c672bbd7689ca8193d8600009205fd6074e4897f6