From 58cb8a3c8fdc9b83cb8630f17d0ee641eb0327cc Mon Sep 17 00:00:00 2001 From: Muhammad Falak R Wani Date: Tue, 15 Aug 2017 12:11:01 +0530 Subject: [PATCH] runtime: remove redeclared structs to make tests build MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit struct32 and struct40 structs are already declared, remove them to make runtime tests build. Change-Id: I3814f2b850dcb15c4002a3aa22e2a9326e5a5e53 Reviewed-on: https://go-review.googlesource.com/55614 Reviewed-by: Martin Möhrmann --- src/runtime/chan_test.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/runtime/chan_test.go b/src/runtime/chan_test.go index dd04f82a06..a09baf52e1 100644 --- a/src/runtime/chan_test.go +++ b/src/runtime/chan_test.go @@ -669,11 +669,7 @@ done: <-ready2 } -type ( - struct0 struct{} - struct32 struct{ a, b, c, d int64 } - struct40 struct{ a, b, c, d, e int64 } -) +type struct0 struct{} func BenchmarkMakeChan(b *testing.B) { b.Run("Byte", func(b *testing.B) { -- 2.48.1