3 ms·
No. 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
by strager 4y ago
No.
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.)
- vegerot 4y agoWhat 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?
- strager 4y agoThat's a great idea! Unfortunately, I think there's no way to disable rustc's borrow checking or other safety features.
- insanitybit 4y agoJust fwiw you can run rust code with sanitizers, no need for miri, which works differently.
- strager 4y agoOh, I did not know this.