Rust–: Rust without the borrow checker

Rust–: Rust without the borrow checker A modified Rust compiler with the borrow checker disabled. This allows code that would normally violate Rust’s borrowing rules to compile and run successfully. Install Pre-built binaries for macOS (Apple Silicon) and Linux (x86_64): curl -sSL https://raw.githubusercontent.com/buyukakyuz/rustmm/main/install.sh | bash Use: ~/.rustmm/bin/rustc your_code.rs To build from source, see BUILDING.md. Examples: Before vs After Example 1: Move Then Use Normal Rust: fn main() { let a = String::from(“hello”); let b = a; println!(“{a}”); } Error in normal Rust: error[E0382]: borrow of moved value: `a` –> test.rs:4:16 | 2 | let a = String::from(“hello”); | – move occurs because `a` has type `String`, which does not implement the `Copy` trait 3 | let b = a; | -…

Read more on Hacker News