• rockSlayer@lemmy.blahaj.zoneOP
    link
    fedilink
    English
    arrow-up
    29
    ·
    1 day ago

    Excellent, thanks for the tip! I’m thinking of writing a linked list and creating reference pointers to the list so I can copy it and change the copy. Unsafe fixed all the problems, but my PC keeps crashing. I think it’s some non-rust util smh

        • Err(()).unwrap()@lemmy.worldM
          link
          fedilink
          arrow-up
          4
          ·
          15 hours ago

          The borrow checker is a feature in the compiler. It only ensures that the source code doesn’t violate its rules at compile time, and if it does, stops the compilation and shows an error message. If the borrow checker is disabled, the code will be compiled even if borrowing rules are violated (as long as the source code is otherwise valid).

          In short: removing the borrow checker turns Rust into C.