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.
This commit is contained in:
Brian Anderson
2011-08-02 22:19:39 -07:00
parent 97a8784c98
commit e4da7c5bee
3 changed files with 9 additions and 10 deletions

View File

@@ -106,7 +106,7 @@ fn parse_input_src(sess: session::session, cfg: &ast::crate_cfg,
}.read_whole_stream();
let src = str::unsafe_from_bytes_ivec(srcbytes);
let crate = parser::parse_crate_from_source_str(infile, src, cfg,
sess.get_codemap());
sess.get_parse_sess());
ret {crate: crate, src: src};
}