Remix.run Logo
davemp 6 hours ago

    let foo = [1, 2, 3];
    unsafe {
        *foo.get_unchecked_mut(4) = 5;
    }
Not sure why Rust evangelists always seem to ignore that unsafe exists.
dendix 5 hours ago | parent | next [-]

Hmmm... where could the oob access possibly be I can't tell

vmg12 4 hours ago | parent | prev [-]

You can prevent unsafe from being used in a repo with linter rules.