Split Proxied into Proxied and MutProxied traits. Proxied is not marked as Sized yet, because ProtoStr is still dynamically sized. We will wait for clarity for the string types before marking Proxied Sized. PiperOrigin-RevId: 627707544
diff --git a/src/google/protobuf/compiler/rust/enum.cc b/src/google/protobuf/compiler/rust/enum.cc index 4184ed0..5ce270b 100644 --- a/src/google/protobuf/compiler/rust/enum.cc +++ b/src/google/protobuf/compiler/rust/enum.cc
@@ -393,6 +393,9 @@ impl $pb$::Proxied for $name$ { type View<'a> = $name$; + } + + impl $pb$::MutProxied for $name$ { type Mut<'a> = $pb$::PrimitiveMut<'a, $name$>; }
diff --git a/src/google/protobuf/compiler/rust/message.cc b/src/google/protobuf/compiler/rust/message.cc index 6ee718f..5700ebb 100644 --- a/src/google/protobuf/compiler/rust/message.cc +++ b/src/google/protobuf/compiler/rust/message.cc
@@ -865,6 +865,9 @@ impl $pb$::Proxied for $Msg$ { type View<'msg> = $Msg$View<'msg>; + } + + impl $pb$::MutProxied for $Msg$ { type Mut<'msg> = $Msg$Mut<'msg>; }