Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minimize the scope of unsafe blocks in gencode
Before this change we would generate nested unsafe blocks that led to compiler warnings. This change minimizes each unsafe block and thereby avoids the nesting and compiler warnings. It's generally a best practice to keep unsafe blocks minimal to avoid the situation where a currently safe function is marked unsafe at a later point and all existing callsides don't need to be updated. PiperOrigin-RevId: 582993146
- Loading branch information