Y
Hacker News
new
|
ask
|
show
|
jobs
by
whatshisface
173 days 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.
1 comments
gpm
173 days ago
The 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.
link