Rust–: Rust without the borrow checker
3 months ago
- #Borrow-Checker
- #Rust
- #Compiler
- A modified Rust compiler (Rust--) with the borrow checker disabled, allowing code that violates Rust's borrowing rules to compile and run.
- Pre-built binaries available for installation via curl command with options for prefix and version.
- Usage instructions include compiling with the modified compiler (~/.rustmm/bin/rustc) and setting up an alias for convenience.
- Examples demonstrate bypassing common Rust borrowing errors, such as multiple mutable borrows and use after move.
- Comparison between normal Rust errors and Rust-- successful compilations for various borrowing scenarios.
- Examples directory contains files showcasing borrow checker violations that compile with Rust--.
- Dual licensed under Apache 2.0 and MIT, based on Rust main branch commit 2848c2eb.