aboutsummaryrefslogtreecommitdiff
path: root/src/comp/util/common.rs
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2011-02-23 14:37:39 -0800
committerGraydon Hoare <[email protected]>2011-02-23 14:37:39 -0800
commit381684043f1ad044c72347d759c1c545c6bccc3d (patch)
treedb6832b0e3be44071f294410e3a1570b42402ca4 /src/comp/util/common.rs
parentParse auth clauses, drop them on the floor. Nothing exists to use them yet an... (diff)
downloadrust-381684043f1ad044c72347d759c1c545c6bccc3d.tar.xz
rust-381684043f1ad044c72347d759c1c545c6bccc3d.zip
Add a type for crate directives, to support intermixing with exprs in crate files.
Diffstat (limited to 'src/comp/util/common.rs')
-rw-r--r--src/comp/util/common.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/comp/util/common.rs b/src/comp/util/common.rs
index 56f30e07..071acea2 100644
--- a/src/comp/util/common.rs
+++ b/src/comp/util/common.rs
@@ -2,8 +2,10 @@ import std._uint;
import std._int;
import front.ast;
+
+type filename = str;
type pos = rec(uint line, uint col);
-type span = rec(str filename, pos lo, pos hi);
+type span = rec(filename filename, pos lo, pos hi);
type spanned[T] = rec(T node, span span);
tag ty_mach {