diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-08-02 22:19:39 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-08-03 10:55:59 -0700 |
| commit | e4da7c5bee6ca094eeb12a9f47d450e3f962f05c (patch) | |
| tree | 879eb6d9a3b2f3600b43a8f56421d7e7b888b7d3 /src/comp/syntax/parse | |
| parent | 97a8784c984bd19bf0a369ad5c3f8472ebc646eb (diff) | |
| download | rust-e4da7c5bee6ca094eeb12a9f47d450e3f962f05c.tar.gz rust-e4da7c5bee6ca094eeb12a9f47d450e3f962f05c.zip | |
parse_crate_from_source_str takes a parse_sess, not codemap
This was causing problems when reading from stdin for subsequent passes that needed to generate node ids.
Diffstat (limited to 'src/comp/syntax/parse')
| -rw-r--r-- | src/comp/syntax/parse/parser.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index 473ceb08b51..9e7f693c74b 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -2317,8 +2317,7 @@ fn parse_crate_from_source_file(input: &str, cfg: &ast::crate_cfg, } fn parse_crate_from_source_str(name: &str, source: &str, cfg: &ast::crate_cfg, - cm: &codemap::codemap) -> @ast::crate { - let sess = @{cm: cm, mutable next_id: 0}; + sess: &parse_sess) -> @ast::crate { let ftype = SOURCE_FILE; let filemap = codemap::new_filemap(name, 0u, 0u); sess.cm.files += ~[filemap]; |
