What about the other way around? Trying to cripple rustc until its features are closer to clang's? For example, removing some of the sanitizers or borrow checker in rustc?
That's a great idea! Unfortunately, I think there's no way to disable rustc's borrow checking or other safety features.
Re:C++ vs. Rust Build Times
by insanitybit on Friday January 06, 2023 @02:20AM
(#34271887)
Just fwiw you can run rust code with sanitizers, no need for miri, which works differently.
If I was going to run sanitizers with the C++ code, for a fair comparison, I would also run the Rust code with Miri. (C++ sanitizers check unsafe code, but without Miri, rustc mostly checks only safe code.)