about summary refs log tree commit diff
path: root/src/rustc/util/common.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/rustc/util/common.rs')
-rw-r--r--src/rustc/util/common.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rustc/util/common.rs b/src/rustc/util/common.rs
index 26b30772105..90ff2fd3228 100644
--- a/src/rustc/util/common.rs
+++ b/src/rustc/util/common.rs
@@ -74,7 +74,7 @@ fn local_rhs_span(l: @ast::local, def: span) -> span {
 fn is_main_name(path: syntax::ast_map::path) -> bool {
     // FIXME (#34): path should be a constrained type, so we know
     // the call to last doesn't fail.
-    vec::last(path) == syntax::ast_map::path_name(@"main")
+    vec::last(path) == syntax::ast_map::path_name(@"main"/~)
 }
 
 //