Add rustc flag to disable mutable no-aliasing optimizations?

I think this thread would be helped a lot if the folks asking for this feature could provide some reasonably real world examples of the Rust code they would like to write with this switch enabled. Presumably, the focus would be on codegen, since it seems like that's the actual problem folks care about. That is, show some Rust code today that you would like to write that has non-ideal codegen. That way, we can talk about the actual problem concretely instead of starting out at the gate with a request for a particular solution to that problem.

16 Likes