you are viewing a single comment's thread
view the rest of the comments
[–] [S] 25 points 1 day ago (3 children)

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

  • source
  • parent
  • hideshow 3 child comments
  • [–] 13 points 1 day ago (2 children)

    It's that damn borrow checker again! Try the rust-- compiler, it disables that antifeature.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 6 hours ago (1 child)

    I am scared... But is rust without borrow checker actually a goodenough language ?

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 5 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.

  • source
  • parent