Rust works around the issue by not allowing all the useful things that get you there. There are other useful things like sharing pointers across threads that rust will not let you do - for both better and worse. (better in that you avoid a lot of problems for something you rarely need - worse for those few cases where you actually need to do those and cannot)
Re:Pair Your Compilers at the ABI Café
by Georgelemental on Wednesday May 08, 2024 @02:35PM
(#40301470)
You can share pointers across threads in Rust, it's just `unsafe`.
Rust has none of that, nor does support dynamic linking, so I fail to understand what is it that rustc can offer in that solution space. There is none.