Cheerful Ottering

Results 55 comments of Cheerful Ottering

This sounds like a problem related to rust generics, perhaps not too hard, and I want to try to deal with it.

So, do you think this is a worthwhile effort, or could it be implemented on rust-analyzer?

maybe same problem for https://github.com/hermit-os/uhyve/blob/8d2f7e5cc9a17bdae285a87f10a6634284f42129/src/virtqueue.rs#L38 https://github.com/hermit-os/uhyve/blob/8d2f7e5cc9a17bdae285a87f10a6634284f42129/src/virtqueue.rs#L46 https://github.com/hermit-os/uhyve/blob/8d2f7e5cc9a17bdae285a87f10a6634284f42129/src/virtqueue.rs#L53

another samilar case is: pub fn syscall_dispatch -> fn receive_data

and same problem for: https://github.com/dontpanic92/OpenPAL3/blob/771a2c2963ff98f6774dee0f2055d92f1445f9db/crosscom/runtime/rust/src/defs.rs#L63 https://github.com/dontpanic92/OpenPAL3/blob/771a2c2963ff98f6774dee0f2055d92f1445f9db/crosscom/runtime/rust/src/defs.rs#L73 https://github.com/dontpanic92/OpenPAL3/blob/771a2c2963ff98f6774dee0f2055d92f1445f9db/crosscom/runtime/rust/src/defs.rs#L83

maybe same problem for https://github.com/mycelial/mycelite/blob/8e70fbc116ebc1c088f977afb83a27dd48248d49/libsqlite-sys/src/sqlite_value.rs#L49 and https://github.com/mycelial/mycelite/blob/8e70fbc116ebc1c088f977afb83a27dd48248d49/libsqlite-sys/src/util.rs#L29 but I didn't test them.

same problem for https://github.com/zackradisic/rust-vs-zig/blob/b3eec6154a3026f137ce7370b5cbe0c49d3b666b/loxide/src/obj.rs#L492

maybe also unsound in https://github.com/zackradisic/rust-vs-zig/blob/b3eec6154a3026f137ce7370b5cbe0c49d3b666b/loxide/src/vm.rs#L167 but this is because ``` pub struct VM { pub stack: Stack, ``` which may result dereference a null pointer