summary refs log tree commit diff
path: root/src/comp/syntax/parse/lexer.rs
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2011-08-21 21:44:41 -0700
committerBrian Anderson <banderson@mozilla.com>2011-08-22 10:44:04 -0700
commit152cbaade7bc2ec36546554eb2d2090a9833bfff (patch)
treed6bb39fcdcce9f67cc97f97a6259e85cbf315650 /src/comp/syntax/parse/lexer.rs
parenta3affaa20fcd718080951d5be2da3f578c960664 (diff)
downloadrust-152cbaade7bc2ec36546554eb2d2090a9833bfff.tar.gz
rust-152cbaade7bc2ec36546554eb2d2090a9833bfff.zip
Move functions from syntax::ast to syntax::ast_util
This leaves syntax::ast just defining the AST, which strikes me as somewhat
nicer
Diffstat (limited to 'src/comp/syntax/parse/lexer.rs')
-rw-r--r--src/comp/syntax/parse/lexer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/syntax/parse/lexer.rs b/src/comp/syntax/parse/lexer.rs
index 6e4cc10abb7..c39cd75db3b 100644
--- a/src/comp/syntax/parse/lexer.rs
+++ b/src/comp/syntax/parse/lexer.rs
@@ -78,7 +78,7 @@ fn new_reader(cm: &codemap::codemap, src: str, filemap: codemap::filemap,
         fn get_col() -> uint { ret col; }
         fn get_filemap() -> codemap::filemap { ret fm; }
         fn err(m: str) {
-            codemap::emit_error(some(ast::mk_sp(chpos, chpos)), m, cm);
+            codemap::emit_error(some(ast_util::mk_sp(chpos, chpos)), m, cm);
         }
     }
     let strs: [str] = [];