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: 582993146pull/14710/head
parent
ba7067c9fa
commit
24dfcacc68
1 changed files with 2 additions and 4 deletions
Loading…
Reference in new issue