diff options
| author | Kevin Atkinson <kevina@cs.utah.edu> | 2012-01-25 15:53:45 -0700 |
|---|---|---|
| committer | Kevin Atkinson <kevina@cs.utah.edu> | 2012-01-25 16:00:47 -0700 |
| commit | c5e03e0e599e49f74303bbafc6d559f3138b5f72 (patch) | |
| tree | e2c87afbd28be1b40dcff23875465b7d61fed83d /src/comp/syntax/ext | |
| parent | 746fa279889b3ce2ed671aa06d34f15c4f34e902 (diff) | |
Keep source file around after parsing.
Specifically box the string (to avoid unnecessary copies) and store it in codemap::filemap. Remove the hack in driver::diagnostic that rereads the source from the file and instead just get the source from the filemap. (This commit is also a prerequisite for issue #1612)
Diffstat (limited to 'src/comp/syntax/ext')
| -rw-r--r-- | src/comp/syntax/ext/expand.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/syntax/ext/expand.rs b/src/comp/syntax/ext/expand.rs index e749b28a417..d5482a1e62f 100644 --- a/src/comp/syntax/ext/expand.rs +++ b/src/comp/syntax/ext/expand.rs @@ -75,7 +75,7 @@ fn expand_crate(sess: session::session, c: @crate) -> @crate { {fold_expr: bind expand_expr(exts, cx, _, _, _, afp.fold_expr) with *afp}; let f = make_fold(f_pre); - let cm = parse_expr_from_source_str("<anon>", core_macros(), + let cm = parse_expr_from_source_str("<anon>", @core_macros(), sess.opts.cfg, sess.parse_sess); |
