> This latter point is particularly interesting; the Rust compiler will not compile a program that has a potential race condition in it.
I feel obliged to point out that this is false. Rust prevents _data races_, but not _race conditions_. You can read more in the Rustonomicon here: https://doc.rust-lang.org/nomicon/races.html