Internal Change

PiperOrigin-RevId: 540584719
pull/13055/head
Protobuf Team Bot 2 years ago committed by Copybara-Service
parent 3e6dba700f
commit 0a45abe4c2
  1. 6
      rust/cpp.rs
  2. 4
      rust/proxied.rs

@ -103,18 +103,12 @@ impl Drop for Arena {
///
/// This struct is ABI compatible with the equivalent struct on the C++ side. It
/// owns (and drops) its data.
// copybara:strip_begin
// LINT.IfChange
// copybara:strip_end
#[repr(C)]
pub struct SerializedData {
/// Owns the memory.
data: NonNull<u8>,
len: usize,
}
// copybara:strip_begin
// LINT.ThenChange(//depot/google3/third_party/protobuf/rust/cpp_kernel/cpp_api.
// h) copybara:strip_end
impl SerializedData {
pub unsafe fn from_raw_parts(data: NonNull<u8>, len: usize) -> Self {

@ -28,10 +28,6 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// copybara:strip_begin
// See http://go/rust-proxy-reference-types for design discussion.
// copybara:strip_end
//! Operating on borrowed data owned by a message is a central concept in
//! Protobuf (and Rust in general). The way this is normally accomplished in
//! Rust is to pass around references and operate on those. Unfortunately,

Loading…
Cancel
Save