From d4bfe52d998dae068ea7e2d44decd234bb090c46 Mon Sep 17 00:00:00 2001 From: Protobuf Team Bot Date: Mon, 4 Mar 2024 12:02:51 -0800 Subject: [PATCH] Deprecate Arena::CreateMessage for OSS. PiperOrigin-RevId: 612534673 --- src/google/protobuf/arena.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/google/protobuf/arena.h b/src/google/protobuf/arena.h index b5400c1d2b..868a90f185 100644 --- a/src/google/protobuf/arena.h +++ b/src/google/protobuf/arena.h @@ -176,9 +176,8 @@ class PROTOBUF_EXPORT PROTOBUF_ALIGNAS(8) Arena final { // Deprecated. Use Create instead. TODO: depreate OSS version // once internal migration to Arena::Create is done. template - PROTOBUF_ALWAYS_INLINE - static T* - CreateMessage(Arena* arena, Args&&... args) { + ABSL_DEPRECATED("Use Create") + static T* CreateMessage(Arena* arena, Args&&... args) { using Type = std::remove_const_t; static_assert( is_arena_constructable::value,