Merge "Allow unsafe operations in unsafe functions in generated code." into main