Live data from Hacker News

you_can::turn_off_the_borrow_checker

docs.rs

1–10 of 24 posts

Re: you_can::turn_off_the_borrow_checker

#10

Macros can secretly add "unsafe" blocks into the code?

Yes. It assumes author of the macro guarantees the safety. Common cases are not adding unsafe{} and leaving this to user, relying on audit tools or [highlighters](https://lukaswirth.dev/posts/semantic-unsafe/), etc. However, it's indeed allowed to silently add unsafe blocks in macros. I'm not working on rust frequently btw, mistakes may exist.
Post reply on HN