4 ms·
If you could disable the borrow checker globally, projects would do it, and it would become impossible to compile anything with it enabled. You can already dis
by whatshisface 10mo ago
If you could disable the borrow checker globally, projects would do it, and it would become impossible to compile anything with it enabled.
You can already disable it locally: the unsafe keyword is for that.
- gpm 10mo agoThe unsafe keyword doesn't disable the borrow checker... it lets you interact with different pointer types that aren't borrow checked, but if you're using the normal reference types in rust the same guardrails are still in place.