From 5f429f7042ff6743d1cd695281802b8c9b8d9395 Mon Sep 17 00:00:00 2001 From: Damien Neil Date: Wed, 20 Jul 2022 10:18:12 -0700 Subject: [PATCH] proto: fix compilation failure in tests Change-Id: I61a84dffcf4ccc9f81dc8b9f932c315713e81142 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/418674 Reviewed-by: Lasse Folger --- proto/equal_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/proto/equal_test.go b/proto/equal_test.go index c17e14ff..db7ac6fe 100644 --- a/proto/equal_test.go +++ b/proto/equal_test.go @@ -632,11 +632,11 @@ func makeNested(depth int) *testpb.TestAllTypes { if depth <= 0 { return nil } - return testpb.TestAllTypes_builder{ - OptionalNestedMessage: testpb.TestAllTypes_NestedMessage_builder{ + return &testpb.TestAllTypes{ + OptionalNestedMessage: &testpb.TestAllTypes_NestedMessage{ Corecursive: makeNested(depth - 1), - }.Build(), - }.Build() + }, + } } func BenchmarkEqualWithDeeplyNestedEqual(b *testing.B) {