]> Cypherpunks repositories - gostls13.git/commit
[dev.boringcrypto] cmd/compile: refine BoringCrypto kludge
authorRuss Cox <rsc@golang.org>
Thu, 7 Sep 2017 02:01:50 +0000 (22:01 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 14 Sep 2017 23:40:36 +0000 (23:40 +0000)
commite8eec3fbdbfae1723c8302d23514faeb833ea8f4
tree15d0960f58746f0bb0d2a48bf093da7cdd100bce
parent7b49445d0fab71820314a2e5bdfba6b84b7f16d0
[dev.boringcrypto] cmd/compile: refine BoringCrypto kludge

Did not consider these fields being embedded or adopted
into structs defined in other packages, but that's possible too.
Refine the import path check to account for that.

Fixes 'go test -short golang.org/x/crypto/ssh' but also
adds a new test in internal/boring for the same problem.

Change-Id: Ied2d04fe2b0ac3b0a34f07bc8dfc50fc203abb9f
Reviewed-on: https://go-review.googlesource.com/62152
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Adam Langley <agl@golang.org>
src/cmd/compile/internal/gc/reflect.go
src/internal/boringtest/boring.go [new file with mode: 0644]
src/internal/boringtest/boring_test.go [new file with mode: 0644]