• Traister101@lemmy.today
    link
    fedilink
    arrow-up
    7
    ·
    2 days ago

    Unsafe Rust code doesn’t turn off the borrow checker, it basically just allows you to play with pointers and call code that the compiler can’t (or can’t right now) statically assert is sound. IE if you roll your own Vtable the functions are safe to call, but the compiler can’t tell so you have to use unsafe