diff options
author | Russ Cox <rsc@golang.org> | 2009-11-09 15:25:18 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-11-09 15:25:18 -0800 |
commit | 9f42ccb7819d7ffee449b26c0c9246c9993072f9 (patch) | |
tree | 3fb6d234dba2a43b61f6b17324873a3faf347dd0 | |
parent | 93c3f5124e2df0513b171e9a327fefd7618b1235 (diff) | |
download | go-9f42ccb7819d7ffee449b26c0c9246c9993072f9.tar.gz go-9f42ccb7819d7ffee449b26c0c9246c9993072f9.zip |
error rewording suggested by robert.
update comment.
R=ken
http://go/go-review/1025031
-rw-r--r-- | src/cmd/gc/go.y | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/cmd/gc/go.y b/src/cmd/gc/go.y index e9a35171d9..61ead2d3bb 100644 --- a/src/cmd/gc/go.y +++ b/src/cmd/gc/go.y @@ -238,15 +238,10 @@ import_package: if(strcmp($2->name, "main") == 0) yyerror("cannot import package main"); - // TODO(rsc): This is not quite precise enough a check - // (it excludes google/util/hash from importing hash) - // but it is enough to reduce confusion during the - // 2009/09/01 release when all the "import myself" - // statements have to go away in programs building - // against the release. Once the programs have converted - // it should probably just go away. + // TODO(rsc): This should go away once we get + // rid of the global package name space. if(strcmp($2->name, package) == 0 && strcmp(package, "runtime") != 0) - yyerror("package cannot import itself (anymore)"); + yyerror("package cannot import itself"); } import_there: |