summaryrefslogtreecommitdiff
path: root/src/cmd/gc/go.y
diff options
context:
space:
mode:
authorOndřej Surý <ondrej@sury.org>2011-02-18 09:50:58 +0100
committerOndřej Surý <ondrej@sury.org>2011-02-18 09:50:58 +0100
commitc072558b90f1bbedc2022b0f30c8b1ac4712538e (patch)
tree67767591619e4bd8111fb05fac185cde94fb7378 /src/cmd/gc/go.y
parent5859517b767c99749a45651c15d4bae5520ebae8 (diff)
downloadgolang-upstream/2011.02.15.tar.gz
Imported Upstream version 2011.02.15upstream/2011.02.15
Diffstat (limited to 'src/cmd/gc/go.y')
-rw-r--r--src/cmd/gc/go.y8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/cmd/gc/go.y b/src/cmd/gc/go.y
index 994840ee8..86e3cae33 100644
--- a/src/cmd/gc/go.y
+++ b/src/cmd/gc/go.y
@@ -242,14 +242,6 @@ import_package:
if(safemode && !curio.importsafe)
yyerror("cannot import unsafe package %Z", importpkg->path);
-
- // NOTE(rsc): This is no longer a technical restriction:
- // the 6g tool chain would work just fine without giving
- // special meaning to a package being named main.
- // Other implementations might need the restriction
- // (gccgo does), so it stays in the language and the compiler.
- if(strcmp($2->name, "main") == 0)
- yyerror("cannot import package main");
}
import_safety: