aboutsummaryrefslogtreecommitdiff
path: root/src/comp/front/eval.rs
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2011-03-01 15:57:55 -0800
committerGraydon Hoare <[email protected]>2011-03-01 15:57:55 -0800
commit348c77c31b7dcd5be85438dfcf4292f7e0951dd6 (patch)
treeaae201cf042a02a7c3dba3fa9dfc508ac881c6c0 /src/comp/front/eval.rs
parentFix typo in comment. (diff)
downloadrust-348c77c31b7dcd5be85438dfcf4292f7e0951dd6.tar.xz
rust-348c77c31b7dcd5be85438dfcf4292f7e0951dd6.zip
Populate default compilation environment as in rustboot.
Diffstat (limited to 'src/comp/front/eval.rs')
-rw-r--r--src/comp/front/eval.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/front/eval.rs b/src/comp/front/eval.rs
index ab8d5d32..cae72b1e 100644
--- a/src/comp/front/eval.rs
+++ b/src/comp/front/eval.rs
@@ -393,7 +393,7 @@ impure fn eval_crate_directive(parser p,
auto full_path = prefix + std.os.path_sep() + file_path;
- auto p0 = new_parser(p.get_session(), 0, full_path);
+ auto p0 = new_parser(p.get_session(), e, 0, full_path);
auto m0 = parse_mod_items(p0, token.EOF);
auto im = ast.item_mod(id, m0, p.next_def_id());
auto i = @spanned(cdir.span, cdir.span, im);