All Rust commits from Facepunch
Fix compile error (even though it's editor only it still can mess up editor if it switches realms)