]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: extrapolate $GOROOT in unified IR
authorMatthew Dempsky <mdempsky@google.com>
Wed, 8 Sep 2021 22:59:11 +0000 (15:59 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Thu, 9 Sep 2021 00:10:46 +0000 (00:10 +0000)
commite30a09013b24853cbe6d3d3a919e639df0bdf41c
tree7ff96ac9edf4c5b7353f93ac67845e0c3cc857b3
parenta1f6208e56436281ce5e26ad745f8fc3f7a9b280
cmd/compile: extrapolate $GOROOT in unified IR

This ensures that diagnostics for files within $GOROOT continue to be
reported using their full filepath, rather than the abbreviated
filepath. Notably, this is necessary for test/run.go, which has tests
that expect to see the full filepath.

Updates #48247.

Change-Id: I440e2c6dd6109ca059d81cee49e476bba805d703
Reviewed-on: https://go-review.googlesource.com/c/go/+/348670
Trust: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Robert Griesemer <gri@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
src/cmd/compile/internal/noder/reader.go