]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: apply -importmap to imports before checking for package unsafe
authorRuss Cox <rsc@golang.org>
Fri, 8 Jan 2016 16:36:36 +0000 (11:36 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 8 Jan 2016 19:16:50 +0000 (19:16 +0000)
commita8fc547f786f17ad5a2176d9041a8d1f76895748
treee43dc6738a903f9ce217c80d15e5ce200e17b988
parent39ad0fd0789872f9469167be7fe9578625ff246e
cmd/compile: apply -importmap to imports before checking for package unsafe

There are fewer special cases this way: the import map applies
to all import paths, not just the ones not spelled "unsafe".

This is also consistent with what the code in cmd/go and go/build expects.
They make no exception for "unsafe".

For #13703.

Change-Id: I622295261ca35a6c1e83e8508d363bddbddb6c0a
Reviewed-on: https://go-review.googlesource.com/18438
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/gc/lex.go