Bitcoin Core has a good track record with memory safety. So its not clear that Rust would be worth the risk of consensus failures in this case. But maybe. Certainly if you are going to take the risk, Rust would be maybe the only language worth switching to from C++.