]> Cypherpunks repositories - gostls13.git/commit
go/types: don't exclude package unsafe from a Package's Imports list
authorRobert Griesemer <gri@golang.org>
Thu, 2 Mar 2017 19:13:06 +0000 (11:13 -0800)
committerRobert Griesemer <gri@golang.org>
Thu, 2 Mar 2017 22:43:41 +0000 (22:43 +0000)
commit72359cf840801adc81058cc0430effa1a34da0e2
tree8c22841665467f8e0d73ea70b52097468c648c63
parent359ca5ccc8b801d6ca8f8e417135436ccde00212
go/types: don't exclude package unsafe from a Package's Imports list

There's no good reason to exclude it and it only makes the code more
complicated and less consistent. Having it in the list provides an
easy way to detect if a package uses operations from package unsafe.

Change-Id: I2f9b0485db0a680bd82f3b93a350b048db3f7701
Reviewed-on: https://go-review.googlesource.com/37694
Reviewed-by: Alan Donovan <adonovan@google.com>
src/go/types/package.go
src/go/types/resolver.go