Swap std references in generated code for core/alloc references