Might it be useful to turn this the other way up, and introduce an option to *add* bounds checks to unsafe indexing when debugging? It seems like removing that undefined behaviour would make debugging of unsafe code easier, like the optional bounds checks for unsafe programming languages that people are referring to.
(This may be silly, unnecessary, already done, or infeasible, or I may be missing something obvious---I have yet to reach my intended level of familiarity with rust. But it seemed like a question worth asking). David
_______________________________________________ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev